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

DOP-4264 #966

Merged
merged 5 commits into from
Jan 22, 2024
Merged

DOP-4264 #966

merged 5 commits into from
Jan 22, 2024

Conversation

seungpark
Copy link
Contributor

@seungpark seungpark commented Jan 18, 2024

Context: noticed an unwanted outcome in persistence module when merging ToC's - A merged metadata entry for an associated product would have the full url option, instead of having the slug option to navigate to related pages. This was due to mutation of the originally referenced node, where it mutates previously stored values as well.

Example of entry here (see entry for _id: ObjectId('65a81d3ab914fa9f351aee3c') in snooty_dotcomstg.metadata)

image

The above ToC nodes should have a slug field (as opposed to url field) since this is a metadata entry for atlas-cli

To mitigate this issue, added a line to structuredClone that is available since node v17. Updated the git test and nvm versions accordingly

Copy link

Your feature branch infrastructure has been deployed!

Your webhook URL is: https://buzlgzj8cd.execute-api.us-east-2.amazonaws.com/prod/webhook/githubEndpoint/trigger/build

For more information on how to use this endpoint, follow these instructions.

Copy link
Contributor

@mmeigs mmeigs left a comment

Choose a reason for hiding this comment

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

TIL structuredClone!

@seungpark seungpark merged commit effa134 into master Jan 22, 2024
10 checks passed
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