-
Notifications
You must be signed in to change notification settings - Fork 43
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: middleware crashes when manifest.json is missing or not where it was expected #1054
Conversation
🦋 Changeset detectedLatest commit: 2f9db7f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tobiasqueck, thanks for the PR.
patch
changeset looks correct- the code is readable and clean
- tests cover most of the changes
I had a few minor comments, could you please take a look when you can? Cheers.
@ullasholla please re-review, I believe, I have addressed all your concerns |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tobiasqueck, thanks for addressing all the review comments.
@Klaus-Keller thanks for your direct message. I have enhanced the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @tobiasqueck,
I like the approach to use resources
to look up manifest.json
, but would then remove the code in utils.ts
that reads the manifest. See my comments.
We tried to keep a clean separation of code specific to running this middleware in the ui5 tooling compared to code independent of the UI5 tooling. This new function is specific to the ui5 tooling therefore it should not move to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- code changes to fix the wrong lookup of
manifest.json
look good and are easy to understand - build and tested locally
- code coverage looks great
- thanks for adding types definitions
Approved from my side
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked:
- Code is easy to understand - I did not notice issue;
- Tests are maintained - scenarios listed in bug are covered
I did not test locally.
Kudos, SonarCloud Quality Gate passed! |
Fix for #1051