Always pass namespace_id when using OAuth in importers
What does this MR do and why?
Related to Importers - Default to the current group when i... (#359130 - closed)
This MR correctly reuses namespace_id
through import process of all importers using OAuth. This allows us to correctly select current group as default for import.
We are doing this by adding namespace_id
to callback url and passing it again from callback url to status. OAuth specs allow us to pass arbitrary number of query params to callback url, so there will not be problem with any OAuth provider
Screenshots or screen recordings
How to set up and validate locally
- Set-up oauth for github, gitlab and bitbucket
- Visit any group (except the one you saw on previous step)
- New project -> Import -> GitLab.com
- Observe that group selected as default import
- (repeat previous 2 steps for bitbucket cloud importer and github importer)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related issue:
Describe in detail what your merge request does and why.
Screenshots or screen recordings
Edited by Illya Klymov