-
Notifications
You must be signed in to change notification settings - Fork 168
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
Added api calls for notifications #8668
base: master
Are you sure you want to change the base?
Conversation
👋 Hello! Thanks for contributing to our project. If you are unsure the failing tests are related to your code, you can check the "reference jobs". These are jobs that run on a scheduled time with code from master. If they fail for the same reason as your build, it means the tests or the infrastructure are broken. If they do not fail, but yours do, it means it is related to your code. Reference tests: KNOWN ISSUES Sometimes the build can fail when pulling new jar files from download.opensuse.org . This is a known limitation. Given this happens rarely, when it does, all you need to do is rerun the test. Sorry for the inconvenience. For more tips on troubleshooting, see the troubleshooting guide. Happy hacking! |
Suggested tests to cover this Pull Request
|
@quinilo Thanks. Sorry that I cannot be in the office today. |
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.
Hi @quinilo, thank you very much for the additions to the API.
I've suggested some changes below. Apart from those, here's another suggestion:
The user
namespace is already a big one. Your changes introduce notifications as a new entity to the namespace. I think in this case, creating a new user.notifications
namespace would help organize everything better. To do this, you need to do the following:
- Create a new
UserNotificationsHandler
and move your endpoint methods there - Register your handler in the
HandlerFactory
class
And finally, some general remarks about the PR itself:
- Please address the failing checks
- Rebase the PR on top of
master
and squash your commits so only the relevant code changes are there - Some files are missing newlines at the end
About the documentation: I suggested some changes but I didn't build the docs myself so I might be missing something. To make sure the docs are generated correctly, please make sure to read the wiki about writing documentation for the API to build and validate your additions to the docs.
java/code/src/com/redhat/rhn/frontend/xmlrpc/user/UserHandler.java
Outdated
Show resolved
Hide resolved
java/code/src/com/redhat/rhn/frontend/xmlrpc/serializer/UserNotificationSerializer.java
Outdated
Show resolved
Hide resolved
java/code/src/com/redhat/rhn/frontend/xmlrpc/user/UserHandler.java
Outdated
Show resolved
Hide resolved
java/code/src/com/redhat/rhn/frontend/xmlrpc/serializer/UserNotificationSerializer.java
Outdated
Show resolved
Hide resolved
java/code/src/com/redhat/rhn/frontend/xmlrpc/serializer/UserNotificationSerializer.java
Show resolved
Hide resolved
java/code/src/com/redhat/rhn/frontend/xmlrpc/user/UserHandler.java
Outdated
Show resolved
Hide resolved
java/code/src/com/redhat/rhn/frontend/xmlrpc/user/UserHandler.java
Outdated
Show resolved
Hide resolved
@cbbayburt thanks for your review. I will fix the code |
…tificationSerializer.java Co-authored-by: Can Bulut Bayburt <[email protected]>
…tificationSerializer.java Co-authored-by: Can Bulut Bayburt <[email protected]>
@quinilo there are some checkstyle issues. Check the Details link to see what is wrong. |
Do i have to write a changelog for this change? |
Yes, please do so. Thanks |
In which file do I have to write the changelogs in this case? |
https://github.com/uyuni-project/uyuni/wiki/Contributing#changelog-rules-for-packages-in-git There is a description about |
What does this PR change?
Added api calls getNotifications, makeNotificationRead, makeAllNotificationsRead, deleteNotification to UserNotificationHandler
GUI diff
No difference.
Documentation
Api documentation added
DONE
Test coverage
No tests: already covered
DONE
Links
Issue(s): #5540
Changelogs
No changelog needed
Port PR Add API methods for managing Notification Messages #5540
Api calls in UserNotificationHandler:
Re-run a test
If you need to re-run a test, please mark the related checkbox, it will be unchecked automatically once it has re-run:
Before you merge
Check How to branch and merge properly!