-
Notifications
You must be signed in to change notification settings - Fork 5
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
[ASAP-740] - add reminders for discussions #4518
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4518 +/- ##
========================================
Coverage 99.49% 99.50%
========================================
Files 1088 1090 +2
Lines 21947 22232 +285
Branches 6950 7073 +123
========================================
+ Hits 21836 22121 +285
Misses 111 111 ☔ View full report in Codecov by Sentry. |
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.
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.
We need to add item.entity !== 'Discussion'
here as well https://github.com/yldio/asap-hub/blob/master/apps/crn-frontend/src/dashboard/Dashboard.tsx#L34:L36 so the reminders are behind a feature flag
}; | ||
|
||
test('the person who started the discussion should not see discussion started reminders', async () => { | ||
const userId = 'user-who-created-manuscript'; |
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.
const userId = 'user-who-created-manuscript'; | |
const userId = 'user-who-started-discussion'; |
${'asap-staff-user'} | ${'ASAP Staff'} | ||
${'trainee-user'} | ${'Trainee'} | ||
`( | ||
'the team member with role $role should not see manuscript created reminders', |
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.
'the team member with role $role should not see manuscript created reminders', | |
'the team member with role $role should not see the discussion ended reminders', |
repliesCollection(limit: 100) { | ||
items { | ||
sys { | ||
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.
repliesCollection(limit: 100) { | |
items { | |
sys { | |
id | |
} | |
} | |
} |
I believe we're not using this repliesCollection
:)
ref: https://asaphub.atlassian.net/browse/ASAP-740