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

Update metadata in existing assets when the model is modified #277

Closed
Aschen opened this issue Mar 9, 2023 · 1 comment · Fixed by #287
Closed

Update metadata in existing assets when the model is modified #277

Aschen opened this issue Mar 9, 2023 · 1 comment · Fixed by #287
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers module-model

Comments

@Aschen
Copy link
Contributor

Aschen commented Mar 9, 2023

Updating an asset (or device) model metadata should automatically update corresponding assets:

  • add metadata: initialize with null or the default metadata value if any
  • delete metadata: remove the value

Also update assets/devices when adding a new measure and initialize the property with null

  • e.g. asset.measures.newMeasure = null

Solution

  • List engines
    const { result } = await this.sdk.query({
      controller: "device-manager/engine",
      action: "list"
    })
  • updateByQuery on devices and assets collections
@fmauNeko
Copy link
Contributor

Closed by #287.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers module-model
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants