-
Notifications
You must be signed in to change notification settings - Fork 187
Add data_policy to list of flags gathered for metrics
#2065
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
Open
cjreynol
wants to merge
6
commits into
google:main
Choose a base branch
from
cjreynol:metrics_data_policy
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+281
−48
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Databean
approved these changes
Jan 27, 2026
cfdbbe9 to
0e57723
Compare
Databean
approved these changes
Jan 29, 2026
37df759 to
0a652d8
Compare
To be used as a target for converting the flag's string value.
Also, remove the unused/unhandled `create_if_missing` option from the `data_policy` flag help text.
Otherwise, the source file will need to explicitly instantiate the templates for all types. Since we want to expand the list (for instance with the new `DataImagePolicy` enum, that will be inconvenient. Keep the destructor pure-virtual to avoid `FlagBase` instantiation: "Pure virtual destructors" section of https://en.cppreference.com/w/cpp/language/destructor.html `extern template` common flag types, to avoid some amount of template bloat. This does not require future `FlagBase` instantiations to update the `flag_base` header or source files like the previous version, however.
To re-use the same parsing logic for metrics gathering. Bug:442664611
Not yet converted for transmission, but available. Bug: 442664611
Bug: 442664611
0a652d8 to
509ac5d
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bug: 442664611