Skip to content

[1766] Prevent the creation of redundant Subsetting, Redefinition and Subclassifications#1768

Merged
AxelRICHARD merged 1 commit intomainfrom
pcd/enh/prevent-redundant-relations
Dec 17, 2025
Merged

[1766] Prevent the creation of redundant Subsetting, Redefinition and Subclassifications#1768
AxelRICHARD merged 1 commit intomainfrom
pcd/enh/prevent-redundant-relations

Conversation

@pcdavid
Copy link
Contributor

@pcdavid pcdavid commented Dec 17, 2025

Bug: #1766
Signed-off-by: Pierre-Charles David pierre-charles.david@obeo.fr

PLEASE READ ALL ITEMS AND CHECK ONLY RELEVANT CHECKBOXES BELOW

Auto review

  • Have you reviewed this PR? Please do a first quick review, It is very useful to detect typos and missing copyrights, check comments, check your code... The reviewer will thank you for that :)

Project management

  • Has the pull request been added to the relevant milestone?
  • Have the priority: and pr: labels been added to the pull request? (In case of doubt, start with the labels priority: low and pr: to review later)
  • Have the relevant issues been added to the pull request?
  • Have the relevant labels been added to the issues? (area:, type:)
  • Have the relevant issues been added to the same project milestone as the pull request?

Changelog and release notes

  • Has the CHANGELOG.adoc + doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc been updated to reference the relevant issues?
  • Have the relevant API breaks been described in the CHANGELOG.adoc?
  • Are the new / upgraded dependencies mentioned in the relevant section of the CHANGELOG.adoc?
  • In case of a change with a visual impact, are there any screenshots in the doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc?
  • In case of a key change, has the change been added to Key highlights section in doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc?

Documentation

  • Have you included an update of the documentation in your pull request? Please ask yourself if an update (installation manual, user manual, developer manual...) is needed and add one accordingly.

Tests

  • Is the code properly tested? Any pull request (fix, enhancement or new feature) should come with a test (or several). It could be unit tests, integration tests or cypress tests depending on the context. Only doc and releng pull request do not need for tests.

Copy link
Member

@AxelRICHARD AxelRICHARD left a comment

Choose a reason for hiding this comment

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

I will handle the last small remarks myself, rebase and merge the PR.
Thank you!

String hasExistingSubsetting = "hasExistingSubsetting";

var feedback = this.viewBuilderHelper.newChangeContext()
.expression(ServiceMethod.of1(DiagramQueryAQLService::infoMessage).aqlSelf("'A subsetting already exists between these elements.'"))
Copy link
Member

Choose a reason for hiding this comment

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

One little thing I forgot to tell you: you can use AQLUtils.aqlString(String) to avoid putting quotes

image::release-notes-library-update-impact-analysis-with-tree.png[Impact analysis with change tree, width=65%,height=65%]

- In diagrams, when attempting to create a redundant feature typing between `Elements` which already have one, an informative message is displayed instead:
- In diagrams, when attempting to create some edges between `Elements` which already have one of the same type, an informative message is displayed instead.
Copy link
Member

Choose a reason for hiding this comment

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

edges => graphical edges (we try to use graphical nodes and graphical edges vocabulary everywhere)

Bug: #1766
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
@AxelRICHARD AxelRICHARD force-pushed the pcd/enh/prevent-redundant-relations branch from 2dd624c to d46cba4 Compare December 17, 2025 13:23
@AxelRICHARD AxelRICHARD merged commit a297d07 into main Dec 17, 2025
4 checks passed
@AxelRICHARD AxelRICHARD deleted the pcd/enh/prevent-redundant-relations branch December 17, 2025 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prevent the creation of redundant Subsetting, Redefinition and Subclassifications

2 participants