-
Notifications
You must be signed in to change notification settings - Fork 1
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
[EASI-4473] Notification: Data Exchange Approach Completed #1209
[EASI-4473] Notification: Data Exchange Approach Completed #1209
Conversation
…ge approach in-app notification
… to validate email templates
…' of github.com:CMSgov/mint-app into feature/EASI-4473_notif_data_exchange_approach_complete
Do not merge until frontend implementation is integrated into this PR Failed tests are due to pending frontend implementation |
I forgot to note! I also verified the email and it looks good, thanks @OddTomBrooks! |
…fication preferences
3d4e8b1
into
NOREF/data_exchange_approach
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 Tom, I added a couple notes about the notification that can be picked up when this is handled again. I don't think it makes sense to implement anything until the final designs are complete, but I wanted to note this feedback for when it is picked up again.
type DataExchangeApproachCompletedActivityMeta { | ||
version: Int! | ||
type: ActivityType! | ||
dataExchangeApproach: DataExchangeApproach! | ||
dataExchangeApproachID: UUID! |
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 think for this meta, we'd want both the ID, and the dataloader result to return the actually approach. Might be good to just add as a todo in the feature branch
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.
(so that the front end can access the actual data if needed)
@@ -63,7 +62,7 @@ func (r *userNotificationPreferencesResolver) DatesChanged(ctx context.Context, | |||
|
|||
// DataExchangeApproachCompleted is the resolver for the dataExchangeApproachCompleted field. | |||
func (r *userNotificationPreferencesResolver) DataExchangeApproachCompleted(ctx context.Context, obj *models.UserNotificationPreferences) ([]models.UserNotificationPreferenceFlag, error) { |
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 should probably get some attention when it is picked up again. I'm not sure why it should be creating a resolver instead of auto mapping... 🤔
DataExchangeApproach *DataExchangeApproach `json:"dataExchangeApproach"` | ||
MarkedCompleteBy uuid.UUID `json:"markedCompleteBy"` | ||
DataExchangeApproachID uuid.UUID `json:"dataExchangeApproachID"` | ||
MarkedCompleteBy uuid.UUID `json:"markedCompleteBy"` | ||
} |
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.
Note I think we probably want to the model_plan_id stored here too.
* feat: added feature migration, data models, gql * chore: updated sql queries * feat: several major improvements to first semi-functional data exchange approach in-app notification * chore: updated postman collection to get all notifications * chore: updated frontend gql and backend gql for user notification preferences * chore: added simple resolver helper to dispatch emails and email test to validate email templates * chore: removed resolved question * chore: Reset all frontend files to main branch as we split the frontend work to EASI-4491 * chore: reran gql gen * fix: forcing a commit for rebasing purposes * chore: removed tmp file * [EASI-4473] Notification: Data Exchange Approach Completed (#1209) * feat: added feature migration, data models, gql * chore: updated sql queries * feat: several major improvements to first semi-functional data exchange approach in-app notification * chore: updated postman collection to get all notifications * chore: updated frontend gql and backend gql for user notification preferences * chore: added simple resolver helper to dispatch emails and email test to validate email templates * chore: removed resolved question * chore: Reset all frontend files to main branch as we split the frontend work to EASI-4491 * chore: reran gql gen * chore: email unit test for data exchange approach completed * chore: removed unnecessary Scan and Value methods * chore: added unit test for activity data exchange complete notification * chore: implemented resolver for data exchange approach completed notification preferences * fix: updated various test definitions to match new user account preferences spec * chore: removed outdated comment * chore: updated postman collection renaming markedCompletedBy -> markedCompleteBy * chore: converted data exchange approach complete meta to id * chore: updated migration version * wip: data exchange approach * wip: data exchange approach gql, store, and resolvers * feat: working data exchange approach creation and updates * feat: several feedback elements implemented * chore: implementing PR feedback * chore: implementing PR feedback * wip: marked complete by user account and dts tracking * feat: first working version of plan data exchange approach * chore: ran linter and fixed cache helper reference * run eslint * fix: corrected cyclic dependency and several linter guidances * merging changes * ran sql fluff linter on migrations * run lint * fix: restructed logic for is marked complete to utilize null state of MarkedByDts rather than explicit boolean field * feat: added status handling * chore: corrected file name * chore: removed old debug print * fix: fixed lagging status * fix: added status to sql queries * fix: corrected enum references from COMPLETE to COMPELETED * chore: removed delete logic for dea * chore: refactored IsDataExchangeApproachComplete resolver * chore: updated enum to READY to conform more closely with other task list sections --------- Co-authored-by: ClayBenson94 <clay.benson@oddball.io> Co-authored-by: Steven Wade <steven.wade@oddball.io>
* feat: added feature migration, data models, gql * chore: updated sql queries * feat: several major improvements to first semi-functional data exchange approach in-app notification * chore: updated postman collection to get all notifications * chore: updated frontend gql and backend gql for user notification preferences * chore: added simple resolver helper to dispatch emails and email test to validate email templates * chore: removed resolved question * chore: Reset all frontend files to main branch as we split the frontend work to EASI-4491 * chore: reran gql gen * fix: forcing a commit for rebasing purposes * chore: removed tmp file * [EASI-4473] Notification: Data Exchange Approach Completed (#1209) * feat: added feature migration, data models, gql * chore: updated sql queries * feat: several major improvements to first semi-functional data exchange approach in-app notification * chore: updated postman collection to get all notifications * chore: updated frontend gql and backend gql for user notification preferences * chore: added simple resolver helper to dispatch emails and email test to validate email templates * chore: removed resolved question * chore: Reset all frontend files to main branch as we split the frontend work to EASI-4491 * chore: reran gql gen * chore: email unit test for data exchange approach completed * chore: removed unnecessary Scan and Value methods * chore: added unit test for activity data exchange complete notification * chore: implemented resolver for data exchange approach completed notification preferences * fix: updated various test definitions to match new user account preferences spec * chore: removed outdated comment * chore: updated postman collection renaming markedCompletedBy -> markedCompleteBy * chore: converted data exchange approach complete meta to id * chore: updated migration version * wip: data exchange approach * wip: data exchange approach gql, store, and resolvers * feat: working data exchange approach creation and updates * feat: several feedback elements implemented * chore: implementing PR feedback * chore: implementing PR feedback * wip: marked complete by user account and dts tracking * feat: first working version of plan data exchange approach * chore: ran linter and fixed cache helper reference * run eslint * fix: corrected cyclic dependency and several linter guidances * merging changes * ran sql fluff linter on migrations * run lint * fix: restructed logic for is marked complete to utilize null state of MarkedByDts rather than explicit boolean field * feat: added status handling * chore: corrected file name * chore: removed old debug print * fix: fixed lagging status * fix: added status to sql queries * Init dea query * fix: corrected enum references from COMPLETE to COMPELETED * Added card and translations * chore: removed delete logic for dea * chore: refactored IsDataExchangeApproachComplete resolver * chore: updated enum to READY to conform more closely with other task list sections * Added status enum change update * Added start approach button * Added unit test --------- Co-authored-by: Tom Brooks <tom.brooks@oddball.io> Co-authored-by: Tom Brooks <100007843+OddTomBrooks@users.noreply.github.com> Co-authored-by: ClayBenson94 <clay.benson@oddball.io> Co-authored-by: Steven Wade <steven.wade@oddball.io>
* feat: added feature migration, data models, gql * chore: updated sql queries * feat: several major improvements to first semi-functional data exchange approach in-app notification * chore: updated postman collection to get all notifications * chore: updated frontend gql and backend gql for user notification preferences * chore: added simple resolver helper to dispatch emails and email test to validate email templates * chore: removed resolved question * chore: Reset all frontend files to main branch as we split the frontend work to EASI-4491 * chore: reran gql gen * fix: forcing a commit for rebasing purposes * chore: removed tmp file * [EASI-4473] Notification: Data Exchange Approach Completed (#1209) * feat: added feature migration, data models, gql * chore: updated sql queries * feat: several major improvements to first semi-functional data exchange approach in-app notification * chore: updated postman collection to get all notifications * chore: updated frontend gql and backend gql for user notification preferences * chore: added simple resolver helper to dispatch emails and email test to validate email templates * chore: removed resolved question * chore: Reset all frontend files to main branch as we split the frontend work to EASI-4491 * chore: reran gql gen * chore: email unit test for data exchange approach completed * chore: removed unnecessary Scan and Value methods * chore: added unit test for activity data exchange complete notification * chore: implemented resolver for data exchange approach completed notification preferences * fix: updated various test definitions to match new user account preferences spec * chore: removed outdated comment * chore: updated postman collection renaming markedCompletedBy -> markedCompleteBy * chore: converted data exchange approach complete meta to id * chore: updated migration version * wip: data exchange approach * wip: data exchange approach gql, store, and resolvers * feat: working data exchange approach creation and updates * feat: several feedback elements implemented * chore: implementing PR feedback * chore: implementing PR feedback * wip: marked complete by user account and dts tracking * feat: first working version of plan data exchange approach * chore: ran linter and fixed cache helper reference * run eslint * fix: corrected cyclic dependency and several linter guidances * merging changes * ran sql fluff linter on migrations * run lint * fix: restructed logic for is marked complete to utilize null state of MarkedByDts rather than explicit boolean field * feat: added status handling * chore: corrected file name * chore: removed old debug print * fix: fixed lagging status * fix: added status to sql queries * fix: corrected enum references from COMPLETE to COMPELETED * chore: removed delete logic for dea * chore: refactored IsDataExchangeApproachComplete resolver * chore: updated enum to READY to conform more closely with other task list sections * feat: email notification for plan data exchange approach marked complete * fix: corrected ID from existing DEA to model ID * chore: updated postman collection * chore: simplified store method per PR feedback * chore: getting model plan using loader per PR review * fix: corrected accidentally switched footers * fix: corrected id assignment in notification metadata * fix: referencing UTC Now cache var in test * chore: PR feedback * chore: PR feedback * chore: PR feedback * chore: fix tx usage for rollback * chore: PR feedback * Update data exchange notification logic to only attempt to send if email services are non-nil * chore: PR feedback to remove redundant DISTINCT call * chore: PR feedback to send batch emails by BCC * Update postman collection with ability to update notification preferences for data Exchange --------- Co-authored-by: ClayBenson94 <clay.benson@oddball.io> Co-authored-by: Steven Wade <steven.wade@oddball.io>
EASI-4473
Description
How to test this change
scripts/dev test:go
PR Author Checklist
PR Reviewer Guidelines