feat(seer): Allow users to add more repos in RCA onboarding step#104626
Merged
feat(seer): Allow users to add more repos in RCA onboarding step#104626
Conversation
This allows the user to add a repository when they are on the RCA onboarding step. The repos selected in Code Review step may not always be the same as RCA.
7117e58 to
b73a2a9
Compare
Member
Author
|
@sentry review |
static/gsApp/views/seerAutomation/onboarding/configureRootCauseAnalysisStep.tsx
Show resolved
Hide resolved
static/gsApp/views/seerAutomation/onboarding/hooks/seerOnboardingContext.tsx
Show resolved
Hide resolved
Comment on lines
184
to
188
| .map(([repoId, projects]) => { | ||
| // Don't overwrite existing mappings | ||
| if (prev[repoId]) { | ||
| // Don't overwrite existing mappings that have projects | ||
| if (prev[repoId] && prev[repoId].length > 0) { | ||
| return null; | ||
| } |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Member
Author
There was a problem hiding this comment.
This is intended -- it's fine to load/overwrite mappings when there are no projects mapped. If you remove projects from a mapping, you should either remove the repo row.
This was changed for the case when we add a new repo row and want to check and load code mappings.
ryan953
approved these changes
Dec 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This allows the user to add a repository when they are on the RCA onboarding step. The repos selected in Code Review step may not always be the same as RCA.