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
In core:invalidate-report-data match segments by ID, name or definition ... #16994
Conversation
Noticed this could potentially be a BC break for any automated uses of the command (since the user would have to add |
…on and warn when a definition does not match any known segment.
d6c5ea9
to
50b7e4d
Compare
@@ -54,6 +62,7 @@ protected function configure() | |||
$this->addOption('dry-run', null, InputOption::VALUE_NONE, 'For tests. Runs the command w/o actually ' | |||
. 'invalidating anything.'); | |||
$this->addOption('plugin', null, InputOption::VALUE_REQUIRED, 'To invalidate data for a specific plugin only.'); | |||
$this->addOption('yes', null, InputOption::VALUE_NONE, 'Assume yes if an unrecognized segment is given.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we maybe clarify this help text as I don't quite get it? could the parameter name be maybe more clear?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--ignore-unrecognized-segment
? or --quiet
/--force
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd probably be better to just remove the check or make it just print out a warning.
Description:
.. and warn when a definition does not match any known segment. When invalidating segments, if it doesn't exactly match the encoding we want, the hash will be wrong and we won't invalidate what we want (and will trigger archiving of a segment we don't want). This change allows better matching and warns in case it doesn't match.
Review