-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: confirmation emails for joining organization (#962)
* add migrations and graphql stuff for join confirmations for organization memberships * start on backend logic for joining organization; some frontend as well * add possibility to specify different email to delivery * frontend mutation placeholder; activation code * organization join email template type; activation link seems to work * can refresh confirmation and send new mail * added tests for mutations; more template data etc. * fix failing test * fix code style * remove una; shorter activation code * add organizational_email; updateUser mutation; fix few snapshots and tests * fix test mutation type * actually fix graphql model type name * fix organization import parsing; convertUpdate * registration link tiers as list * organization join activation tests * fix broken email delivery tests * add example queries/mutations for user organization join/confirm * Add form for organization registration * fix some graphql redundancies; disable updating user organization role for now * Add functionality for saving organization information to TMC * Fix bug in previous commit * Remove organization from joined organizations on TMC when leaving * Add functionality for saving organization information to TMC * provide missing user organization types * move organizational_email to userorganization; service to expire confirmation links * add organizational_identifier; logic to change organizational email * changing organizational email on refreshing confirmation link; make some resolvers nullable * only throw apolloerrors in resolvers; more organizational email logic; reshuffling utils * update frontend graphql definitions * More refactoring from id to slug in register form * Revert "More refactoring from id to slug in register form" This reverts commit 08c02b5. * More refactoring from id to slug in register form (without extra stuff this time) * fix custom scalars; refactor and shuffle some utility types * fix bugs and unsound logic found manually testing user organization join * more logic fixes; updating tests * more testing user organization join/confirm * Conditional rendering using confirmationStatus-variable * update frontend graphql; use more utility functions in backend * fix broken disabled organization filters * remove console.logs; use logger in kafka log * add code expiry date to templates * Add view for joining organization without email verification * Handle re-sending a registration verification email with the correct mutation * add some typing * fix non-working import in config * enable json import in production as well * use default email template for organization join; enable templating for email title and html body * some template editor edits; filter menu context * Add a way to update organization registration email * code style * collect guards in one place; fix frontend package-lock * fix tests, snapshots, migrations * fix test auth headers * fix lots of backend typing; graphql dir -> schema * fix frontend typing etc. * add patch to nexus-plugin-prisma to force prisma version * prevent sentry init in build * don't include types in dist * don't include dist in tsconfig.production * fix course tests and snapshots, changed start/end date * fix nullable start_date; editor tag saving * remove ts-node-dev; remove duplicate buildusersearch * fix sponsor input; fix user progress extra query spread order --------- Co-authored-by: Antti Leinonen <[email protected]>
- Loading branch information
Showing
261 changed files
with
13,478 additions
and
16,459 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.