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(app-config-writer): wrong prerequisites check in convert preview-config #2922

Open
wants to merge 31 commits into
base: main
Choose a base branch
from

Conversation

heimwege
Copy link
Contributor

@heimwege heimwege commented Feb 14, 2025

cds-plugin-ui5 is currently being searched in package.json of the app to be converted but must be searched for in CAP root package.json.

This fix currently leads to an exception in project-access checkFilesInSrvFolder in case the CAP srv folder contains sub folders. (fixed in #2923) ✅

Depends on #2926 being merged ✅

Copy link

changeset-bot bot commented Feb 14, 2025

🦋 Changeset detected

Latest commit: 0907b8e

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

This PR includes changesets to release 41 packages
Name Type
@sap-ux/app-config-writer Patch
@sap-ux/project-access Patch
@sap-ux/ui5-application-inquirer Patch
@sap-ux/create Patch
@sap-ux/flp-config-sub-generator Patch
@sap-ux/abap-deploy-config-sub-generator Patch
@sap-ux/abap-deploy-config-writer Patch
@sap-ux/adp-flp-config-sub-generator Patch
@sap-ux/adp-tooling Patch
@sap-ux/annotation-generator Patch
@sap-ux/cap-config-writer Patch
@sap-ux/cards-editor-middleware Patch
@sap-ux/cf-deploy-config-sub-generator Patch
@sap-ux/cf-deploy-config-writer Patch
@sap-ux/deploy-config-sub-generator Patch
@sap-ux/environment-check Patch
@sap-ux/fe-fpm-writer Patch
@sap-ux/fiori-annotation-api Patch
@sap-ux/fiori-generator-shared Patch
@sap-ux/flp-config-inquirer Patch
@sap-ux/launch-config Patch
@sap-ux/mockserver-config-writer Patch
@sap-ux/odata-service-inquirer Patch
@sap-ux/odata-service-writer Patch
@sap-ux/preview-middleware Patch
@sap-ux/project-integrity Patch
@sap-ux/telemetry Patch
@sap-ux/ui5-library-reference-inquirer Patch
@sap-ux/ui5-library-reference-sub-generator Patch
@sap-ux/ui5-library-reference-writer Patch
@sap-ux/ui5-library-writer Patch
@sap-ux/fiori-elements-writer Patch
@sap-ux/fiori-freestyle-writer Patch
@sap-ux/fe-fpm-cli Patch
@sap-ux/abap-deploy-config-inquirer Patch
@sap-ux/deploy-config-generator-shared Patch
@sap-ux/inquirer-common Patch
@sap-ux/ui5-library-sub-generator Patch
@sap-ux/generator-simple-fe Patch
@sap-ux/cf-deploy-config-inquirer Patch
@sap-ux/ui5-library-inquirer 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

@heimwege
Copy link
Contributor Author

The new sonar issue seems to be a false positive because casting to Package | undefined is for sure a different type than the inferred JSONSchema7Object | undefined

@heimwege heimwege marked this pull request as ready for review February 17, 2025 08:06
@heimwege heimwege requested a review from a team as a code owner February 21, 2025 16:21
@heimwege
Copy link
Contributor Author

heimwege commented Feb 24, 2025

@Klaus-Keller ...and yes w.r.t. the failing unit test I might need your help. The cards-editor-middleware unit test fails because mem-fs-editor was added to cap.ts and I cannot get it running

https://cloud.nx.app/runs/OEWcAt6JIL/task/%40sap-ux%2Fcards-editor-middleware%3Atest

@heimwege heimwege added cap-config-writer @sap-ux/cap-config-writer project-access Tickets related to @sap-ux/project-access cards-editor-middleware @sap-ux/cards-editor-middleware odata-service-inquirer @sap-ux/odata-service-inquirer ui5-application-inquirer and removed odata-service-inquirer @sap-ux/odata-service-inquirer labels Feb 26, 2025
Copy link
Contributor

@Klaus-Keller Klaus-Keller left a comment

Choose a reason for hiding this comment

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

Thanks @heimwege!

  • code changes and moving of CDS check look good
  • all my comments have been addressed
  • changeset exists
  • code coverage is good
  • visual review, no manual testing done

Approved from my side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app-config-writer @sap-ux/app-config-writer bug Something isn't working cap-config-writer @sap-ux/cap-config-writer cards-editor-middleware @sap-ux/cards-editor-middleware project-access Tickets related to @sap-ux/project-access ui5-application-inquirer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants