rcasteran / jarvis4se

JARVIS for Systems Engineers
https://regis-casteran.gitbook.io/jarvis4se/
MIT License
3 stars 1 forks source link

Display diagram for empty view #61

Closed rcasteran closed 2 years ago

rcasteran commented 2 years ago

Impacted version jarvis4se version: 1.3.1

Describe the bug When Jarvis is asked to display a diagram for a view that does not contain any elements (so called empty view), Jarvis displays a diagram containing all available elements instead of displaying a warning message.

To Reproduce Execute the following commands:

%%jarvis
with test
F1 is a function
F2 is a function
a is a data
F1 produces a
F2 consumes a
%%jarvis
with test
under view
show sequence F1, F2

Jarvis is indicating that view is a chain. Jarvis is displaying the following diagram showing F1, F2 and a.

Expected behavior Jarvis must indicate that view is a view, not a chain Jarvis must indicate that view is empty (does not contain any elements)

Desktop (please complete the following information):

Not2behere commented 2 years ago

So now the "chain" element becomes "view". Does it have to be renamed also for all user messages for "consider" and xml ?

Does the user message "view does not contain any elements" and not showing diagram, have also to be done for :

rcasteran commented 2 years ago

Does it have to be renamed also for all user messages for "consider" and xml Yes

Does the user message "view does not contain any elements" and not showing diagram, have also to be done for : Yes for all