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

Add grouped_notifications API #494

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

PattaFeuFeu
Copy link
Collaborator

@PattaFeuFeu PattaFeuFeu commented Oct 18, 2024

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

  • New feature
  • Documentation

Breaking Changes

  • Notification.NotificationType was moved to its own class. Import changes from import social.bigbone.api.entity.Notification.NotificationType to import social.bigbone.api.entity.NotificationType
  • New NotificationTypes were added and they are still in alphabetical order. So if you relied on NotificationType#ordinal, please be aware that ordinals changed.

How Has This Been Tested?

  1. New unit tests
  2. New sample class ran on actual server

Mandatory Checklist

  • I ran gradle check and there were no errors reported
  • I have performed a self-review of my code
  • I have added tests that prove my fix is effective or that my feature works
  • All tests pass locally with my changes
  • I have added KDoc documentation to all public methods

Optional checks

  • In case you worked on a new feature: Did you also implement the reactive endpoint (bigbone-rx)?
  • In case you added new *Methods classes: Did you also reference it in the MastodonClient main class?
  • Did you also update the documentation in the /docs folder (e.g. API Coverage page)?

@PattaFeuFeu 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 PattaFeuFeu self-assigned this Oct 18, 2024
@PattaFeuFeu PattaFeuFeu force-pushed the mastodon-4.3/addition/notification_group_key branch from a6c9891 to ae9f837 Compare October 19, 2024 01:02
@PattaFeuFeu PattaFeuFeu changed the title [Improvement] Add grouped notifications API Add grouped_notifications API Oct 19, 2024
@PattaFeuFeu PattaFeuFeu force-pushed the mastodon-4.3/addition/notification_group_key branch from 91e89a5 to 14fb2a2 Compare October 19, 2024 01:15
@PattaFeuFeu PattaFeuFeu force-pushed the mastodon-4.3/addition/notification_group_key branch 2 times, most recently from cfd0518 to 295df83 Compare October 19, 2024 16:40
@PattaFeuFeu PattaFeuFeu marked this pull request as ready for review October 19, 2024 16:44
@PattaFeuFeu PattaFeuFeu force-pushed the mastodon-4.3/addition/notification_group_key branch from 295df83 to 473f8c8 Compare October 19, 2024 16:51
@PattaFeuFeu PattaFeuFeu force-pushed the mastodon-4.3/addition/notification_group_key branch from 473f8c8 to 8d03a77 Compare November 4, 2024 11:17
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant