wouldd opened a new issue, #7116:
URL: https://github.com/apache/incubator-devlake/issues/7116

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   We have several hundred repositories in each 'project' area in our azure 
devops server. I was attempting ot create a project in devlake that mapps to 
those high level areas and link all the repos within to the connector.
   However, the underlying api for PATCH the blueprint fails when there are 
more than 28 scopes defined as it fails with a 
   
   {"success":false,"message":"error patching the blueprint -dw (400)\nWraps: 
(2)\nWraps: (3) fork/exec ./run.sh: argument list too long\nWraps: (4) 
fork/exec ./run.sh\nWraps: (5) argument list too long\nError types: (1) 
*hintdetail.withDetail (2) *hintdetail.withDetail (3) *hintdetail.withDetail 
(4) *fs.PathError (5) syscall.Errno","causes":["fork/exec ./run.sh: argument 
list too long"],"data":null}
   
   Possibly there are other fundamental reasons that I should not want to link 
that many scopes to a project? or possibly this is just an artefact of the 
azuredevops plugin being in python and not go?
   
   ### What do you expect to happen
   
   I would expect to be able to easily link as many repos as I want to any 
given project/blueprint.
   
   ### How to reproduce
   
   setup an azure devops connection to a system with over 30 repos. link them 
all to config scopes then create a project and try to link them all to the 
connection.
   After about 28 are selected you start to receive errors on submit of the 
patch.
   
   ### Anything else
   
   this occurs every time. It's also worth mentioning that the UI element for 
selecting repos does not behave well with >hundred repos in teh system. It's 
obviously wired up to some underlying paginator, when you scroll towards the 
bottom is loads more but resets your position to the top so it's not obvious 
what's happend. at some point you hit a limit which I think is hard coded 
because it doesn't seem to successfully load any more beyond a certain point 
even thought there are many more to load.
   the search function does not work for azure devops repos - again I think 
this is possibly because the python plugin does not implement that? I can raise 
a separate bug for that if it helps but I could work around all the UI issues 
if the underlying API accepted a json doc with the full list.
   
   I'm also looking at fixing this locally, if i figure out a fix i'd be happy 
to submit a patch but possibly someone that already knows the code base would 
be able to fix it much eaiser.
   
   ### Version
   
   master
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to