•  
      request #15111 REST representations should not be mutable
    Infos
    #15111
    Thomas Gerbet (tgerbet)
    2020-08-31 16:55
    2020-07-15 09:44
    16379
    Details
    REST representations should not be mutable
    This is the sequel of request #15020: while it is now possible to use representations marked as immutable it is not made mandatory/enforced. This is the goal of this request.

    A nice side-effect of enforcing it, is that it will naturally force the structures holding data used to be build the representations to be immutable/mutation free. This is a good thing because it makes those structures easier to reason about and makes it harder to introduce some bad architecture patterns.
    API
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2020-08-31
    Attachments
    Empty
    References
    Referencing request #15111

    Git commit

    tuleap/tuleap/stable

    REST representations of the timetracking plugin are immutable 47951aa219
    REST representations of tracker are immutables c0004778ba
    REST representations of the test management plugin are immutables 27300ede50
    REST representations of the pullrequest plugin are immutable 81dc0c2252
    REST representations of the testplan plugin are immutable 9fa6e7817e
    REST representations of the cross tracker plugin are immutables 1494077ccb
    REST representations of the Git plugin are immutables c524394e93
    Immutability constraints are not respected in PullRequestLineUniDiffRepresentation b0a4137c07
    REST representations of the taskboard plugin are immutable 591440ca35
    REST representations of the cardwall plugin are immutables 1de671ec0e
    REST representations of the agile dashboard are immutables 433f3c23f0
    REST representations of the FRS plugin are immutable ff2afde294
    REST representations of the SVN plugin are immutable 54b1816363
    REST representations of the hudson Git plugin are immutable ecbb9a1ab2
    REST representations of the label plugin are immutable 9ce74365cb
    REST representations of the document manager plugin are immutable 8aa6f1b322
    REST representations of the core of Tuleap are immutable f96e2d4cd0
    Prevent usage of mutable REST representations 4ada793332
    request #16622 REST user preference must return false if preference is not in database 4069c7681d

    Follow-ups