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

Fix user query fragment #6450

Merged
merged 1 commit into from
Jul 30, 2024
Merged

Fix user query fragment #6450

merged 1 commit into from
Jul 30, 2024

Conversation

Weiko
Copy link
Member

@Weiko Weiko commented Jul 30, 2024

No description provided.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

The pull request addresses two main changes to improve flexibility and reduce complexity in the user query fragment.

  • packages/twenty-front/src/generated/graphql.tsx: Modified ServerlessFunction type to make the description field optional, allowing it to be null.
  • packages/twenty-front/src/modules/users/graphql/fragments/userQueryFragment.ts: Simplified the domainName field within the defaultWorkspace fragment by removing its nested structure.

Ensure thorough testing to avoid null reference errors and update dependent queries and components accordingly.

2 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings

@@ -695,7 +695,7 @@ export type Sentry = {
export type ServerlessFunction = {
__typename?: 'ServerlessFunction';
createdAt: Scalars['DateTime'];
description: Scalars['String'];
description?: Maybe<Scalars['String']>;
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Ensure all parts of the codebase that use ServerlessFunction.description handle null values correctly.

primaryLinkUrl
primaryLinkLabel
}
domainName
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Ensure all dependent queries and components are updated to handle the simplified domainName field.

@Weiko Weiko merged commit c449b4c into main Jul 30, 2024
9 checks passed
@Weiko Weiko deleted the c--fix-user-query-fragment branch July 30, 2024 10:47
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.

2 participants