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

Export measures to CSV #296

Merged
merged 8 commits into from
Apr 17, 2023
Merged

Export measures to CSV #296

merged 8 commits into from
Apr 17, 2023

Conversation

Aschen
Copy link
Contributor

@Aschen Aschen commented Apr 14, 2023

What does this PR do ?

Add an API to exports measures in CSV.

Those actions allow to export the measures history of an asset or a device.

The measures are exported as a CSV stream.

The export process have two steps:

  1. execute the exportMeasures action with WebSocket or HTTP POST to prepare an export and retrieve an export link
  2. GET request to the generated export link through a tag <a href="{export-link}">Download</a>

Those two steps are necessary to avoid the browser to crash when exporting a lot of data.

Export link are valid for 2 minutes.

@Aschen Aschen marked this pull request as ready for review April 14, 2023 16:00
@Aschen Aschen marked this pull request as draft April 14, 2023 16:04
@Aschen Aschen marked this pull request as ready for review April 14, 2023 16:28
@Aschen Aschen merged commit 6f9434d into 2-dev Apr 17, 2023
@Aschen Aschen deleted the feat/export-measures branch April 17, 2023 11:39
@Aschen Aschen mentioned this pull request Apr 17, 2023
Aschen added a commit that referenced this pull request Apr 17, 2023
# [2.2.0](https://github.com/kuzzleio/kuzzle-device-manager/releases/tag/2.2.0) (2023-04-17)


#### Bug fixes

- [ [#290](#290) ] Historize asset for each same measurements   ([tdislay](https://github.com/tdislay))
- [ [#288](#288) ] Full path nested metadata when create/update assets   ([OlivierCavadenti](https://github.com/OlivierCavadenti))
- [ [#286](#286) ] ModelService upsert -> createOrReplace   ([fmauNeko](https://github.com/fmauNeko))
- [ [#282](#282) ] Fix engine creation   ([Aschen](https://github.com/Aschen))

#### New features

- [ [#296](#296) ] Export measures to CSV   ([Aschen](https://github.com/Aschen))
- [ [#291](#291) ] Add type of measure linked in each links of asset measures.   ([OlivierCavadenti](https://github.com/OlivierCavadenti))

#### Enhancements

- [ [#295](#295) ] Export default mappings   ([Aschen](https://github.com/Aschen))
- [ [#293](#293) ] Allow JSONObject in metadata   ([Aschen](https://github.com/Aschen))
- [ [#287](#287) ] Update metadata in existing assets when the model is modified   ([fmauNeko](https://github.com/fmauNeko))
- [ [#283](#283) ] Store reason of discarded payloads   ([OlivierCavadenti](https://github.com/OlivierCavadenti))

#### Others

- [ [#289](#289) ] Split tsconfig for tests   ([fmauNeko](https://github.com/fmauNeko))
---
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.

4 participants