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(module-federation): dynamic federation helpers should normalize remote names #29427

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

Coly010
Copy link
Contributor

@Coly010 Coly010 commented Dec 19, 2024

Current Behavior

After migration of existing remotes beyond Nx 19.8, dynamic manifest federation files may be updated to match the normalized names of JS variables (_ instead of -).
Project names will not have been migrated, and therefore the logic to find the projects based on the remote names is broken.

Expected Behavior

Check the project graph for remote names as-is and by transforming _ to - to see if the project exists

@Coly010 Coly010 requested a review from a team as a code owner December 19, 2024 16:20
@Coly010 Coly010 self-assigned this Dec 19, 2024
@Coly010 Coly010 requested a review from jaysoo December 19, 2024 16:20
Copy link

vercel bot commented Dec 19, 2024

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

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Dec 19, 2024 4:24pm

@Coly010 Coly010 force-pushed the module-federation/normalize-manifest branch from 63dfcf2 to 8b462c4 Compare December 19, 2024 16:20
Copy link

nx-cloud bot commented Dec 19, 2024

View your CI Pipeline Execution ↗ for commit 8b462c4.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 39m 52s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 1m 2s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 1s View ↗
nx-cloud record -- nx format:check --base=ba164... ✅ Succeeded 18s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 17s View ↗
nx documentation --no-dte ✅ Succeeded 40s View ↗

☁️ Nx Cloud last updated this comment at 2024-12-19 17:07:30 UTC

@Coly010 Coly010 merged commit 16c8ba1 into master Dec 19, 2024
6 checks passed
@Coly010 Coly010 deleted the module-federation/normalize-manifest branch December 19, 2024 17:17
ndcunningham pushed a commit that referenced this pull request Dec 20, 2024
…emote names (#29427)

## Current Behavior
After migration of existing remotes beyond Nx 19.8, dynamic manifest
federation files may be updated to match the normalized names of JS
variables (`_` instead of `-`).
Project names will not have been migrated, and therefore the logic to
find the projects based on the remote names is broken.

## Expected Behavior
Check the project graph for remote names as-is and by transforming `_`
to `-` to see if the project exists
Copy link

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 Dec 25, 2024
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