-
Notifications
You must be signed in to change notification settings - Fork 31
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
Error messages when merging structure-incompatible files #3745
Comments
similar to #3495 |
These are currently two options to check for overlaps between the modules before merging them. First, you can use the command directly by entering, for example, The second option is through the DialogParser, by specifying the folder containing all the cc.json files. In this case, the DialogParser will go through all the questions, and if there are no overlaps between the files, the user will be asked again if they still want to merge the modules. |
* #3745 add a pre-check before merging (non-)overlapping already specified modules * #3745 expand the pre-check merge process for non-overlapping modules in the ParserDialog * #3745 add Unit Tests * #3745 add Changelog.md * #3745 fix kotlin style violations * #3745 fix kotlin style violations * #3745 add Test to warn about invalid project files * #3745 add Unit Tests * #3745 wip * #3745 fix the invalidInput exception * #3745 remove comments in MergeFilterTest --------- Co-authored-by: VictoriaG <victoria.gordeeva@maibornwolff.de>
* add restriction to how much the user can rotate the map #3730 * update Three.js to the latest version #3730 * Limit rotation of camera and refactor viewcube accordingly * Adjust wrong camera rotations and update tests #3730 * Fix failing font tests #3730 * Remove spaces to hopefully make linter happy #3730 * add tests for the viewCube meshGenerator #3735 * Feat/3771/comparison of incompatible maps (#3773) * feat(visualization): open incompatibleMapsDialog in filePanelDeltaSelector if necessary * feat(visualization): open incompatibleMapsDialog with the correct data and show file with the mcc metric * feat(visualization): add checkbox to disable alert * feat(visualization): add and improve styling * feat(visualization): add styling * test(visualization): delete e2e test * test(visualization): add tests * chore(visualization): formatting * chore(visualization): update changelog * refactor(visualization): add data mock and rename old one * test(visualization): add tests for FilePanelDeltaSelectorComponent --------- Co-authored-by: lisa.walter <lisa.walter@maibornwolff.de> * Feature/3745/structure incompatible file merge (#3774) * #3745 add a pre-check before merging (non-)overlapping already specified modules * #3745 expand the pre-check merge process for non-overlapping modules in the ParserDialog * #3745 add Unit Tests * #3745 add Changelog.md * #3745 fix kotlin style violations * #3745 fix kotlin style violations * #3745 add Test to warn about invalid project files * #3745 add Unit Tests * #3745 wip * #3745 fix the invalidInput exception * #3745 remove comments in MergeFilterTest --------- Co-authored-by: VictoriaG <victoria.gordeeva@maibornwolff.de> * Tech/3716/enable view encapsulation in ribbon bar (#3779) * feat(visualization): enable view encapsulation in show scenarios button * feat(visualization): enable view encapsulation in scenarios menu * feat(visualization): enable view encapsulation in thumbTackButton and sortingButton * feat(visualization): enable View Encapsulation for sortingOption * feat(visualization): enable View Encapsulation for MatchingFilesCounterComponent * fix(visualization): import styling * feat(visualization): enable View Encapsulation for SearchPanelModeSelectorComponent * feat(visualization): enable View Encapsulation for SearchBar * feat(visualization): enable View Encapsulation for blacklistPanel * feat(visualization): enable View Encapsulation for LinkColorMetricToHeightMetricButtonComponent * feat(visualization): enable view encapsulation in settings panels * feat(visualization): enable view encapsulation in suspicious metrics dialog * feat(visualization): enable View Encapsulation for range slider * feat(visualization): enable View Encapsulation for edgeMetricToggle * feat(visualization): enable View Encapsulation for highRiskProfile * feat(visualization): enable View Encapsulation for suspiciousMetrics * refactor(visualization): add css file for suspiciousMetricsList * feat(visualization): enable ViewEncapsulation for artificialIntelligence * chore(visualization): update changelog --------- Co-authored-by: lisa.walter <lisa.walter@maibornwolff.de> Co-authored-by: Lisa Walter <mailtolisawalter@gmail.com> * resolve merge conflict * update Three.js to the latest version #3730 * Limit rotation of camera and refactor viewcube accordingly * Adjust wrong camera rotations and update tests #3730 * Fix failing font tests #3730 * add tests for the viewCube meshGenerator #3735 --------- Co-authored-by: nereboss <niklas.kneissl@gmail.com> Co-authored-by: Niklas Kneißl <105795397+Nereboss@users.noreply.github.com> Co-authored-by: polina-schoenfeld-mw <polina.schoenfeld@maibornwolff.de> Co-authored-by: lisa.walter <lisa.walter@maibornwolff.de> Co-authored-by: ViktoriaGordeevaVG <148755651+ViktoriaGordeevaVG@users.noreply.github.com> Co-authored-by: VictoriaG <victoria.gordeeva@maibornwolff.de> Co-authored-by: Lisa Walter <mailtolisawalter@gmail.com>
Feature request
Description
As an auditor, I want merge to be aborted with a descriptive error message when the file&folder structure does not match, so the merged file is always valid.
Context
Suppose I have a project with this structure:
The mailbox.git.cc.json then mirrors this structure:
but the mailbox.sonar.cc.json might look like:
If these files are merged the result will be very strange:
This is clearly and error and
merge
should abort when it notices such a situation.Right now one can diagnose this problem by running
ccsh modify -p 1 prj.x.cc.json
and comparing the structure inside the cc.json to other cc.json structures.This is time-consuming when one has to merge 20+ files.
The bigger problem is that you don't notice the problem and think it was merged correctly.
The feature request is thus that merge looks at the top-level structure of the .cc.jsons to be merged, only the first level and not recursive.
When one of the .cc.json has a file&folder structure that does not have overlap with the other files, then the merge is aborted.
Acceptance criteria
ccsh merge prj.x.cc.json prj.y.cc.json prj.z.cc.json
fails if the structure of at least one file has no overlap with one of the other files. For example:foo/
,bar/
,baz/
and prj.y.cc.json hasfoo/
,trick/
,track/
then these files have an overlap of one folder and are merged.foo/
,bar/
,one.xml
and prj.y.cc.json hastrick/
,track/
,one.xml
then these files have an overlap of one file and are merged.foo/
,bar/
,one.xml
and prj.y.cc.json hastrick/
,track/
,two.xml
then these files have no overlap and are not merged with an error message.-f
exists to still merge the files togetherAssumptions & Exclusions
Development notes (optional Task Breakdown)
Open questions
The text was updated successfully, but these errors were encountered: