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

[SYNPY-1347] Adds OOP Team Model #1053

Merged
merged 109 commits into from
Feb 1, 2024
Merged

Conversation

BWMac
Copy link
Contributor

@BWMac BWMac commented Jan 25, 2024

Description:

This PR adds an OOP model for interacting with Teams in Synapse. It provides the ability to:

  • Create a team
  • Delete a team
  • Retrieve information about a team by using its ID number or team name
  • Retrieve information about a team's members
  • Invite new members to a team
  • View any unresolved invitations a team has sent to Synapse users

Notes:

  • To support specifically creating and deleting teams, corresponding functions were added to client.py
  • All new code has been tested with unit/integration tests where applicable
  • TeamMember and UserGroupHeader models were also created to be used in the composition of Team objects
  • A demo script oop_poc_team.py is included to showcase how a developer can interact with teams using the new model

BWMac and others added 4 commits January 29, 2024 15:08
Copy link
Contributor

@BryanFauble BryanFauble left a comment

Choose a reason for hiding this comment

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

🔥 🔥

These changes look good to me!

Copy link

sonarcloud bot commented Jan 30, 2024

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

13 New issues
0 Security Hotspots
94.4% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Member

@thomasyu888 thomasyu888 left a comment

Choose a reason for hiding this comment

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

🔥 LGTM!

@BWMac BWMac merged commit 10f7ae6 into develop Feb 1, 2024
37 of 38 checks passed
@BWMac BWMac deleted the bwmac/SYNPY-1347/oop_team_model branch February 1, 2024 20:52
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.

None yet

4 participants