Skip to content
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.

PR button not appearing for a project in a Bitbucket host #154

Closed
msbakya opened this issue Nov 10, 2016 · 24 comments
Closed

PR button not appearing for a project in a Bitbucket host #154

msbakya opened this issue Nov 10, 2016 · 24 comments
Labels

Comments

@msbakya
Copy link

msbakya commented Nov 10, 2016

Hi,

PR button not appearing for a project in a Bitbucket host. Users whoever has access to the project not able to see PR button except system admin. It happens with only one project and its working fine with other projects in the same host.

I have deleted and created again and asked project admin to create it. However issue not fixed

Thanks
Bakyaraj M

@tomasbjerre
Copy link
Owner

There are some hints on reporting issues in the readme. What exactly is the config that you expect to give this result?

@msbakya
Copy link
Author

msbakya commented Nov 14, 2016

Trying to trigger jenkins job. please find the attachment of PR notification settings

bb-button-config
pr-config-part1
pr-config-part2

@tomasbjerre
Copy link
Owner

Your filter regexp is empty. The notification will only trigger if the filter regexp matches the filter string. Perhaps you want to remove what you have in filter string field.

@msbakya
Copy link
Author

msbakya commented Nov 14, 2016

Does the button appear only when regexp is correct? user is not able to see button itself

@tomasbjerre
Copy link
Owner

Yes. Only buttons that actually trigger any notification is shown. So if the regexp is not matching the text, then the button will not be shown. Unless some other notification is triggered by the button, then it should be shown.

@msbakya
Copy link
Author

msbakya commented Nov 14, 2016

I have tried after adding regexp. Still no luck... Attached screen shot of latest settings

pr-config-with-regexp

@stoleas
Copy link

stoleas commented Nov 15, 2016

What happens if we remove the filter string and regexp completely?

@tomasbjerre
Copy link
Owner

Remove it completely to trigger for all projects.

If your project key is THUN then yes it shoukd work.

@msbakya
Copy link
Author

msbakya commented Nov 15, 2016

The project key was THUN and it was not working. Also i have removed filter string and regexp and tried.Still it is not working

@tomasbjerre
Copy link
Owner

Can you see the buttons in the rest api? Documented in the wiki. Like /projectKey/{projectKey}/repositorySlug/{repositorySlug}does it give you the buttons?

@tomasbjerre
Copy link
Owner

Also, what is the version of Bitbucket Server that you use?

@msbakya
Copy link
Author

msbakya commented Nov 15, 2016

Atlassian Bitbucket v4.8.3

@tomasbjerre
Copy link
Owner

Actually, I just saw that you are configuring it on repository level. So the buttons will only be visible in that repository and there is no need to use the filter functionality to filter the project.

@msbakya
Copy link
Author

msbakya commented Nov 15, 2016

I have tried the same configuring at global settings and also checked by using ${PULL_REQUEST_FROM_REPO_ID} parameter. Still it not visible

@tomasbjerre
Copy link
Owner

Can you see the buttons in the rest api? Documented in the readme. Like /projectKey/{projectKey}/repositorySlug/{repositorySlug} does it give you the buttons?

@msbakya
Copy link
Author

msbakya commented Nov 16, 2016

Yes.. it is.. PFA. Project key is "THUN"

Rest-Api-output.txt

@tomasbjerre
Copy link
Owner

Does Chrome Developer Tools show some error in console log when visiting the pull request page? Are you sure where to look for the buttons in the gui?

@msbakya
Copy link
Author

msbakya commented Nov 16, 2016

As i mentioned earlier I could able to see the button as i have admin access to host. Only the users unable to see the button. I have tried login as user and still i don't see the button. It happens with only one project. It is working for other projects

@tomasbjerre
Copy link
Owner

Does Chrome Developer Tools show some error in console log when visiting the pull request page?

@msbakya
Copy link
Author

msbakya commented Nov 16, 2016

batch.js?locale=en-US&nps-not-opted-out=true&supportedApplication=true:8485 GET https://bitbucket.test.com/bitbucket/rest/prnfb-admin/1.0/settings/buttons/repository/4382/pullrequest/78 500 (Internal Server Error)

@tomasbjerre
Copy link
Owner

tomasbjerre commented Nov 16, 2016

Ok thats it. You have an exception in the application server running Bitbucket Server. What does it say?

@msbakya
Copy link
Author

msbakya commented Nov 16, 2016

PFA

exception.txt

@tomasbjerre
Copy link
Owner

I made a possible fix for this. You may try 2.40. It might be that you have configured a button, then removed/renamed a repository/project. That case is now handled by ignoring buttons configured for that old repo/project.

@msbakya
Copy link
Author

msbakya commented Nov 16, 2016

Yes.. The project has been renamed once in the past it seems. It is working fine now. Thanks for your help

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants