-
Notifications
You must be signed in to change notification settings - Fork 13
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/pisa25 472/id attribute removed #2388
Conversation
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## develop #2388 +/- ##
==========================================
Coverage 16.06% 16.06%
Complexity 4207 4207
==========================================
Files 391 391
Lines 13491 13491
==========================================
Hits 2168 2168
Misses 11323 11323 ☔ View full report in Codecov by Sentry. |
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.
It works, but the comments remain in the final code, is it expected?
I also a few comments regarding code style
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.
It works very well, a comment is added before entering the edit mode.
The comment is properly removed once the edition is finished, and it is not present in the saved data. Good job!
Note: since the code was modified since the last bundling, you may need to bundle it again before pushing the code to a testing env 😉
Review Checklist
- New code is covered by tests (if applicable)
- Tests are running successfully (old and new ones) on my local machine (if applicable)
- New code respects code style rules
- New code respects best practices
- New code is not subject to concurrency issues (if applicable)
- Feature is working correctly on my local machine (if applicable)
- Acceptance criteria are respected
- Pull request title and description are meaningful
- Pull request's target is not
master
- Commits are following conventional commits
- Commits messages are meaningful
- Commits are atomic
Version
There are 0 BREAKING CHANGE, 0 feature, 7 fixes |
related to https://oat-sa.atlassian.net/browse/PISA25-472
Description
This PR adds comments to generated code to warn author if he uses sourceDialog to edit code of the interaction
How to test
Can be validated on kitchen env
Create item with widget, i.e. img (block or inline). Check the source code - the widget code should be wrapped with warning comments
<!-- autogenerated code, do not edit -->
widget code
<!-- end of autogenerated code -->
when item is saved, saveItem should not contain these comments