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

API Refactor: Remove primary key fields from masks #1630

Merged

Conversation

azdagron
Copy link
Member

@azdagron azdagron commented Jun 9, 2020

The masks are used to filter input messages (e.g., piecemeal updates) and output messages (e.g. reduce bandwidth use for unused fields). Masking out the "primary key" field on input never makes sense since it is a required field for identifying the object to perform the operation on. Additionally, it's hard to imagine a practical scenario where you'd want to get back one or more objects without the primary key field.

This PR removes the "primary key" field from the mask messages to avoid confusing interactions with input masks with little to no benefit on the output mask.

Signed-off-by: Andrew Harding <andrew.harding@hpe.com>
Copy link
Member

@amartinezfayo amartinezfayo left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@azdagron azdagron merged commit dece620 into spiffe:master Jun 9, 2020
@azdagron azdagron deleted the remove-primary-key-field-from-masks branch June 9, 2020 22:59
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.

None yet

2 participants