Skip to content

feat(graph): add undo migration option when one is pending approval#30878

Merged
jaysoo merged 1 commit intomasterfrom
feat/migrate-ui-undo
Apr 25, 2025
Merged

feat(graph): add undo migration option when one is pending approval#30878
jaysoo merged 1 commit intomasterfrom
feat/migrate-ui-undo

Conversation

@jaysoo
Copy link
Copy Markdown
Member

@jaysoo jaysoo commented Apr 25, 2025

This PR adds a button for user to undo a migration that's already been applied and pending approval.

See: https://www.loom.com/share/97286bdc80ea4538af76a914ef8f0f8b

Also, fixes an existing issue where migrations.json did not record the correct git sha for each commit.

Current Behavior

When a migration is pending approval, the only option is to accept it.

Expected Behavior

Allow user to undo a migration if they don't want the changes.

Related Issue(s)

Fixes #

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 25, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Apr 25, 2025 5:56pm

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Apr 25, 2025

View your CI Pipeline Execution ↗ for commit 52445ab.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-ci ✅ Succeeded 5m 50s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 20s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗
nx documentation ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-04-25 19:13:44 UTC

cwd: workspacePath,
encoding: 'utf-8',
});
// The revision changes after the amend, so we need to update it
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Previously, the recorded ref in migrations.json were all wrong since they do not include the amended changes to migrations.json. This fixes an existing issue.

Copy link
Copy Markdown
Contributor

@ndcunningham ndcunningham left a comment

Choose a reason for hiding this comment

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

LGTM

@jaysoo jaysoo merged commit 0dc4dbf into master Apr 25, 2025
6 checks passed
@jaysoo jaysoo deleted the feat/migrate-ui-undo branch April 25, 2025 20:20
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 1, 2025

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants