Conversation
Codecov ReportAttention: Patch coverage is Additional details and impacted files📢 Thoughts on this report? Let us know! |
Robot Results
|
albinsuresh
left a comment
There was a problem hiding this comment.
The code looks as straight forward as it can be.
crates/core/tedge/src/cli/mod.rs
Outdated
|
|
||
| /// Interact with Cumulocity | ||
| #[clap(subcommand)] | ||
| C8y(c8y::C8yCmd), |
There was a problem hiding this comment.
Wondering if having this concrete enum variant named C8y would make it difficult to support profiles, since #3262 is merged and the c8y@profile style is preferred over --profile arguments.
There was a problem hiding this comment.
Good point. I will rebase now to assess what are the actual issues.
78d1ff1 to
a50cd28
Compare
|
This commit dd20201 raises several questions:
|
we could limit this feature to the main device until the entity api is available…or allow the use to manually provide the external id if needed |
f9f57d5 to
9468af9
Compare
An optional
|
|
While testing this further, I noticed one minor niggle: If you try to upload a non-existent file, the event is still created without the attachment. So, pre-validating if the file exits and readable might be good. |
Fixed by 5e456b0 |
reubenmiller
left a comment
There was a problem hiding this comment.
Approved. Nice addition and we can close one of the more longer standing tickets
1ba7448 to
2626020
Compare
2626020 to
fdf6db0
Compare
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
The command `tedge c8y upload` has been renamed `tedge upload c8y` to be consistent with the other commands where c8y is a cloud option not a sub-command. This also makes less confusing the --profile option used to chose one cloud profile (when applicable). Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
Signed-off-by: Didier Wenzek <didier.wenzek@free.fr>
fdf6db0 to
4e4a292
Compare
Proposed changes
Extend
tedgecli with atedge upload c8ycommand to upload a file to Cumulocity.Types of changes
Paste Link to the issue
#1315
Checklist
cargo fmtas mentioned in CODING_GUIDELINEScargo clippyas mentioned in CODING_GUIDELINESFurther comments