iTop icon indicating copy to clipboard operation
iTop copied to clipboard

N°3213 - Add the possibility to manage the attributs' prompt order during a transition

Open accognet opened this issue 3 years ago • 2 comments

Transition screen before setting

image

Add this settings in xml file :

image

Transition screen after setting:

image

The fields which should be displayed but which are not in the presentation config are added after. If you add a field that should not be displayed, it is not displayed. Ex:

image

-> No modification of the display, the agent does not appear

accognet avatar Jul 08 '22 08:07 accognet

@accognet as this bug was planned on iTop 3.x I'm assuming that it is not a development for the upcoming 3.1, is it a proposition that you want to pitch during the PRs review?

Molkobain avatar Jul 27 '22 18:07 Molkobain

No, this is a FAF

accognet avatar Aug 01 '22 14:08 accognet

Planned on iTop 3.1

accognet avatar Feb 06 '23 10:02 accognet

Discussed during technical review: Good PR but we need to discuss more deeply within the R&D team and with the Product team:

  • Where to put the XML definition of this.
  • How to make transition forms display as expected most of the time (ordered as the "details" zlist instead of ordered by dependencies) without forcing people to declare a zlist for a transition.

This will be discussed next week during functional review.

Molkobain avatar Apr 04 '23 15:04 Molkobain

Functional review :

Only one zlist for all transitions ? Simpler, yes do it ! But don't forget the fallback for forgotten fields (not defined in XML but present in the transition anyway) What name for the XML node ? To be discussed with Romain + Vincent (we might add a possibility to specify each transition in the future, but a transition is defined both by the stimulus and the target state)

In the meantime, implement the fallback : return the order similar to the one defined in the details zlist. This will be the new default behavior, product team is OK to change it in 3.1 (major release + nobody likes the current one)

Note that in the portal we already have one form per stimulus (see forms/form/modes/mode apply_stimulus) Also note that there is an ongoing bug on n-n relations in transition forms (not enough width for now)

piRGoif avatar Apr 11 '23 15:04 piRGoif

Discussed during technical review:

  • Code needs to be simplified / commented
  • Attributes list / ordering has to be extracted in a dedicated method so we can add a unit test to it. Moreover, this will be discussed with the product team as the specifications / use cases do not seem to be clear for everyone.

Molkobain avatar May 02 '23 14:05 Molkobain

Accepted during Functional Review. Warning : the current screenshot of a transition with the fix isn't up to date !

Anne Catherine did some changes to handle Guillaume feedbacks, they need to be reviewed technically. Also we need to figure out how to add an automatic test.

piRGoif avatar May 09 '23 15:05 piRGoif