lrf-nitro opened a new issue, #8336: URL: https://github.com/apache/incubator-devlake/issues/8336
### 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 This is based on version 1.0.2-beta6. When trying to add repositories to the data scope of a Github App-based data connection, the first selected repository becomes a "null" entry in the PUT request to api/plugins/github/connections/1/scopes and an HTTP 400 is returned. Tested scenarios: 1. Selecting both repos from a list of two -> data payload contains an initial null entry, second entry seems ok 2. Selecting first entry from list of two repos -> single payload entry is null 3. Selecting second entry from list of two repos -> successful Example shots Scenario 1 - first entry of multi-selection is null:  Scenario 2 - single selection from start of list is null:  Scenario 3 - successful request when not including the first element:  ### What do you expect to happen Expected behavior is that any single selection of repository in a repository list OR any multiple selection of repositories should successfully be added to the data scope - regardless of whether the element(s) is at the beginning or the end of the list, or somewhere in between, and regardless of the number of items selected. ### How to reproduce Using a Github App-based data connection, this seems to be a consistent issue when adding repositories to the data scope. Steps: - Create a project - Add a Github connection of Github App type - Pick the org in the dropdown list to proceed to the repository selection - Filter on some set of repositories - Select as explained in bug description - Selecting first list item should fail ### Anything else _No response_ ### Version v1.0.2-beta6 ### 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: dev-unsubscr...@devlake.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org