alan-turing-institute / AssurancePlatform

Project to facilitate creation of Assurance Cases
MIT License
17 stars 6 forks source link

[User Story]: Ability to reorganise Case Elements #476

Closed kallewesterling closed 1 week ago

kallewesterling commented 1 month ago

Role

As an assurance case editor

Desired Feature

I want to have the ability to move one or more elements between valid parents

Benefit

So that I can adjust the structure of assurance cases dynamically, ensuring that each element aligns with the most appropriate parent as the case evolves

Acceptance Criteria

GIVEN one or more elements are currently attached to a parent element, AND another valid parent element is available for attachment, WHEN I decide to reorganise by moving these elements to a different parent, THEN the system should allow me to select these elements and assign them to a new valid parent.

GIVEN elements have been reassigned to a new parent, WHEN the change is applied, THEN the system should update the assurance case structure to reflect these new relationships, AND ensure that all moved elements maintain their existing child elements unless explicitly removed.

GIVEN a complex assurance case with multiple nested elements, WHEN I need to restructure significant portions of the case, THEN the system should provide a clear and intuitive interface to select multiple elements, AND facilitate their reassignment to new parents with minimal disruption to the overall case integrity.

Dependencies

Technical Notes

Definition of Done

RichGriff commented 3 weeks ago

I have managed to get Evidence and Property Claims to move based on a item selected (a valid parent).

@chrisdburr can a property claim be moved to another property claim?

RichGriff commented 3 weeks ago

Moving elements seems to work, however there is an issue when attempting to move say a P1.1 or P2.1 - I'm getting an Internal Error back from the API. I'm assuming its something to do with the identifier stuff.

@cptanalatriste I have pushed up my latest changes to the branch, is this something you'd be able to look at?

chrisdburr commented 2 weeks ago

I have managed to get Evidence and Property Claims to move based on a item selected (a valid parent).

@chrisdburr can a property claim be moved to another property claim?

Yes.

RichGriff commented 2 weeks ago

I believe this now resolved - we can move Property Claims to other claims and strategies. As well as moving evidence to any property claim.

chrisdburr commented 2 weeks ago

Thanks, @RichGriff.

Just flagging that we will also need to decide what happens to numbering when this occurs. Just had a user in our workshop highlight that they moved a child element (e.g. 1.2.1 of 1.2) to a different parent (e.g. 1.4) and the numbering didn't update. This is the expected behaviour presently, but I wonder whether we can find somewhere between triggering a whole refresh of the case, and just having specific events trigger ones. To discuss in our next sprint.

cptanalatriste commented 2 weeks ago

One bug pending, on moving an identifier updates

cptanalatriste commented 1 week ago

@kallewesterling @chrisdburr shall we consider this one fixed? The bug on identifier update was addressed in PR: https://github.com/alan-turing-institute/AssurancePlatform/pull/505

chrisdburr commented 1 week ago

Let's discuss this today, @cptanalatriste, following your ways of working discussion. I'm not sure it's fully satisfied but I'm aware other issues are open to address the more specific issues that remain.

chrisdburr commented 1 week ago

Closing this, as outstanding fixes have separate issues (see #482)