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(dsg): [BREAKING CHANGE] duplicated modules #5845

Merged
merged 21 commits into from
May 30, 2023
Merged

Conversation

overbit
Copy link
Contributor

@overbit overbit commented Apr 21, 2023

Close: #5791 #5837

PR Details

In order to fix the duplicated modules in the modules lists, this PR brings a breaking change to the way we interact with file generation by updating the type to a map type
This makes it clear to the developer if a file is going to be overwritten or not and it will allow dsg to always write one file only one time during a single run.

⚠️ This PR contains breaking changes and it will need to go live with amplication/plugins#113

As part of this PR, I've published @amplication/code-gen-types@2.0.0 with beta tag. Once released we need to just retag this version with latest tag.

PR Checklist

  • Tests for the changes have been added
  • npm test doesn't throw any error

IMPORTANT: Please review the CONTRIBUTING.md file for detailed contributing guidelines.

@nx-cloud
Copy link

nx-cloud bot commented Apr 21, 2023

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 758ff50. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 5 targets

Sent with 💌 from NxCloud.

@overbit overbit force-pushed the fix/duplicated-modules branch 3 times, most recently from 5991965 to d49c8e3 Compare April 24, 2023 15:02
@overbit overbit requested a review from barshimi April 24, 2023 16:46
@overbit overbit marked this pull request as ready for review April 25, 2023 07:38
@overbit overbit changed the title fix(dsg): duplicated modules fix(dsg): [BREAKING CHANGE] duplicated modules Apr 25, 2023
@overbit overbit force-pushed the fix/duplicated-modules branch 2 times, most recently from b648286 to 6ec8ce9 Compare April 27, 2023 15:25
@EugeneTseitlin EugeneTseitlin linked an issue May 17, 2023 that may be closed by this pull request
@mulygottlieb
Copy link
Member

@overbit @barshimi please complete the review and agree on the changes still needed to merge this. I want this done ASAP.

# Conflicts:
#	packages/data-service-generator/src/utils/read-static-modules.ts
@overbit overbit merged commit 4ccd256 into next May 30, 2023
9 of 10 checks passed
@overbit overbit deleted the fix/duplicated-modules branch May 30, 2023 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants