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(yaml-actions): Update entity by metadata name #347

Merged
merged 2 commits into from
Sep 18, 2023

Conversation

alodela
Copy link
Contributor

@alodela alodela commented Sep 11, 2023

Motivation

The YAML actions support an entityRef argument to update an specific entity from the content, but the current implementation doesn't take into account when the entity name is provided under metadata.

Approach

Update the entity ref validation in the append and set operations to check for the name at root level and under metadata for each document.

Alternate Designs

Possible Drawbacks or Risks

TODOs and Open Questions

Learning

Screenshots

@changeset-bot
Copy link

changeset-bot bot commented Sep 11, 2023

🦋 Changeset detected

Latest commit: c929ea9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@frontside/scaffolder-yaml-actions Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@taras taras left a comment

Choose a reason for hiding this comment

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

Sorry, it took me a week to see this. It looks like it was utterly broken before. Thank you for the PR.

@taras taras merged commit f822b82 into thefrontside:main Sep 18, 2023
@taras
Copy link
Member

taras commented Sep 18, 2023

Your changes were released in @frontside/[email protected]. Thank you for your contribution.

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