archimatetool / archimatetool/archi-scripting-plugin
method .is("*") returns different results for visual objects an concept
- Dominant language
- Java
- Stars
- 171
- Forks
- 51
- PR merge metrics
- No merged PRs in 30d
Description
### Version of jArchi, Operating System
* Archi: 5.0.2.202304051112
* Platform: windows 10
* Javascript engine: GraalVM
* jArchi plugin: 1.4.0.202303211027
### Expected Behaviour
A test with .is("*") should return the same result for both visual objects as for concepts.
So far, I've seen this behavior only with the selector "*".
This didn't happen in a previous release. Don't know the jArchi version that introduced this error
### Actual Behaviour
The test with a visual object returns false.
The test with the same object selected in the model tree returns true
### Steps to Reproduce the Behaviour (with attached test files/script)
```
/**
* test .is()
*
* select an application-component on a view and run the script
* next select the application-component in the model tree and run the script
*
*/
console.log(`Result from .is("*") = ${$(selection).is("*")}`)
console.log(`Result from .is("application-component") = ${$(selection).is("application-component")}`)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the provided script and the implementation of the .is() selector used by jArchi on visual objects and model-tree concepts. Reproduce the two selection cases in Archi 5.0.2 with the '*' and 'application-component' selectors, then verify that matching results are consistent for both object types.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100