Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deduplicate some code #9205

Merged
merged 1 commit into from
Jan 7, 2025
Merged

Deduplicate some code #9205

merged 1 commit into from
Jan 7, 2025

Conversation

seanh
Copy link
Contributor

@seanh seanh commented Dec 11, 2024

No description provided.

@seanh seanh requested a review from mtomilov December 11, 2024 19:04
@seanh seanh force-pushed the enable-users-to-call-add-member-API branch from e79457b to 8491ea9 Compare December 12, 2024 18:03
@seanh seanh force-pushed the refactor-predicates branch from eb1e7c1 to d4930e6 Compare December 12, 2024 18:03
@seanh seanh requested a review from Copilot December 12, 2024 18:05

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated no suggestions.

Comments skipped due to low confidence (2)

tests/unit/h/security/identity_test.py:145

  • Ensure that GroupMembershipRoles is correctly imported and used in the test cases.
roles=[GroupMembershipRoles.MODERATOR]

tests/unit/h/security/identity_test.py:149

  • Ensure that the test case is correctly validating the returned roles from get_roles method.
assert identity.get_roles(group) == [GroupMembershipRoles.MODERATOR]
Copy link

@mtomilov mtomilov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks totally reasonable

@mtomilov mtomilov self-requested a review January 5, 2025 08:33
@seanh seanh force-pushed the refactor-predicates branch from d4930e6 to 8edacf2 Compare January 7, 2025 16:58
@seanh seanh changed the base branch from enable-users-to-call-add-member-API to main January 7, 2025 16:58
@seanh seanh merged commit e11c855 into main Jan 7, 2025
8 checks passed
@seanh seanh deleted the refactor-predicates branch January 7, 2025 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants