-
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
feat(adaptation-project): Add Fragment enhancement #1183
Conversation
🦋 Changeset detectedLatest commit: bb106ca The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
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 |
…controller-enhancement
…controller-enhancement
…controller-enhancement
packages/preview-middleware-client/test/unit/adp/controllers/AddFragment.controller.test.ts
Outdated
Show resolved
Hide resolved
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.
- changeset ok
- code is understandable
- test coverage is very good
- there are few minor things that could be improved in the tests but testing the client-side code is something very new in this repo, so I expect that we will revisit the tests anyhow in the near future
- locally tested and works like a charm
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.
Additional changes since last review are aligned.
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.
Thanks, @nikmace, looks awesome! 🔥
Tested locally, the main scenario is working as expected.
Kudos, SonarCloud Quality Gate passed! |
Enhancing the preview-middleware with new functionality as adding an XML Fragment (*creating "addXML" change).
Added the following new node_modules to the adp-tooling package:
sanitize-filename
: To sanitize user-provided input and prevent accessing unwanted files, by injecting path-like strings as input.