-
Notifications
You must be signed in to change notification settings - Fork 332
[SQSERVICES-1619] Tech Debt Remove Non Binding Teams Code #3213
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
Merged
battermann
merged 6 commits into
develop
from
SQSERVICES-1619-be-tech-debt-remove-non-binding-teams-code-2
Apr 17, 2023
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ea69ba1
removed binding teams endpoints from V4
battermann 8d1bd05
changelog
battermann 30e8fc5
Update libs/wire-api/src/Wire/API/Team.hs
battermann 9cb2e17
also deprecate get-teams endpoint
battermann 8cbf2f6
make sure to use v3 for deprected endpoints in tests
battermann 47aab20
fix brig it
battermann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Non-binding team endpoints are removed from API version V4 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,14 +26,15 @@ import Wire.API.Error.Galley | |
| import Wire.API.Routes.MultiVerb | ||
| import Wire.API.Routes.Named | ||
| import Wire.API.Routes.Public | ||
| import Wire.API.Routes.Version | ||
| import Wire.API.Team | ||
| import Wire.API.Team.Permission | ||
|
|
||
| type TeamAPI = | ||
| Named | ||
| "create-non-binding-team" | ||
| ( Summary "Create a new non binding team" | ||
| -- FUTUREWORK: deprecated in https://github.com/wireapp/wire-server/pull/2607 | ||
| :> Until 'V4 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe still link the PR and/or ticket? not sure, maybe it's unnecessary noise.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I prefer less noise. |
||
| :> ZUser | ||
| :> ZConn | ||
| :> CanThrow 'NotConnected | ||
|
|
@@ -69,7 +70,7 @@ type TeamAPI = | |
| :<|> Named | ||
| "get-teams" | ||
| ( Summary "Get teams (deprecated); use `GET /teams/:tid`" | ||
| -- FUTUREWORK: deprecated in https://github.com/wireapp/wire-server/pull/2607 | ||
| :> Until 'V4 | ||
| :> ZUser | ||
| :> "teams" | ||
| :> Get '[JSON] TeamList | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this appears in the changelog, it is already in the past. So I prefer past tense or even better "have been removed" (present perfect progressive). But I will not hold my opinion very strongly. :)