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

SAK-43953 PA System: Banner Dismissal Resets Upon Any Form of Update #11977

Merged
merged 1 commit into from
Oct 20, 2023

Conversation

kunaljaykam
Copy link
Member

@kunaljaykam kunaljaykam changed the title SAK-43953 PA System: Modifing Banner priorities SAK-43953 PA System: Banner Dismissal Resets Upon Any Form of Update Oct 13, 2023
@@ -89,6 +91,12 @@ protected void handleCreateOrUpdate(HttpServletRequest request, Map<String, Obje
String uuid = extractId(request);
BannerForm bannerForm = BannerForm.fromRequest(uuid, request);

User currentUser = UserDirectoryService.getCurrentUser();
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be ideal not to use the cover but if you need to it would be best to init the service in the contstructor like the other services

@@ -89,6 +91,12 @@ protected void handleCreateOrUpdate(HttpServletRequest request, Map<String, Obje
String uuid = extractId(request);
BannerForm bannerForm = BannerForm.fromRequest(uuid, request);

User currentUser = UserDirectoryService.getCurrentUser();
if (currentUser == null) {
return;
Copy link
Contributor

Choose a reason for hiding this comment

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

before returning it might make sense to add an error?

@kunaljaykam kunaljaykam marked this pull request as ready for review October 20, 2023 06:47
@kunaljaykam
Copy link
Member Author

Thanks @adrianfish for the help!

Copy link
Contributor

@adrianfish adrianfish left a comment

Choose a reason for hiding this comment

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

Thanks Kunal

@adrianfish adrianfish merged commit 9ca81e5 into sakaiproject:master Oct 20, 2023
2 of 3 checks passed
ern pushed a commit that referenced this pull request Oct 31, 2023
ern pushed a commit that referenced this pull request Oct 31, 2023
ern pushed a commit that referenced this pull request Oct 31, 2023
@kunaljaykam kunaljaykam deleted the SAK-43953 branch November 9, 2023 18:02
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.

3 participants