Skip to content
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-3945] Notification for Collaborator added #1034

Merged
merged 5 commits into from
Apr 5, 2024

Conversation

garyjzhao
Copy link
Contributor

@garyjzhao garyjzhao commented Apr 4, 2024

EASI-3945

Changes and Description

How to test this change

High overview functionality check

  1. Add new collaborator to model plan
  2. Verify that new collaborator gets notification in notification center and email

PR Author Review Checklist

  • Met the ticket's acceptance criteria, or will meet them in a subsequent PR.
  • Added or updated tests for backend resolvers or other functions as needed.
  • Added or updated client tests for new components, parent components, functions, or e2e tests as necessary.
  • Updated the Postman Collection if necessary.

PR Reviewer Guidelines

  • It's best to pull the branch locally and test it, rather than just looking at the code online!
  • Check that all code is adequately covered by tests - if it isn't feel free to suggest the addition of tests.
  • Always make comments, even if it's minor, or if you don't understand why something was done.

StevenWadeOddball and others added 4 commits March 15, 2024 06:55
* feat: user notification user userIDRelation

* feat: preliminary added as a collaboorator meta data type

* feat: ActivityAddedAsCollaboratorCreate and unit test

* feat: preliminary connection of added as collaborator notification

* feat: add parameter to create collaborator to send a notification or not (instead of inferrring from email service)

* feat: assert that a notification is made in the collaborator unit test

* feat: add a unit test to assert a notification is not created when sendNotification is false

* feat: new data loader WIP, collaborator sql files moved to SQL queries

* feat: standardize collaborator method naming conventions

* feat: plan collaborator get now utilizes dataloader. Correct wiring for dataloader

* feat: unit test for planCollaborator by ID data loader

* feat: utility error handling function for data loaders

* chore: remove irrelevant comment

* feat: update seeder to use config context instead of background, so it has access to data loaders

* feat: update postman collection with example of new notification type

* feat: move audit.change to be the last table truncated to address constraint issue in unit tests

* feat: incorporate truncate logic from the daily digest notification branch

* feat: add comments to the embedded SQL files for plan collaborator

* chore: correct embed statement capitalization
…ation

# Conflicts:
#	MINT.postman_collection.json
#	pkg/graph/generated/generated.go
#	pkg/graph/resolvers/activity.resolvers.go
#	pkg/graph/resolvers/schema.resolvers.go
#	pkg/graph/schema/types/activity.graphql
#	pkg/notifications/activity.go
#	pkg/storage/truncate.go
#	scripts/dev
#	src/gql/gen/graphql.ts
#	src/gql/gen/types/GetNotifications.ts
* updated GetNotifications

* streamline the query for add collab notification

* drying up the click hander

* move some functions around

* DRYing up the functions

* remove only in e2e test

* add test to add collaborator notification
@garyjzhao garyjzhao requested review from a team as code owners April 4, 2024 15:24
@garyjzhao garyjzhao requested review from OddTomBrooks and patrickseguraoddball and removed request for a team April 4, 2024 15:24
@StevenWadeOddball StevenWadeOddball removed the request for review from a team April 4, 2024 21:32
Copy link
Contributor

@patrickseguraoddball patrickseguraoddball left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FE changes look good, and functionally works as expected

@garyjzhao garyjzhao merged commit 9523319 into main Apr 5, 2024
11 checks passed
@garyjzhao garyjzhao deleted the feature/EASI-3945_collaborator_added_notification branch April 5, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants