You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
API: validate RemoteRepository when creating a Project (#8983)
Extend `ProjectCreateSerializer` to validate if there is a `RemoteRepository`
match for the project's repository created.
If it's not found (matching `ssh_url`, `clone_url` and `html_url`) we call a
validation function that will act depending on the platform:
- community: won't raise any exception and just won't connect the `Project` to a
`RemoteRepository`. This is the current behavior and this PR keeps it the same
- commercial: if the organization has VCS SSO enabled and we didn't find a
`RemoteRepository` it will raise a `ValidationError` communicating the user
that we weren't able to import the `Project`
This is the first step on making SSO UX a little nicer and avoid ending up with
disconnected `Project` -> `RemoteRepository` and loosing access to them.
0 commit comments