-
Notifications
You must be signed in to change notification settings - Fork 56
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
C8y Mapper consumes Uploader Actor #2361
C8y Mapper consumes Uploader Actor #2361
Conversation
b51c68a
to
5c106e2
Compare
Robot Results
|
83c5baa
to
64fd16e
Compare
Codecov Report
Additional details and impacted files
|
64fd16e
to
a429a0b
Compare
1c8c06f
to
86ff5a7
Compare
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.
The main changes LGTM.
1546cdb
to
9a06cc4
Compare
Signed-off-by: Rina Fujino <[email protected]>
Signed-off-by: Rina Fujino <[email protected]>
Uploading a file to cloud without an additional uploader actor may block the whole c8y-mapper processing if it takes too long. Fix the potential problem by introducing uploader actor to c8y-mapper Signed-off-by: Rina Fujino <[email protected]>
Logfile request should post the file with content-type "text/plain", otherwise, c8y doesn't show the preview of the content in event. By default, uploader takes "application/octet-stream" as content-type (no change from previous behavior). If other type is required, it can be changed by calling the "with_content_type()" method. Signed-off-by: Rina Fujino <[email protected]>
Signed-off-by: Rina Fujino <[email protected]>
9a06cc4
to
cdddc5f
Compare
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.
LGTM
Signed-off-by: Rina Fujino <[email protected]>
Signed-off-by: Rina Fujino <[email protected]>
cdddc5f
to
901d4a4
Compare
Proposed changes
This PR adds Uploader Actor to c8y-mapper and makes it consumed by
log_upload
andconfig_snapshot
operations. It is a refactoring, so all existing tests must pass.Todo:
log_upload
operationconfig_snapshot
operationtext/plain
headercreate_event
doesn't support child device #2394Follow-up:
Types of changes
Paste Link to the issue
#2345
Checklist
cargo fmt
as mentioned in CODING_GUIDELINEScargo clippy
as mentioned in CODING_GUIDELINESFurther comments