Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

gitserver: Cleanup CreateCommitFromPatch#62781

Merged
eseliger merged 1 commit into
mainfrom
es/05-18-gitservercleanupcreatecommitfrompatch
Jun 7, 2024
Merged

gitserver: Cleanup CreateCommitFromPatch#62781
eseliger merged 1 commit into
mainfrom
es/05-18-gitservercleanupcreatecommitfrompatch

Conversation

@eseliger

Copy link
Copy Markdown
Member

This method is still quite messy, but here's some incremental improvement:

  • The unused unique_ref parameter has been removed to simplify
  • The git_apply_args parameter has been replaced with patch_filenames_no_prefix, to not allow arbitrary arguments to be passed from clients for improved security
  • The repo existence check now lives in the gRPC layer like for all other resolvers
  • Added a docstring to describe how it works

Test plan:

Integration tests are still passing, created a batch change locally to verify it can still correctly create a PR.

@cla-bot cla-bot Bot added the cla-signed label May 18, 2024

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @eseliger and the rest of your teammates on Graphite Graphite

@github-actions github-actions Bot added team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all labels May 18, 2024
@eseliger eseliger force-pushed the es/05-18-gitservercleanupcreatecommitfrompatch branch 2 times, most recently from a5a2c86 to 26aca2f Compare June 4, 2024 11:07
@eseliger eseliger marked this pull request as ready for review June 4, 2024 11:41
@eseliger eseliger requested a review from a team June 4, 2024 11:41
This method is still quite messy, but here's some incremental improvement:

- The unused unique_ref parameter has been removed to simplify
- The git_apply_args parameter has been replaced with patch_filenames_no_prefix, to not allow arbitrary arguments to be passed from clients for improved security
- The repo existence check now lives in the gRPC layer like for all other resolvers
- Added a docstring to describe how it works

Test plan:

Integration tests are still passing, created a batch change locally to verify it can still correctly create a PR.
@eseliger eseliger force-pushed the es/05-18-gitservercleanupcreatecommitfrompatch branch from 26aca2f to 42cc1b2 Compare June 7, 2024 08:29
@eseliger eseliger merged commit eb70099 into main Jun 7, 2024
@eseliger eseliger deleted the es/05-18-gitservercleanupcreatecommitfrompatch branch June 7, 2024 08:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants