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

Incorrect rendering of BranchSelector in RepositoryHook config-form

    XMLWordPrintable

Details

    Description

      I am trying develop Stash Repository Hook (pre receive) with config form. I try to use the Stash. template.branchSelector.input template in it.

      I have learned these sources:
      https://developer.atlassian.com/stash/docs/latest/soydoc/branch-selector-field.soy.htm
      https://bitbucket.org/atlassian/stash-example-hook-protect-ref/

      The last one renders dropdown menu on config-form, but no items inside.
      All my experiments in forcing to work BranchSelector were failed.

      I am always had hit on bug:

      {Uncaught TypeError: Cannot call method 'getProject' of undefined revision-reference-selector.js:181}

      ,

      when I trying to click on BranchSelector dropdown menu.

      More detailed description of my experiments provided in questions:
      https://answers.atlassian.com/questions/187876/why-doesn-t-branchselector-work
      https://answers.atlassian.com/questions/188719/may-be-bug-in-branchselector
      https://answers.atlassian.com/questions/173564/branch-selector

      I think that bug reason is that repository-hook doesnt include dependency

      {com.atlassian.stash.stash-web-api:branch-selector-field}

      , but it is only my opinion.

      Attachments

        Activity

          People

            Unassigned Unassigned
            6954e0c50e7f Dana
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: