7c354321be
feat: Add linting rule to recursively check for Prisma includes using… ( #13652 )
...
* feat: Add linting rule to recursively check for Prisma includes using only 'true'
* Fixing linting errors
* More linting fixes
* Disabled linting for forms
* Update recommended.ts
* Removed ignores
* Fixed warning
* Type fix
---------
Co-authored-by: Keith Williams <keithwillcode@gmail.com >
2024-04-26 21:16:16 +00:00
a677d0d2c4
fix: Organization Migration - Prevent the redirected username from being claimed by others. ( #13675 )
...
* Check for migrated username
* Add e2e for reserved username due to migration
* Add username change test
* Update username.ts
* fixed type checks
* Refactor to use isOrganization
* Typing
* Typing
* Removed the isOrganization function
---------
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com >
Co-authored-by: Keith Williams <keithwillcode@gmail.com >
2024-03-05 17:08:44 +00:00
0970c77009
fix: Revert -> "Revert "chore: Chore team metadata table + isOrganization migration ( #13700 )
...
* Revert "Revert "chore: Chore team metadata table + isOrganization migration from metadata (#12828 )""
This reverts commit 2408338ed4 .
* Remove constraint slug,isOrganization and reset migration
* fix: conflicts
* change schema to bust cache
* Fix issues reported by TS
* change schema to bust cache
* Review fixes
* Colaesce for orgAutoAcceptEmail as well
* Fix missing negation
---------
Co-authored-by: zomars <zomars@me.com >
Co-authored-by: Peer Richelsen <peeroke@gmail.com >
Co-authored-by: Keith Williams <keithwillcode@gmail.com >
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com >
2024-03-01 15:04:28 +00:00
zomars
2408338ed4
Revert "chore: Chore team metadata table + isOrganization migration from metadata ( #12828 )"
...
This reverts commit aabfd3b3f6 .
2024-01-16 12:20:51 -07:00
aabfd3b3f6
chore: Chore team metadata table + isOrganization migration from metadata ( #12828 )
...
* Migration+schema changes
* Remove org utils from schema
* Users fixture
* Auth signup handlers
* checkIsOrg fn
* use team.isOrganization > metadata
* Add isOrganization to getTeamWithMembers query
* list handler + optimise queries
* Update trpc handlers to use team.isOrganization && orgSettings table
* Update fixture
* Fix typo in prisma.schema
* next auth options use organizationSettings instread of tema metadata
* Admin tooling
* Updating components to use orgsettings over metadata
* Add unique index + fix org lib files
* validateUsername
* Add a seperate unique constraint between isOrg and slug
* Invite Member Logic
* fix resend file
* force isOrg to exist
* Team settings
* update createOrUpdateMemberships
* fix: admin get handler
* fix: team list handler - improve select
* fix: update admin update handler
* fix: settings layout - team get select
* organziationSettings Schema + adminupdate
* organziationSettings Schema + adminupdate
* typefix onSubtmi
* Fix:team repo throwing error if no metadata is found
* fix: add onDelete to be cascade instead of restri
* fix: org - team invite e2e
* fix: team invites not working in subteam context
* rename to organizationID
* fix user fixture team names
* Fix the organization created in tests
* fix: update organization metadata
* variable rename
* Reuse isOrganization
* variable rename
* Remove unnecessary optional chaining
* Update packages/trpc/server/routers/viewer/organizations/adminUpdate.handler.ts
Co-authored-by: Hariom Balhara <hariombalhara@gmail.com >
* Update packages/trpc/server/routers/viewer/organizations/adminUpdate.handler.ts
Co-authored-by: Hariom Balhara <hariombalhara@gmail.com >
* Update packages/trpc/server/routers/viewer/organizations/create.handler.ts
---------
Co-authored-by: Hariom <hariombalhara@gmail.com >
Co-authored-by: Keith Williams <keithwillcode@gmail.com >
2024-01-16 10:18:17 +00:00
Hariom Balhara and GitHub
53224886e3
feat: Routing Forms/Teams Support ( #9417 )
2023-06-15 08:58:07 +00:00