-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add grouped_notifications API #494
Open
PattaFeuFeu
wants to merge
17
commits into
master
Choose a base branch
from
mastodon-4.3/addition/notification_group_key
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains 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
PattaFeuFeu
added
documentation
Improvements or additions to documentation or sample code
enhancement
New feature or request
breaking
Incompatible with previous versions
labels
Oct 18, 2024
PattaFeuFeu
force-pushed
the
mastodon-4.3/addition/notification_group_key
branch
from
October 19, 2024 01:02
a6c9891
to
ae9f837
Compare
PattaFeuFeu
changed the title
[Improvement] Add grouped notifications API
Add grouped_notifications API
Oct 19, 2024
PattaFeuFeu
force-pushed
the
mastodon-4.3/addition/notification_group_key
branch
from
October 19, 2024 01:15
91e89a5
to
14fb2a2
Compare
PattaFeuFeu
force-pushed
the
mastodon-4.3/addition/notification_group_key
branch
2 times, most recently
from
October 19, 2024 16:40
cfd0518
to
295df83
Compare
PattaFeuFeu
force-pushed
the
mastodon-4.3/addition/notification_group_key
branch
from
October 19, 2024 16:51
295df83
to
473f8c8
Compare
Breaking in case library consumers relied on Enum’s ordinal as new options were added in-between to keep alphabetical order.
Circumvents odd case where api/v2/notifications, despite supporting pagination, returns just a JSONObject and not a JSONArray See mastodon/mastodon#32594
PattaFeuFeu
force-pushed
the
mastodon-4.3/addition/notification_group_key
branch
from
November 4, 2024 11:17
473f8c8
to
8d03a77
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
breaking
Incompatible with previous versions
documentation
Improvements or additions to documentation or sample code
enhancement
New feature or request
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.
Description
This PR adds new methods for Grouped Notifications that were added as part of the most recent Mastodon 4.3.0 release.
Sorry, this got a lot larger than initially intended. When starting to add methods, I had to add some new properties and entities as well.
During implementation, I noticed one odd server return that I raised as a bug ticket as the return doesn’t feel right to me. To circumvent the current behaviour, I have added ed72848 as otherwise, our current approach to pageable data doesn’t allow for the structure returned.
Type of Change
Breaking Changes
Notification.NotificationType
was moved to its own class. Import changes fromimport social.bigbone.api.entity.Notification.NotificationType
toimport social.bigbone.api.entity.NotificationType
NotificationType
s were added and they are still in alphabetical order. So if you relied onNotificationType#ordinal
, please be aware that ordinals changed.How Has This Been Tested?
Mandatory Checklist
gradle check
and there were no errors reportedOptional checks
*Methods
classes: Did you also reference it in theMastodonClient
main class?/docs
folder (e.g. API Coverage page)?