•  
      request #35473 Stop relying on the god PullRequest/Factory class to retrieve pull request
    Infos
    #35473
    Clarck Robinson (robinsoc)
    2023-12-13 14:50
    2023-12-11 16:01
    37082
    Details
    Stop relying on the god PullRequest/Factory class to retrieve pull request

    During the release 15.2 and 15.3, we have implemented a dedicated object (PullRequestRetriever) to retrieve a pull request by its id. We did not depend on the god class PullRequest/Factory to retrieve a pull request by its id.

    Bonus: it is also the opportunity to use Neverthrow to handle the case when there is no pull request returned by the DB

    Pull Request
    15.3
    Empty
    • [ ] enhancement
    • [x] internal improvement
    Empty
    Stage
    Clarck Robinson (robinsoc)
    Closed
    2023-12-13
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Joris MASSON (jmasson)2023-12-13 14:50

    gerrit #29965 (when the PR status change) integrated in Tuleap 15.3.99.38


    • Status changed from Under implementation to Closed
    • Connected artifacts
    • Close date set to 2023-12-13
    User avatar
    • Summary
      -Stop relying on the the god PullRequest/Factory class 
      +Stop relying on the god PullRequest/Factory class to retrieve pull request 
    User avatar
    • Original Submission
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes