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.
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
Changing AcceptedCommands Interface #37646
base: master
Are you sure you want to change the base?
Changing AcceptedCommands Interface #37646
Changes from 34 commits
a6c102c
60c855f
97a16db
0aeb4e5
c9918d2
9685fee
1e118db
3a551c1
ff54464
6511c42
77a4f9f
7cb4b5e
dde4481
e55e237
5a0a934
62429e8
6f5ea52
319d9aa
8e92e77
777a609
5f53224
9671d96
33a0663
6e4a9e9
e4a4968
10cd5d3
731222e
98ea178
3f4a906
3037bfc
f4cdd15
7f56e9f
a20600e
afc80b1
8c10c16
2bf9949
8b8947b
316072b
9c54176
088f797
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Does this not need EnsureAppendCapacity before AppendElements?
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.
Not really, AppendElements already ensures capacity before, only when using Append is necessary
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.
This sentence has grammar issues.
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.
Please check new phrasing
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.
The fact that all this code has to duplicate parts of the spec is really fragile.
What we should be doing is that cluster-objects codegen should be code-generating the relevant bits: either a getter for the
AcceptedCommandEntry
or at least the privileges/flags bits that can then be used to construct one.I'm OK with this happening in a followup that then updates all these callsites, or in a PR that happens before this PR, either way. Just not as part of this PR.
But we don't want to be shipping this in the state this PR is creating, where all sorts of spec stuff is duplicated in the cluster impls.
Changes requested until we have a concrete plan for how this is going to work.
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.
Some of the logic issues may be pre-existing as we still controlled IDs within code.
Is the worry that we may make mistakes in setting correct flags/privileges for these items?
i.e. are you asking for something like
ScanNetworks::Entry
to be generated by cluster-objects so that we do not make mistakes in flags and privileges?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.
Yes, 100%. As this PR demonstrates, in several places. ;)
Yes.