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

feat(assetGroups): add lastUpdate on changes #311

Merged
merged 4 commits into from
Aug 4, 2023

Conversation

sebtiz13
Copy link
Member

What does this PR do ?

Improve assets groups to add the data lastUpdate to store when groups have been updated

How should this be manually tested?

  • Step 1 : update of a group from API
  • Step 2 : check lastUpdate property has been update

@sebtiz13 sebtiz13 requested a review from tdislay July 17, 2023 14:08
@sebtiz13 sebtiz13 self-assigned this Jul 17, 2023
@sebtiz13 sebtiz13 changed the base branch from master to 2-dev July 17, 2023 14:08
@Aschen
Copy link
Contributor

Aschen commented Jul 17, 2023

Why are you not using Kuzzle metadata? The updatedAt field contains the timestamp of the last modification of the document

@tdislay
Copy link
Contributor

tdislay commented Jul 18, 2023

Why are you not using Kuzzle metadata? The updatedAt field contains the timestamp of the last modification of the document

@Aschen From what I remember, we have specific needs -> e.g. When we remove a group from an asset's property groups. All of this happen in the asset document (whose updatedAt field will be updated), not in the group one.

I've just checked, we can just do a blank update on the document, it will update the updatedAt metadata..
But I think we want to distinguish document's timestamps (storage support) AND group's timestamps (the abstraction).

I would have preferred the approach where you use the already existing updatedAt field, it would avoid confusion 🤷

@sebtiz13 sebtiz13 force-pushed the feat/assets-groups_lastUpdate branch from 7681977 to 4602c23 Compare July 24, 2023 11:49
@sebtiz13 sebtiz13 changed the title Feat/assets groups last update feat(assetGroups): add lastUpdate on changes Jul 27, 2023
@sebtiz13 sebtiz13 merged commit 4a768df into 2-dev Aug 4, 2023
3 checks passed
@sebtiz13 sebtiz13 deleted the feat/assets-groups_lastUpdate branch August 4, 2023 14:40
sebtiz13 added a commit that referenced this pull request Aug 14, 2023
* feat(assetGroups): add lastUpdate on changes
* feat(assetGroupsLink): add date to asset link
* feat(assetGroups): update lastUpdate when change links
* fix(AssetsGroups): correct children group creation
wait parent update to prevent erratic result in tests
github-actions bot pushed a commit that referenced this pull request Aug 14, 2023
# [2.3.0](v2.2.8...v2.3.0) (2023-08-14)

### Bug Fixes

* composite measures should be correctly exported to CSV ([#309](#309)) ([487c1e8](487c1e8))
* **docs:** wrong arguments in models' getDevice request ([#310](#310)) ([028c65c](028c65c))

### Features

* **assetGroups:** add assetGroups roles ([b9d0fae](b9d0fae))
* **assetGroups:** add groups for assets ([#306](#306)) ([10de8b4](10de8b4))
* **assetGroups:** add lastUpdate on changes  ([#311](#311)) ([36a4575](36a4575))
* **semantic-release:** add semantic release support to device manager ([99b1683](99b1683))
github-actions bot pushed a commit that referenced this pull request Aug 14, 2023
# [2.3.0](v2.2.8...v2.3.0) (2023-08-14)

### Bug Fixes

* composite measures should be correctly exported to CSV ([#309](#309)) ([487c1e8](487c1e8))
* **docs:** wrong arguments in models' getDevice request ([#310](#310)) ([028c65c](028c65c))

### Features

* **assetGroups:** add assetGroups roles ([b9d0fae](b9d0fae))
* **assetGroups:** add groups for assets ([#306](#306)) ([10de8b4](10de8b4))
* **assetGroups:** add lastUpdate on changes  ([#311](#311)) ([36a4575](36a4575))
* **semantic-release:** add semantic release support to device manager ([99b1683](99b1683))
sebtiz13 pushed a commit that referenced this pull request Aug 14, 2023
# [2.3.0](v2.2.8...v2.3.0) (2023-08-14)

### Bug Fixes

* composite measures should be correctly exported to CSV ([#309](#309)) ([487c1e8](487c1e8))
* **docs:** wrong arguments in models' getDevice request ([#310](#310)) ([028c65c](028c65c))

### Features

* **assetGroups:** add assetGroups roles ([b9d0fae](b9d0fae))
* **assetGroups:** add groups for assets ([#306](#306)) ([10de8b4](10de8b4))
* **assetGroups:** add lastUpdate on changes  ([#311](#311)) ([36a4575](36a4575))
* **semantic-release:** add semantic release support to device manager ([99b1683](99b1683))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants