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

feat(api): guard returning file entries with missing text #5580

Merged
merged 3 commits into from Apr 17, 2023

Conversation

schroederc
Copy link
Contributor

No description provided.

@schroederc schroederc added the API Issues affecting the Kythe API label Apr 17, 2023
@schroederc schroederc requested review from salguarnieri and a team April 17, 2023 02:44
@schroederc schroederc enabled auto-merge (squash) April 17, 2023 02:44
@@ -77,6 +80,9 @@ message DirectoryReply {

// True if the entry is generated.
bool generated = 4;

// Whether the FILE entry is missing text.
bool missing_text = 5;
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be more natural in the positive sense. Though does has_text conflict with proto3 hazzers?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The picked the default that would be more common so we don't just populate true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true in every response.

@schroederc schroederc merged commit 3ec5f31 into kythe:master Apr 17, 2023
5 checks passed
@schroederc schroederc deleted the filetree-missing-text branch April 17, 2023 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Issues affecting the Kythe API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants