Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve FAH onboarding flow to connect backends with SCMs #6764

Merged
merged 13 commits into from
Feb 20, 2024

Conversation

blidd-google
Copy link
Contributor

@blidd-google blidd-google commented Feb 12, 2024

This PR fixes a number of different issues with connecting repos to FAH backends:

  • Lists all accessible repos (not limited to 20 anymore) and enables autocomplete prompting
  • Links to the FAH dashboard at the end of the create flow
  • Allows users to link additional GitHub accounts / orgs and connect their repos

@codecov-commenter
Copy link

Codecov Report

Attention: 26 lines in your changes are missing coverage. Please review.

Comparison is base (a4abfa5) 54.31% compared to head (adffff2) 54.31%.
Report is 9 commits behind head on master.

Files Patch % Lines
src/init/features/apphosting/repo.ts 46.51% 22 Missing and 1 partial ⚠️
src/gcp/cloudbuild.ts 0.00% 2 Missing ⚠️
src/init/features/apphosting/index.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6764      +/-   ##
==========================================
- Coverage   54.31%   54.31%   -0.01%     
==========================================
  Files         349      349              
  Lines       24283    24312      +29     
  Branches     5021     5026       +5     
==========================================
+ Hits        13190    13204      +14     
- Misses       9888     9902      +14     
- Partials     1205     1206       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

const res = await client.get<LinkableRepositories>(name);
const res = await client.get<LinkableRepositories>(name, {
queryParams: {
pageSize: 20,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would consider passing this in by arg as well. We may as well request a page size of 1000 if we're trying to fetch all repos

@@ -226,6 +257,9 @@ async function promptAppInstall(conn: gcb.Connection): Promise<gcb.Connection> {
return await gcb.getConnection(projectId, location, id);
}

/**
*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing doc string?

@blidd-google blidd-google enabled auto-merge (squash) February 20, 2024 19:43
@blidd-google blidd-google merged commit 01c01b0 into master Feb 20, 2024
34 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants