-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat(softTenants): add softTenant ids to assets measures documents #383
feat(softTenants): add softTenant ids to assets measures documents #383
Conversation
Seems like there is a mapping issue because the |
Yes this is still in draft and not working yet, I didn't had the time to finish |
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 feature should be done on 2-dev
branch
1a19c29
to
7ecf853
Compare
7ecf853
to
35e6324
Compare
72a4ef2
to
ea49a1b
Compare
8f22ef7
to
cc3c546
Compare
cc3c546
to
48d034c
Compare
"/lib/modules/shared/exports.ts", | ||
"/lib/modules/shared/types/exports.ts" | ||
] | ||
} |
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.
Is it normal for this file to be there?
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, It's useful to share basic VSCode settings.
Especially on certain repositories like this one which still have a specific configuration like double quote style instead of simple quote.
Maybe we should rationalize these types of configurations between project but that need a huge PR to reformat all code, to accepted style. So for the moment IMHO, it's the better solution to share these settings for contributors
@@ -25,7 +25,10 @@ export const assetsMappings: CollectionMappings = { | |||
date: { type: "date" }, | |||
}, | |||
}, | |||
|
|||
softTenant: { |
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.
So there could be only 1 softTenant
?
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.
No, but it's currently implemented like that and change this need a migration of database so it's breaking if we change to pluralize now
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.
Elasticsearch doesn't have array types in mappings, an object and an array of objects will have the exact same mapping definition.
831550e
to
1d6d203
Compare
http: [ | ||
{ path: "device-manager/:engineId/assets/:_id", verb: "post" }, | ||
], | ||
http: [{ path: "device-manager/:engineId/assets", verb: "put" }], |
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 is a breaking API change, this should be marked as such in the commits and lead to a semver-major release.
http: [ | ||
{ path: "device-manager/:engineId/devices/:_id", verb: "post" }, | ||
], | ||
http: [{ path: "device-manager/:engineId/devices", verb: "put" }], |
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 is a breaking API change, this should be marked as such in the commits and lead to a semver-major release.
# [2.5.0-dev.3](v2.5.0-dev.2...v2.5.0-dev.3) (2024-12-05) ### Features * **softTenants:** add softTenant ids to assets measures documents ([#383](#383)) ([1b36fe0](1b36fe0))
# [2.5.0](v2.4.4...v2.5.0) (2024-12-05) ### Bug Fixes * **assetservice:** can't replace metadata if not present in asset ([#384](#384)) ([eb65c0a](eb65c0a)) * backport fix ([#380](#380)) ([5392b56](5392b56)) ### Features * add editor hint support ([#386](#386)) ([a9b62df](a9b62df)) * **measure:** allow measures to be pushed on Assets via API (no devices) ([#344](#344)) ([c1073c1](c1073c1)) * **softTenants:** add softTenant ids to assets measures documents ([#383](#383)) ([1b36fe0](1b36fe0))
What does this PR do ?
Add
softTenant
fields to digitalTwins documentsOther changes
ModelDefinition
likeAssetModel
,DeviceModel
andMeasureModel
from iot-platformBoyscout