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

gitserver: grpc: Change BlameRequest Path field from string to bytes#62916

Merged
ggilmore merged 1 commit into
mainfrom
05-24-gitserver_grpc_change_blamerequest_path_field_from_string_to_bytes
May 29, 2024
Merged

gitserver: grpc: Change BlameRequest Path field from string to bytes#62916
ggilmore merged 1 commit into
mainfrom
05-24-gitserver_grpc_change_blamerequest_path_field_from_string_to_bytes

Conversation

@ggilmore

@ggilmore ggilmore commented May 24, 2024

Copy link
Copy Markdown
Contributor

gitserver: grpc: Change BlameRequest Path field from string to bytes

On Unix, file paths can be arbitary byte sequences (apart from NUL and they are '/' delimited).
As such, we can't assume utf-8 encoding (which is what the string type in protobuf mandates).

Test plan

CI

@cla-bot cla-bot Bot added the cla-signed label May 24, 2024
@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 24, 2024
@ggilmore ggilmore marked this pull request as ready for review May 24, 2024 21:00
@ggilmore ggilmore force-pushed the 05-24-gitserver_grpc_change_filenotfoundpayload_path_field_from_string_to_bytes branch from 5af5698 to bfa1d98 Compare May 24, 2024 21:17
@ggilmore ggilmore force-pushed the 05-24-gitserver_grpc_change_blamerequest_path_field_from_string_to_bytes branch from 6b8dd77 to ba79370 Compare May 24, 2024 21:17
@graphite-app

graphite-app Bot commented May 27, 2024

Copy link
Copy Markdown

Video gif. An elderly man in suspenders smiles as he holds up two thumbs as if saying good luck.  (Added via Giphy)

@ggilmore ggilmore force-pushed the 05-24-gitserver_grpc_change_filenotfoundpayload_path_field_from_string_to_bytes branch from bfa1d98 to 4274454 Compare May 28, 2024 19:59
@ggilmore ggilmore force-pushed the 05-24-gitserver_grpc_change_blamerequest_path_field_from_string_to_bytes branch 2 times, most recently from a5c9f0a to 3e86bb8 Compare May 28, 2024 20:02
@ggilmore ggilmore force-pushed the 05-24-gitserver_grpc_change_filenotfoundpayload_path_field_from_string_to_bytes branch from 4274454 to 2a27773 Compare May 28, 2024 20:25
@ggilmore ggilmore force-pushed the 05-24-gitserver_grpc_change_blamerequest_path_field_from_string_to_bytes branch from 3e86bb8 to 61f1d42 Compare May 28, 2024 20:25
@ggilmore ggilmore force-pushed the 05-24-gitserver_grpc_change_filenotfoundpayload_path_field_from_string_to_bytes branch from 2a27773 to ba97103 Compare May 29, 2024 07:46
Base automatically changed from 05-24-gitserver_grpc_change_filenotfoundpayload_path_field_from_string_to_bytes to main May 29, 2024 08:28
On Unix, file paths can be arbitary byte sequences (apart from NUL and they are '/' delimited).
As such, we can't assume utf-8 encoding (which is what the string type in protobuf mandates).
@ggilmore ggilmore force-pushed the 05-24-gitserver_grpc_change_blamerequest_path_field_from_string_to_bytes branch from 61f1d42 to cca5b48 Compare May 29, 2024 08:33

ggilmore commented May 29, 2024

Copy link
Copy Markdown
Contributor Author

Merge activity

  • May 29, 4:34 AM EDT: Graphite rebased this pull request as part of a merge.
  • May 29, 4:49 AM EDT: @ggilmore merged this pull request with Graphite.

@ggilmore ggilmore merged commit 42c57d7 into main May 29, 2024
@ggilmore ggilmore deleted the 05-24-gitserver_grpc_change_blamerequest_path_field_from_string_to_bytes branch May 29, 2024 08:49
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