Closed Herve-M closed 3 years ago
Hi @Herve-M Do you have any disabled repo? If so, try to Re-enable it again to check if the issues goes away. I've released this new version to fix this issue but it seems for OnPrem it didn't work. Please confirm if the above approach works.
Thanks a lot
@cribeiro84 We are seeing the same issue this morning. When you say disabled repo, you mean any project that has this feature disabled?
We do have one project with that flag disabled. I re-enabled it but it didn't have any effect on the issue.
We are also having the same issue this morning. There is no way to roll back to a previous version of the extension either, so we have currently uninstalled this extension. :(
It's not clear for me what's the error itself. Those errors you mentioned seems to be an issue to load resources that drives me to an assumption of browser cache. Would you be able to clear the cache of your browser or try with Private Tab? If you could provide more details (if exists) in the console tab from your developer tools (F12) window would be great.
@cribeiro84 We are seeing the same issue this morning. When you say disabled repo, you mean any project that has this feature disabled?
We do have one project with that flag disabled. I re-enabled it but it didn't have any effect on the issue.
About this disabled repo, I meant in the Repositories management where you can disable an individual repo, like:
@cribeiro84 You cannot disable repositories on-prem. (At least I cannot find a way)
Using Private Window in Firefox has no effect on the outcome.
Some PRs are listed in the PR tab
@cribeiro84 Repositories list in the filter is empty
Thanks for sharing more details. Would you be able to take a screenshot or to capture the console log entries (errors and logs)? Unfortunately, I don't have an OnPrem instance to test it.
@cribeiro84 Repositories list in the filter is empty
Is there a way for you to check on the Network tab the request to "Repositories" API? It should end like: /_apis/git/Repositories?includeLinks=true
Is there a way for you to check on the Network tab the request to "Repositories" API? It should end like: /_apis/git/Repositories?includeLinks=true
The response looks good on my side too. The json contains all the repos of the currently selected projects in the filter. However, I'm unable to change the project filters. After clicking a checkbox or two, you get this in the console:
Our repository data is also present/listed in the 200
response from the GET /git/Repositories call.
I don't think the problem is this 404 object/error because the APIs are being called and it's getting the results. This asset error might be related to an image for No PRs screen which is not being found.
It's not clear why the result is not being well handled. Do you have more than 1 project within the same instance? If so, are you able to select different project?
We only have one active TeamProject (it is the only one with PRs) but we have 3 other TeamProjects in the TPC and they do show up in the Projects filter list.
Got it! Just one thing that came up to my mind. Can you check if in the response from Repositories API call if there is an attribute called "isDisabled" that should be equal to false? I indeed did a change in the last release that could've broken for you in case this attribute doesn't exist at all in OnPrem versions.
There is a list of [object] that I've expanded one example of. Each [Object] seems to be a repository list item. There is no property on the list item of "isDisabled" that I can find.
I'm not seeing the field either on my Azure DevOps Server 2020 RC2 environment.
Here's the response from my personal Azure Devops Services
I just released a new version with a possible fix. Can you try again to use the extension?
:( From Private Browser window in Firefox
Would you be able to fork/checkout this repo and debug from your OnPrem instance? I can assign you to a dev/test extension I have for development purposes to allow you to debug it. I would need your account/org name.
@cribeiro84 Sadly as agileramblings said, OnPremise don't have the feature of disabling a repository yet.
Questions:
About sharing our org. to be able to share a dev. build, for On Premise not behind dev.azure.com it won't be possible. Only way will be to share the package :/
I got it debugging. Your instructions in the README were very helpful :+1:
No dice:
With filter commented out (this works)
Did a git bisect 78bb434 origin/main
just to make sure the bad commit was the isDisabled introduction and it is:
$ git bisect good
d7cdc2a7729ab02a2280b4be90ba618dc327db15 is the first bad commit
commit d7cdc2a7729ab02a2280b4be90ba618dc327db15
Author: Carlos Alessandro Ribeiro <cribeiro84@gmail.com>
Date: Fri Apr 2 20:35:05 2021 -0300
Bugfix/ignore disabled repos (#178)
* Fixing isDisabled repos
* trying to fix dependency tree
* Fix for unselected proejcts on load PR manager without filter.
* Trying to fix broken links
Co-authored-by: Carlos Alessandro Ribeiro <carlos_alessandro@swissre.com>
package-lock.json | 32539 +++++++++++++++++++++++++++++++-------
package.json | 12 +-
src/models/PullRequestModel.tsx | 5 +
src/tabs/PullRequestsTab.tsx | 112 +-
4 files changed, 26614 insertions(+), 6054 deletions(-)
Then I realized you just got your boolean logic bungled! On Server 2020, r.isDisabled !== undefined
will always return false.
We want to keep all repos where the property is undefined or not disabled. If the API ever starts returning it, then it'll be fine.
const repos = (await this.gitClient.getRepositories(projectId, true) as GitRepositoryModel[]).filter(r => r.isDisabled === undefined || r.isDisabled === false);
Voila
See my PR!
Feel free to edit as you see. I know the change to the GitRepositoryModel interface wasn't necessary. I'm not a typescript person but I know it has to do with strict null checking if you turn that on.
Thanks @InKahootz for the PR! It has been released and hopefully it's now fixed! Thank you so much for the contribution!
@cribeiro84 / @InKahootz Still have the issue with the last update, 2.20210405.1 :/
That's an older version, or at least is should be. 2.20210405.1 is for commit efa6a6a
.
The latest is 2.20210406.1. Might take a little bit to show up but the pipeline showing that it was built and pushed is here: https://dev.azure.com/caixaazul/Pull%20Request%20Manager%20Hub/_build/results?buildId=226&view=results
Edit: I can confirm it's working on my projects. The "No PRs" image is not working but that's not a deal-breaker/another issue.
It is working now guys! Great work!! Thanks for a great extension @cribeiro84
Amazing! Thank all of you for raising the issues and PR! Thanks @InKahootz for the contribution
Don't forget to rate the extension in the marketplace that helps to get more contributions ;-)
i am facing same problem again,
Describe the bug After installing the extension, going to the hub show nothing. Only
Projects
list is fetched correctly,Repositories
is empty.To Reproduce Steps to reproduce the behavior:
Pull Request Manager Hub
Expected behavior List of PRs.
Screenshots (won't really help)
Desktop:
Azure DevOps
Additional context Console logs:
Failed to set referrer policy: A policy specified by a meta element must contain only one token. The referrer policy has been left unchanged.
VM3009 {PrjectName}:formattedms.vss-web.platform-content.es6.T1WfB1Bq6sDuC5Cr.min.js:1 No permissions found for security namespace '2e9eb7ed-3c0a-47d4-87c1-0ffdd275fd87' and token 'repoV2/98bddb60-ddf8-4e5f-ab96-7a05c94ae30d/4c58260d-5440-4934-965a-838f34ef241a/'. Ensure that the effective permissions are included in shared data.
ms.vss-web.platform-content.es6.T1WfB1Bq6sDuC5Cr.min.js:formatted at L4555Failed to load resource: the server responded with a status of 404 (Not Found)
targeting:https://something.com/tfs/_apis/public/gallery/publisher/caribeiro84/extension/pull-request-manager-hub/2.20210403.1/assetbyname/build/[object%20Module]