-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[permissions] Move SettingsPermissions from twenty-shared to twenty-server #10430
Conversation
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.
PR Summary
This PR relocates the SettingsPermissions enum from twenty-shared to twenty-server package, improving architectural boundaries by keeping server-specific permissions within the server codebase.
- Moved
SettingsPermissions
enum to/packages/twenty-server/src/engine/metadata-modules/permissions/constants/settings-permissions.constants.ts
- Updated import paths across 14 resolver and module files to use new local path
- Removed
SettingsPermissions
export from/packages/twenty-shared/src/constants/index.ts
- Maintains all existing permission values and functionality while consolidating server-side concerns
15 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
@@ -7,7 +7,7 @@ import { | |||
} from '@nestjs/common'; | |||
import { GqlExecutionContext } from '@nestjs/graphql'; | |||
|
|||
import { SettingsPermissions } from 'twenty-shared'; | |||
import { SettingsPermissions } from "src/engine/metadata-modules/permissions/constants/settings-permissions.constants"; |
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.
style: Double quotes used for import statement while single quotes are used elsewhere. Maintain consistent quote style.
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.
👍
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.
@ijreilly I think we still have some imports in the frontend 🙂
You can use the generated type from graphql there
b13a561
to
c37792c
Compare
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! @ijreilly
@@ -7,7 +7,7 @@ import { | |||
} from '@nestjs/common'; | |||
import { GqlExecutionContext } from '@nestjs/graphql'; | |||
|
|||
import { SettingsPermissions } from 'twenty-shared'; | |||
import { SettingsPermissions } from "src/engine/metadata-modules/permissions/constants/settings-permissions.constants"; |
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.
👍
No description provided.