Tuleap Community Edition development and releases are no longer public. You have until September 30th to download packages and sources in Tuleap project. You can contact the team if you need further assistance.

    •  
      request #31206 Use Option in the artifact modal
    Infos
    #31206
    Joris MASSON (jmasson)
    2023-04-12 16:18
    2023-03-28 10:17
    32848
    Details
    Use Option in the artifact modal

    Following request #31117, we now have an Option type to represent the possible absence of a value. In the artifact modal, there are several good candidates for this type:

    1. CurrentArtifactIdentifier only has a value when the modal is editing an existing artifact (not creating a new one).
    2. ParentArtifactIdentifier only has a value when creating a new artifact and the calling code supplied a specific parameter (planning view, when creating tasks)
    3. LinkableNumber when entering a number in the link-selector search field of the artifact links field. If it matches the Current Artifact Identifier (you can't link an artifact to itself) or if it's not a number, it has no value.
    4. And probably more...

    For all these cases, we have represented the absence of value by Value | null. It would be clearer with Option.

    Trackers
    Empty
    Empty
    • [ ] enhancement
    • [x] internal improvement
    Empty
    Stage
    Joris MASSON (jmasson)
    Closed
    2023-04-12
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Joris MASSON (jmasson)2023-04-12 16:18

    Closing this, there are still | null types remaining in the artifact modal domain, but their usage is very limited. For example, linkable / linked artifacts may or may not have a color, a title, etc. It's goodenough©️ for now.


    • Status changed from Under implementation to Closed
    • Connected artifacts
    • Close date set to 2023-04-12