-
-
Notifications
You must be signed in to change notification settings - Fork 11
[BACK-3478] Add email notifications work system processors. #896
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
base: master
Are you sure you want to change the base?
Conversation
…sers on specific events.
darinkrauss
left a comment
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.
Some thoughts...
| @@ -0,0 +1,129 @@ | |||
| package claimaccount | |||
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.
In order to fit in with the other platform and work implementations, how about we move this to notifications/work/users/claim. And, for the others, notifications/work/users/connections/new and notifications/work/users/connections/issues.
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.
I went with a middle ground of
notifications/work/claims
*notifications/work/connections/requestsnotifications/work/connections/issues
Not a huge fan of packages where the parent packages are empty. IMO some package named connectionissues gives me pretty good idea of what it deals with, in the same way package stringutil does. When it gets to connections => subcategory is where things can start getting hairy if then sub-subcategories are added.
…itionalnotifications => notifications.
darinkrauss
left a comment
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.
A number of quick, minor changes. Also, I didn't highlight every instance, but please replace all fmt.Errorf with errors.Newf or errors.Wrapf, as appropriate. Otherwise, looks good.
|
|
||
| type Metadata struct { | ||
| ClinicID string `json:"clinicId,omitempty"` | ||
| UserId string `json:"userId,omitempty"` |
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.
Uppercase ID per Golang convention:
| UserId string `json:"userId,omitempty"` | |
| UserID string `json:"userId,omitempty"` |
|
Also, it looks like the build is failing. Try running |
darinkrauss
left a comment
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.
LGTM, just one question out of curiosity.
| script: | ||
| - export TIMING_CMD='time -p' | ||
| - make plugins-visibility-${PLUGINS_VISIBILITY} && make ci | ||
| - make "plugins-visibility-${PLUGINS_VISIBILITY}" && make ci |
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.
Was this to silence some linter warning or another?
No description provided.