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

feat: health check enum #3913

Merged
merged 2 commits into from
Feb 12, 2024
Merged

feat: health check enum #3913

merged 2 commits into from
Feb 12, 2024

Conversation

magrinj
Copy link
Member

@magrinj magrinj commented Feb 12, 2024

This PR is adding some health check on enum types, the goal is to verify that defaultValue is matching with one of the provided options.

@magrinj magrinj marked this pull request as ready for review February 12, 2024 09:34
const mainDataSource = this.typeORMService.getMainDataSource();

// TODO: remove special case for enum type, should we include this to fieldMetadataTypeToColumnType?
Copy link
Member Author

Choose a reason for hiding this comment

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

Actually fieldMetadataTypeToColumnType is used in other places, so we can't change it.
This special case only happen here

Copy link

github-actions bot commented Feb 12, 2024

TODOs/FIXMEs:

  • // TODO: remove special case for enum type, should we include this to fieldMetadataTypeToColumnType?: packages/twenty-server/src/workspace/workspace-health/services/database-structure.service.ts

Generated by 🚫 dangerJS against 47beb79

Copy link
Member

@Weiko Weiko left a comment

Choose a reason for hiding this comment

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

Left a comment but it's mostly for readability. LGTM!

@magrinj magrinj merged commit 35fce6a into main Feb 12, 2024
16 checks passed
@magrinj magrinj deleted the feat/health-check-enum branch February 12, 2024 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants