Skip to content
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

New Test Scenario and DMN Editors in built project load DMN models twice #1808

Open
jomarko opened this issue Feb 7, 2025 · 5 comments · May be fixed by apache/incubator-kie-tools#2931
Open
Assignees
Labels
area:dmn Related to DMN area:test-scenario Related to Test Scenario (scesim) area:tools Issues affecting Apache KIE tooling projects type:bug Something is behaving unexpectedly

Comments

@jomarko
Copy link

jomarko commented Feb 7, 2025

This issue belongs to the epic #453. Without this issue the New SceSim editor can not be assumed as matured and Classic SceSim editor needs to be kept.

Steps to reproduce

  1. Please open dmn-quarkus-example project, use main branch (https://github.com/apache/incubator-kie-kogito-examples/tree/main/kogito-quarkus-examples/dmn-quarkus-example)
  2. try to create new scsim file
  3. once created try to specify it as DMN scesim file, you will be offered single DMN file - Traffic violation 🟢
  4. you can remove the created file
  5. run mvn clean package
  6. try to repeat the creation of the DMN scesim file, now you will be offered two DMN files, what is unexpected 🔴 [1]

[1]

Image

@jomarko jomarko added area:dmn Related to DMN area:test-scenario Related to Test Scenario (scesim) area:tools Issues affecting Apache KIE tooling projects type:bug Something is behaving unexpectedly labels Feb 7, 2025
@jomarko
Copy link
Author

jomarko commented Feb 7, 2025

The target folder seems to cause problems on multiple places:

Image

@yesamer
Copy link

yesamer commented Feb 7, 2025

@jomarko Precisely, the root cause of that issue is related to this #1029. The content resource API we have in place is based on Git. You need to put the changes in the staged area (i.e. git -a) to have them reflected in both scesim and dmn editors.
@jomarko If you agree, I suggest to close this ticket and continue the discussion on #1029

@jomarko
Copy link
Author

jomarko commented Feb 7, 2025

Well I think it is up to you, for me, #1029 seems to be different. I mean, there is mentioned assets are missing while #1808 says there are assets twice. However feel free to manage this situation as you think is the best.

@yesamer
Copy link

yesamer commented Feb 7, 2025

@jomarko Let's keep it for the moment, I'll double check

@yesamer yesamer self-assigned this Feb 24, 2025
@yesamer
Copy link

yesamer commented Feb 24, 2025

@jomarko You're right, this bug is different from #1029 . We need to filter out the resources under target/classes  directory

@yesamer yesamer changed the title New SceSim Editor in built project load DMN models twice New Test Scenario and DMN Editors in built project load DMN models twice Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:dmn Related to DMN area:test-scenario Related to Test Scenario (scesim) area:tools Issues affecting Apache KIE tooling projects type:bug Something is behaving unexpectedly
Projects
None yet
2 participants