-
Notifications
You must be signed in to change notification settings - Fork 325
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
[WPB-10324] Drop legacy notification endpoints #4363
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Drop legacy notification endpoints from client API at version 9 | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,7 +80,7 @@ import Wire.Arbitrary (Arbitrary, GenericUniform (GenericUniform)) | |
-- and 'developmentVersions' stay in sync; everything else here should keep working without | ||
-- change. See also documentation in the *docs* directory. | ||
-- https://docs.wire.com/developer/developer/api-versioning.html#version-bump-checklist | ||
data Version = V0 | V1 | V2 | V3 | V4 | V5 | V6 | V7 | V8 | ||
data Version = V0 | V1 | V2 | V3 | V4 | V5 | V6 | V7 | V8 | V9 | ||
deriving stock (Eq, Ord, Bounded, Enum, Show, Generic) | ||
deriving (FromJSON, ToJSON) via (Schema Version) | ||
deriving (Arbitrary) via (GenericUniform Version) | ||
|
@@ -101,6 +101,7 @@ versionInt V5 = 5 | |
versionInt V6 = 6 | ||
versionInt V7 = 7 | ||
versionInt V8 = 8 | ||
versionInt V9 = 9 | ||
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. this will conflict with #4356 but maybe that's fine? 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. Yes, that's totally fine. I am aware of this. There's no way to avoid conflicts if we work in parallel on related stuff. I see the PR has been merged in the PR so I'll rebase this PR to resolve the conflicts. |
||
|
||
supportedVersions :: [Version] | ||
supportedVersions = [minBound .. maxBound] | ||
|
@@ -213,6 +214,7 @@ isDevelopmentVersion V5 = False | |
isDevelopmentVersion V6 = False | ||
isDevelopmentVersion V7 = False | ||
isDevelopmentVersion V8 = True | ||
isDevelopmentVersion V9 = True | ||
|
||
developmentVersions :: [Version] | ||
developmentVersions = filter isDevelopmentVersion supportedVersions | ||
|
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.
did you also create the confluence page and add it there? seems like a good idea to me, especially since we might all completely forget by the time this becomes relevant.
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.
I haven't yet, as I am still not 100% sure what version this should be reflected in. The latest discussion in the ticket suggests this won't be done in version 9, but in a much later version and perhaps this PR can be closed, but let's wait and see how the discussion evolves.