-
Notifications
You must be signed in to change notification settings - Fork 21
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
Feature: Adjust display for share grant events #3569
Conversation
- Implemented `getOrganizationNotesForGrantByUser()` function in `grantsCollaboration/notes.js` - Renamed `getOrganizationNotesForGrant()` to `getCurrentNoteRevisions()` and updated signature - Made conditional `WHERE` clause for `grantId` and `userId` in `getCurrentNoteRevisions()` - Created API route `GET /:grantId/notes/user/:userId` in `grants.js` for fetching user-specific grant notes - Added validation for `afterRevision` and `limit` query parameters in the new API - Ensured results are paginated and ordered by `created_at` in descending order - Added necessary imports/exports in `grantsCollaboration/index.js`
…ific-user-FinderAPI
…t-notes-specific-user-FinderAPI' into feat/grant-notes
QA Summary
Test CoverageCoverage report for `packages/client`
Coverage report for `packages/server`
|
Terraform Summary
Hint: If "Terraform Format & Style" failed, run OutputValidation Output
Plan Summary
Pusher: @greg-adams, Action: |
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.
@greg-adams Things are looking really nice in my local environment!
I only found one issue during testing (see my comments). Additionally, I'm wondering the packages/client/src/components/GrantNote.vue
component is still being used anywhere. If not, can we delete that file (along with its tests) in this PR as well?
:user-name="userNote.user.name" | ||
:user-email="userNote.user.email" | ||
:team-name="userNote.user.team.name" | ||
:avatar-color="userNote.user.avatarColor" | ||
:created-at="userNote.createdAt" |
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.
This block appears to be missing something like :is-edited="userNote.isRevised"
– when testing in my local environment, I'm missing the (edited)
treatment in the {{ timeElapsedString }} (edited)
part of the template.
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.
thanks for catching, I added this back in
class="activity-container" | ||
:user-name="note.user.name" | ||
:user-email="note.user.email" | ||
:team-name="note.user.team.name" | ||
:avatar-color="note.user.avatarColor" | ||
:created-at="note.createdAt" | ||
copy-email-enabled | ||
:data-test-other-note-id="note.id" |
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.
Also missing an :is-edited
prop (see previous comment)
Good catch, I also removed |
@greg-adams Looks good! |
Ticket #3240
Description
UserActivityItem
)Screenshots / Demo Video
Testing
Automated and Unit Tests
Manual tests for Reviewer
Checklist