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

Move notification API into main commons codebase #5465

Merged
merged 2 commits into from
Jan 23, 2024

Conversation

psh
Copy link
Collaborator

@psh psh commented Jan 22, 2024

I pulled the notifications API calls (getAllNotifications() and markRead()) out of the data client and moved them into their own NotificationInterface in the main commons codebase. I setup injection to pass the NotificationInterface into the client instead of the large Service interface from the data-client

I also converted the NotificationClient to Kotlin and updated its unit test to add extra verification of the mapping of all of the fields from the Wikimedia notification object to our own one. The meant adding a few setters to the model objects (that previously were only set by reading JSON off the wire).

This relates to the discussion in #5165

Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

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

Working well, thanks! :-)

@nicolas-raoul nicolas-raoul merged commit 3c1cdf1 into commons-app:main Jan 23, 2024
1 check passed
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

2 participants