-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
#2441 - proposal notifications should have 'you' when I am the creator #2444
base: master
Are you sure you want to change the base?
Conversation
group-income Run #3545
Run Properties:
|
Project |
group-income
|
Branch Review |
sebin/task/#2441-notification-should-have-you
|
Run status |
Passed #3545
|
Run duration | 08m 54s |
Commit |
c000907529 ℹ️: Merge b532560e7b334c043e28963e56a527cd0fda604f into 7b1c2b3f5018516781f8955dec2b...
|
Committer | Sebin Song |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
10
|
Skipped |
0
|
Passing |
111
|
View all changes introduced in this branch ↗︎ |
frontend/model/contracts/group.js
Outdated
@@ -702,6 +702,7 @@ sbp('chelonia/defineContract', { | |||
createdDate: meta.createdDate, | |||
groupID: contractID, | |||
creatorID: innerSigningContractID, | |||
isCreator: innerSigningContractID === loggedIn.identityContractID, |
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.
Instead of isCreator
, I think it'd be better to leave this as is, and add the creatorID
to the PROPOSAL_CLOSED
notification. Then, we can check for creator when the notification text is created. (The reason for doing it this way is to keep the contract code as less reliant on external state as possible).
frontend/model/contracts/group.js
Outdated
sbp('gi.notifications/emit', 'PROPOSAL_CLOSED', { | ||
createdDate: meta.createdDate, | ||
groupID: contractID, | ||
isCreator: loggedIn.identityContractID === proposal.creatorID, |
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.
@taoeffect Updated the PR for Ricardo's feedbacks. |
closes #2441
Made fixes for
NEW_PROPOSAL
andPROPOSAL_CLOSED
notifications.PROPOSAL_EXPIRING
does not need this fix because it is emitted only to those who have not voted yet. (Creator always votes for 'yes') But please let me know if I have missed anything here.