Skip to content

#10861 add activate banner Message by API admin#10862

Closed
ghost wants to merge 3 commits intoIQSS:developfrom
DataverseNO:add-activate-banner-Message-by-admin
Closed

#10861 add activate banner Message by API admin#10862
ghost wants to merge 3 commits intoIQSS:developfrom
DataverseNO:add-activate-banner-Message-by-admin

Conversation

@ghost
Copy link

@ghost ghost commented Sep 19, 2024

What this PR does / why we need it:
Add function to enable message

Which issue(s) this PR closes:

Closes #10861

Special notes for your reviewer:
When a message is deactivated, it should be made visible again.

Additional documentation:
yes

@coveralls
Copy link

coveralls commented Sep 19, 2024

Coverage Status

coverage: 20.713% (-0.002%) from 20.715%
when pulling d5e0bb0 on DataverseNO:add-activate-banner-Message-by-admin
into 1fffec4 on IQSS:develop.

Copy link
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. Some quick thoughts.

@@ -5508,6 +5508,10 @@ Deactivate a Banner Message by its id (allows you to hide a message while retain

Copy link
Member

Choose a reason for hiding this comment

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

I'll just add this comment here at the top...

Can you please add a release note snippet? https://guides.dataverse.org/en/6.3/developers/version-control.html#writing-release-note-snippets

}
}

public void activateBannerMessage(Object pk) {
Copy link
Member

Choose a reason for hiding this comment

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

First, maybe this should be called reactivate.

If you reactivate a banner message, what happens to the "mark as read" state of the message for users? Does it show as read or unread? Do you want it to be unread when you reactivate the message?

From this comment, we added deactivate "to retain the history of users' dismissals of messages while hiding out of date messages": #7434 (comment)

@pdurbin pdurbin added the Size: 3 A percentage of a sprint. 2.1 hours. label Sep 19, 2024
@ghost ghost closed this Sep 19, 2024
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Size: 3 A percentage of a sprint. 2.1 hours.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Add activate Banner Message by API Admin

2 participants