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

Replace Streamable w/ Writeable in RoleDescriptor #34544

Merged
merged 2 commits into from
Oct 18, 2018

Conversation

tvernum
Copy link
Contributor

@tvernum tvernum commented Oct 17, 2018

This commit replaces usage of Streamable with Writeable within the
RoleDescriptor class (and inner classes).

Relates: #34389

This commit replaces usage of Streamable with Writeable within the
RoleDescriptor class (and inner classes).

Relates: elastic#34389
@tvernum tvernum added v7.0.0 >refactoring :Security/Authorization Roles, Privileges, DLS/FLS, RBAC/ABAC v6.5.0 labels Oct 17, 2018
@tvernum tvernum requested a review from jaymode October 17, 2018 06:02
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-security

this.privileges = in.readStringArray();
this.query = in.readOptionalBytesReference();
}

@Override
public void writeTo(StreamOutput out) throws IOException {
Copy link
Member

Choose a reason for hiding this comment

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

I tend to move writeTo so it is on the same screen as the reading constructor just so it is easier to eyeball them at the same time.

Copy link
Member

@jaymode jaymode left a comment

Choose a reason for hiding this comment

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

LGTM

@tvernum tvernum merged commit 47e9082 into elastic:master Oct 18, 2018
tvernum added a commit that referenced this pull request Oct 23, 2018
This commit replaces usage of Streamable with Writeable within the
RoleDescriptor class (and inner classes).

Relates: #34389
kcm pushed a commit that referenced this pull request Oct 30, 2018
This commit replaces usage of Streamable with Writeable within the
RoleDescriptor class (and inner classes).

Relates: #34389
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants