-
Notifications
You must be signed in to change notification settings - Fork 3
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
SHS-5980: Dashboard: Notifications/Announcements to Site Editors #1745
SHS-5980: Dashboard: Notifications/Announcements to Site Editors #1745
Conversation
…humsci into SHS-5979-and-5982--dashboard-views
…DO/suhumsci into SHS-5980--announcements
…humsci into SHS-5980--announcements
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.
@codechefmarc Looks pretty good, there are just a couple of things I want you to check:
- Left a comment in the code about a duplicated function call
- In my tests, the changes in the Google sheet were almost instantly available in the block. Can you please confirm that the cache is working as expected?
docroot/modules/humsci/hs_dashboard/src/Plugin/Block/HsdpAnnouncementsBlock.php
Outdated
Show resolved
Hide resolved
@cienvaras - Fixed the duplicate call and reworked caching so the table data itself is cached for 2 minutes. |
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.
@codechefmarc Thanks for the fixes! I still have a question and a minor change request, please check the inline comments.
docroot/modules/humsci/hs_dashboard/src/AnnouncementsManager.php
Outdated
Show resolved
Hide resolved
docroot/modules/humsci/hs_dashboard/src/AnnouncementsManager.php
Outdated
Show resolved
Hide resolved
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.
@codechefmarc LGTM! Thanks for the fixes.
@ahughes3 Ready for you to review.
@codechefmarc @dalin- In reviewing with the team we would like to remove the "Title" column and rename "Description" to "Update" Date and Update should be the only columns that are displayed on the dashboard. I've updated the sheet with the actual updates that we want to display. On the Google Sheet In the cells that have links there is a message that says - "This cell's contents violate its validation rule", they display correctly on the dashboard but just wanted to see if this would be an issue |
That's a data validation rule to show a warning if the content is > 150 characters. AFAICT it should be showing you "Please keep content within 150 characters" rather than that very technical warning. Also, once you throw a link in there that'll easily eat up another 50 chars, so I increased it to 200. |
…humsci into SHS-5980--announcements
@ahughes3 - I've made those changes to the table and is viewable on Tugboat. |
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.
approved to be merged into the main dashboard PR but left some additional notes in the PR
7ffad47
into
SHS-5913_Dashboard-initiative
Summary
Need Review By (Date)
2025-02-12
Urgency
low
Steps to Test
/admin/dashboard
) and clicking on "+ Edit Layout"Review Tasks
Backend / Functional Validation
Code
snake_case
and notcamelCase
?Code security
General