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

Field mask handling fixes #707

Merged
merged 4 commits into from
May 20, 2019
Merged

Conversation

kschiffer
Copy link
Member

Summary

Closes #706
References #643
Additionally, this adds a utility function to generate generated/device-entity-map.json by a list of valid device field masks generated/device-field-masks.json (which for now can easily be extracted via pkg/ttnpb/field_mask_validation.go).

Changes

  • Only extract deepest valid field mask of device patches
  • Add utility to generate device entity map
  • Update device entity map

Notes for Reviewers

Please double check if device creation/update is still working with this.

@kschiffer kschiffer added the c/sdk/js This is related to the JavaScript SDK label May 17, 2019
@kschiffer kschiffer requested a review from bafonins May 17, 2019 22:36
@kschiffer kschiffer self-assigned this May 17, 2019
@coveralls
Copy link

coveralls commented May 17, 2019

Coverage Status

Coverage decreased (-0.006%) to 73.41% when pulling 366f4c1 on fix/706-sdk-field-mask-extraction into 459ea96 on master.

@kschiffer kschiffer force-pushed the fix/706-sdk-field-mask-extraction branch from 70abbce to 366f4c1 Compare May 20, 2019 07:52
@kschiffer kschiffer merged commit f5c9fd0 into master May 20, 2019
@kschiffer kschiffer deleted the fix/706-sdk-field-mask-extraction branch May 20, 2019 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/sdk/js This is related to the JavaScript SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix field mask extraction in device create/update operations
3 participants