-
Notifications
You must be signed in to change notification settings - Fork 6
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
Store reason of discarded payloads #283
Conversation
OlivierCavadenti
commented
Mar 24, 2023
- Store if a payload is skipped, valid or error.
- Store the reason of the error, when a user defined validation error occurs.
- Store if a payload is skipped, valid or error. - Store the reason of the error, when a user defined validation error occurs.
You have successfully added a new CodeQL configuration |
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 documented here https://github.com/kuzzleio/kuzzle-device-manager/blob/master/doc/2/guides/measures-ingestion/index.md?plain=1#L109
And also add the state
and reason
here https://github.com/kuzzleio/kuzzle-device-manager/blob/master/doc/2/guides/measures-ingestion/index.md?plain=1#L232
@@ -57,23 +59,36 @@ export class PayloadService { | |||
|
|||
const uuid = request.input.args.uuid || uuidv4(); | |||
let valid = true; | |||
let state: StateDecoder = StateDecoder.VALID; |
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.
let state: StateDecoder = StateDecoder.VALID; | |
let state = StateDecoder.VALID; |
I still need to do that. |
Yes it would be better to have string values 👍 |
# [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)) ---