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

Stop duplicating empty sample text #713

Merged
merged 1 commit into from
Sep 6, 2023
Merged

Conversation

simoncozens
Copy link
Contributor

Fixes #707

Because sample_text is a Protobuf "message" (i.e. a nested dictionary), unlike a Python dictionary and unlike a standard scalar field, this has a boolean value of true even if it has no fields. We have to check if there's actually anything in it.

@felipesanches felipesanches removed their assignment Sep 1, 2023
@felipesanches
Copy link
Member

I think you assigned this to me by mistake. You probably wanted to add me as a code-reviewer instead.

@simoncozens
Copy link
Contributor Author

Sorry, yes.

Copy link
Member

@felipesanches felipesanches left a comment

Choose a reason for hiding this comment

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

yes, that's good!

@simoncozens simoncozens merged commit 567a71e into main Sep 6, 2023
9 checks passed
@simoncozens simoncozens deleted the fix-empty-sample-text branch May 30, 2024 07:46
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.

[Packager] should not add empty fields in metadata.pb
2 participants