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: sync metadata can alter and update a field #3944

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

magrinj
Copy link
Member

@magrinj magrinj commented Feb 13, 2024

This PR si fixing a missing part in workspace:sync-metadata command, updating a field was not implemented.
It also fix an issue that was ignoring some field metadata before comparing them.

@@ -55,7 +55,7 @@ export class WorkspaceFieldComparator {
const standardFieldMetadataMap = transformMetadataForComparison(
standardObjectMetadata.fields,
{
propertiesToIgnore: fieldPropertiesToStringify,
propertiesToStringify: fieldPropertiesToStringify,
Copy link
Member Author

Choose a reason for hiding this comment

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

OOOoooops !

Copy link
Member

Choose a reason for hiding this comment

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

haha

@magrinj magrinj marked this pull request as ready for review February 13, 2024 16:47
Copy link
Member

@charlesBochet charlesBochet left a comment

Choose a reason for hiding this comment

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

I've tested it, works very well, LGTM!

@@ -55,7 +55,7 @@ export class WorkspaceFieldComparator {
const standardFieldMetadataMap = transformMetadataForComparison(
standardObjectMetadata.fields,
{
propertiesToIgnore: fieldPropertiesToStringify,
propertiesToStringify: fieldPropertiesToStringify,
Copy link
Member

Choose a reason for hiding this comment

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

haha

@charlesBochet charlesBochet merged commit 8ce7020 into main Feb 13, 2024
16 checks passed
@charlesBochet charlesBochet deleted the feat/sync-metadata-update-field branch February 13, 2024 18:36
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

2 participants