Author Topic: Stop Diagram Filters being user specific and...  (Read 12672 times)

Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Stop Diagram Filters being user specific and...
« on: July 22, 2014, 07:14:29 pm »
... global

From information from RoyC in a separate thread it has come to light that diagram filters only apply to the current user, i.e. if another user opens the model and looks at a diagram where you have a filter applied, they won't see it.  

Together with the fact that the filters are global - i.e. once you've set a filter it applies to all diagrams you look at, it seems to me that the  functionality defined for diagram filters is fatally flawed.  

I would definitely like to:
- apply a filter and have a diagram with the filter applied visible to other users.
Also, I'd like to:
- create a diagram and populate it,
- then clone it multiple times and highlight different specific parts of it on each clone using different filters
- have the HTML output reflect the set of diagrams and applied filters

In my view, this would be a very useful communication and education mechanism.

Link to other threads on this topic
     http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1403607477
« Last Edit: July 22, 2014, 07:23:59 pm by Graham_Moir »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8083
  • Karma: +118/-20
    • View Profile
Re: Stop Diagram Filters meeting their design
« Reply #1 on: July 23, 2014, 08:47:45 am »
Seems to me that both of the things that you are trying to achieve have always been possible by building the diagrams to express the points that you want.

Diagram Filters on the other hand were designed for the situation where you want one complete diagram and then without modifying the diagram  dynamically highlight different parts of it. Prior to their introduction the only way to do this was to build multiple static diagrams showing a subset. (Which sounds like what you are now trying to do using filters)
« Last Edit: August 14, 2014, 09:11:06 am by simonm »

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Stop Diagram Filters being user specific and..
« Reply #2 on: July 23, 2014, 09:15:02 am »
EDIT: Yeah - Simon got in first!

Well, on the other hand, the Diagram Filters are also called Dynamic Filters, and are designed to help you quickly (and temporarily) observe changes, trends, special aspects and alternatives in your model. You open a 'standard' diagram and apply a filter or several filters, and see what the diagram looks like when only the aspects you want are highlighted.

I don't see the point of applying a dynamic facility outside the boundaries of a user ID. If the filter were to be applied across the model, it would be very annoying if you were looking at a diagram and someone else's filtering hid parts of it. Even more annoying if you are filtering for something for another user to see, and someone else then applies another filter.

Perhaps a more practical answer is, if you want to 'fix' a diagram to only show one aspect for the longer term and for other users to see, copy the diagram and edit it to reflect that aspect. Perhaps use the filtering to indicate which model elements to remove to get the effect you want. Diagrams are, after all, abstract reflections of how you see elements interacting under whatever conditions you impose, and you can quickly create any number of diagrams to 'permanently' show what happens as you change those conditions.
« Last Edit: July 23, 2014, 09:17:06 am by RoyC »
Best Regards, Roy

Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Re: Stop Diagram Filters being user specific and..
« Reply #3 on: July 24, 2014, 06:56:00 pm »
Thanks for the feedback guys.  I agree that dynamic filters could be useful in the way described but their use is limited if it's restricted to the current user only.  I would also maintain that being able to clone a diagram multiple times, apply different filters to each clone AND have the filters persist, i.e. be static basically would help productivity and communication.   This is because:
- the whole context of the original diagram is maintained in each clone, but different aspects are emphasized
- I wouldn't have to spend time rebuilding each additional diagram, either by removing unwanted elements or building a new diagram from scratch with the elements I want to emphasize.   Basically, yes it's "always been possible by building the diagrams to express the points that you want."  but I would like to save time from needing to do that.
« Last Edit: July 24, 2014, 06:56:33 pm by Graham_Moir »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Stop Diagram Filters being user specific and..
« Reply #4 on: July 24, 2014, 08:43:58 pm »
It would be nice if a diagram filter would be sort of a diagram clone. So it would appear in the browser like a diagram (maybe adorned with some icon) and one could set its filters individually.

q.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Stop Diagram Filters being user specific and..
« Reply #5 on: July 28, 2014, 05:45:25 pm »
I'll throw my hat in this ring and say that I would not like to see qwerty's suggestion of filters in the browser implemented - I don't even like seeing the current semi-diagrams in there (diagram frames etc). But perhaps a new type of Model View, a "Diagram View" which contains a diagram and a filter?

Returning to the OP, I agree insofar as I think the ability to reuse filters between users would be useful. The key point is productivity.

In mid-to-large teams, typically only a few individuals get into the guts of EA and only these enthusiasts tend to even know about diagram filters (all dependent, of course, on how enthusiastic the team is in general). But filters do provide a useful function, and there are situations where using filters is preferable to creating (and maintaining!) multiple diagrams with minute differences -- indeed, that's the reasoning behind having filters in the first place.

In such teams, distributing filters between users would be a productivity-enhancer (yes I do speak managerese, but I'm not a native). The obvious place to put them in order to achieve this would be an MDG Technology.

So, cruelly disregarding all other aspects of the OP, I would very much like to see the MDG Technology Wizard augmented with the ability to include diagram filters.

Cheers,


/Uffe
My theories are always correct, just apply them to the right reality.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8083
  • Karma: +118/-20
    • View Profile
Re: Stop Diagram Filters meeting their design
« Reply #6 on: July 29, 2014, 09:11:21 am »
Uffe, I think you missed the point of what is being requested. You can already share diagram filters between users. What is being requested is to be able to apply the filter to a diagram and have all users see it. The specific use case given was duplicating diagrams and applying a different set of filters to each copy.
« Last Edit: August 14, 2014, 09:11:20 am by simonm »

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Stop Diagram Filters being user specific and..
« Reply #7 on: August 12, 2014, 06:45:19 am »
I, for one, do see the point of applying a dynamic facility outside the bounds of a UserId,
and of having the filter setting sticky (i.e. preserved over closing diagram or closing EA), and being set per diagram.
I do like the idea of having the filter being able to be applied to a diagram frame (or diagram view).
Orthogonality rules
Using EA16.1 (1627) on Windows 11 Enterprise/64 bit. Repositories in SQLServer2019 DB Schema 1558.
WebEA on Pro Cloud Server 4.2.64

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Stop Diagram Filters being user specific and..
« Reply #8 on: August 12, 2014, 10:07:35 am »
A diagram filter stays on until you specifically turn it off, so in that respect it is already 'sticky'. I suspect that many users would find having the filters specific to a diagram would be as tedious as what you perceive to be the current restrictions - they would not want to have to keep turning the filters on (or, subsequently, having to turn them off) for each diagram they looked at.

So, Andrew, Brian and Chris are working on the same team. Andrew develops a diagram filter that hides all elements other than Class, turns it on, and tells Brian to look at diagram xx on his own workstation. Andrew and Brian are content analyzing that diagram, but because the filters apply, as per your request, across all users, Chris now finds his review of diagram xx is disrupted. He is upset, until he realizes that a diagram filter must be applied, so he goes and turns it off. Andrew and Brian now find that diagram xx shows a number of other elements that obscure the effect they were trying to examine.

What do you guys propose that serves your purposes but does not interfere with other people's work on the model?

Simon didn't directly say so, but he gave you a solution: Andrew sends Brian the filter he has developed, and tells him to turn it on and look at diagram xx. If they wish, they can leave the filter on on their respective systems and look at other diagrams, or turn the filter off after they have reviewed the diagram. They could put a note on the diagram reminding them to use the filter. Chris continues to work on his own stuff entirely unaffected by the activities of Andrew and Brian.
« Last Edit: August 12, 2014, 10:20:17 am by RoyC »
Best Regards, Roy

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Stop Diagram Filters being user specific and..
« Reply #9 on: August 12, 2014, 03:23:35 pm »
OK, trying to lift this up a level.

here's what I know:

In EA 1107 (and all previous version I can remember), when I apply a filter to a diagram - greying out some aspect. CLose EA, then re-open it again, the filter is no longer applied to the diagram (no greyed out elements). To me this is not 'sticky'.

Filters don't work the way I "expect" them to.
This means to me that there is more than one use case for them, and these may be conflicting - as evinced by this thread.
This also means that Sparx have developed to one paradigm, perhaps trying to 'guess' what is best for us Sparx users.
I'd suggest this is a fraught approach.

There may be a way around this though, and that is to provide more configurability to filters, to let them meet several differing use cases.

To me a filter should be a global resource, available to, and shared by all model users.

A filter is applied to a specific diagram, by the user who has the diagram locked for editing. That filtered view of the diagram sticks with the diagram, every time it is opened (and over EA closing and opening) until another user locks the diagram and changes the filter application.

However I see no reason why a filter cannot be applied to a locked diagram that is being viewed, but the filter setting is not saved with the diagram when the diagram is closed.

So for example filters could be provided with a setting that configures for use in different scopes.
« Last Edit: August 14, 2014, 09:02:56 am by skiwi »
Orthogonality rules
Using EA16.1 (1627) on Windows 11 Enterprise/64 bit. Repositories in SQLServer2019 DB Schema 1558.
WebEA on Pro Cloud Server 4.2.64

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Stop Diagram Filters being user specific and..
« Reply #10 on: August 12, 2014, 04:45:48 pm »
Yes, you are right. The filter does not survive EA being closed. Still mulling over the rest of your discourse.
Best Regards, Roy

Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Re: Stop Diagram Filters being user specific and..
« Reply #11 on: August 18, 2014, 10:21:01 pm »
"There may be a way around this though, and that is to provide more configurability to filters, to let them meet several differing use cases."

I agree with Skiwi that this would be the best way to go.

AndyJ

  • EA User
  • **
  • Posts: 337
  • Karma: +5/-3
  • It's only a model
    • View Profile
Re: Stop Diagram Filters being user specific and..
« Reply #12 on: August 19, 2014, 09:54:46 am »
Hmm...

I worry about the direction of this conversation.

In another system, with a shared repository (shared by all ICT personnel) I've had work corrupted, through inappropriate re-use and modification of entities...

I'm not sure that I could cope with diagrams changing display behaviour because another user is applying filters to understand some aspect of the system being developed.

I can image revert wars taking place in those circumstances.

 >:(

Sun Tzu: "If you sit by the river long enough, eventually the body of MS Visio floats past."

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Stop Diagram Filters being user specific and..
« Reply #13 on: August 19, 2014, 07:52:13 pm »
I guess that the "global resource" skiwi mentioned is not meant as a global filter.

q.

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Stop Diagram Filters being user specific and..
« Reply #14 on: August 20, 2014, 06:48:19 am »
Quote
I guess that the "global resource" skiwi mentioned is not meant as a global filter.

q.

Correct, I was envisaging a diagram filter as being globally available for use by any model user, but applied to individual diagrams,
or perhaps (subject to deciding on how configuration or options might work for a specific filter) applicable globally, or to all diagrams in a package, or all diagrams in a package and all its descendants, for example.

I'm not sure, but it could also be that diagram filters could be applied (override) as part of documentation generation.

See also
diagram filters
 context filters
Orthogonality rules
Using EA16.1 (1627) on Windows 11 Enterprise/64 bit. Repositories in SQLServer2019 DB Schema 1558.
WebEA on Pro Cloud Server 4.2.64