-
Notifications
You must be signed in to change notification settings - Fork 2
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
Improve seedNotificationType #7
Conversation
href: Joi.string().required(), | ||
}); | ||
|
||
export const SEGMENT_METADATA_SCHEMA_VALIDATOR: { |
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.
Nice
test/pre-test-scripts.ts
Outdated
@@ -48,7 +51,12 @@ async function runMigrations() { | |||
} | |||
|
|||
const seedDb = async () => { | |||
// | |||
new ThirdParty(); |
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.
Why instanciate an empty class here? Can we remove it? I don't think it's doing anything.
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.
Oh my mistake, I deleted that line
}, | ||
DRAFTED_PROJECT_SAVED: { | ||
name: 'The project saved as draft', | ||
description: 'The project saved as draftd', |
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.
Typo here, remove the d of the word draftd
|
||
// https://github.com/Giveth/notification-center/issues/6 , https://gist.github.com/MohammadPCh/24434d50bc9ccd9b74905c271ee05482 |
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 are missing the welcome notification type. I think we removed it on another PR. We should re add it, since it's part of the logic.
}, | ||
{ | ||
type: 'a', | ||
content: 'clik here', |
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.
typo, click
}, | ||
], | ||
content: | ||
'Pssst! your rewards are ready to claim 😉\nCheckout GIVeconomey to claim your rewards.', |
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.
typo! GIVeconomy
{ type: 'br' }, | ||
{ | ||
type: 'a', | ||
content: 'Clik here', |
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.
Typo! Click
content: 'Your project update was successful.', | ||
}, | ||
], | ||
content: 'Your project update was succesful.', |
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.
typo! successful
pushNotifierService: null, | ||
title: 'Donation has been failed', | ||
title: 'Project posted an update', |
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.
You posted an update
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 a lot Mohammad, I read all notifications and fixed 5-6 typos, and fixed copies in the spreadsheet too.
I added the welcome notification type we missed. Everything else is good!
@CarlosQ96 Thanks for your great review and made changes |
related to #6
@CarlosQ96
We had to add some HTML templates as https://gist.github.com/MohammadPCh/24434d50bc9ccd9b74905c271ee05482 so after merging we should delete some tables and migrations, to seed them again in staging DB, I added something to validate notificaiton's metadata as you wrote for segment data, and wrote lots of test cases to cover all notification types.
PS After this we should change impact-graph to send needed metadata when sending notifications and maybe calling notification-center in more places like when someone like a project