Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-9874

Add more context to the server side e.g pullrequest to the server side context of the bitbucket.pullrequest.action client web item.

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • Pull Requests
    • None
    • 0
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      Currently, only currentUser and request are exposed in the context of bitbucket.pullrequest.action while the client context has pullRequest only. This makes it difficult to use conditions or client context providers that need a reference to the pullRequest or repository.

      For example, if I wanted to check if my plugins hook has been enabled at the repository level to load the given client web item, the context provided to the condition would have no way to determine the repository to pass to a RepositoryHookService. Instead, a client condition would have a reference to the repository through the pullRequest in the client context but no way to directly validate that the repository hook is enabled!

      For this reason and similar scenarios, I believe this to be a worthwhile addition.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            2c732f3be5df Austin Hacker
            Votes:
            8 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: