Repository navigation
upload: ask at the terminal whether to send a backup with the report - #231
Merged
Merged
Conversation
All three reports ipctool has sent to openipc.org came without a flash backup: the backup went only with --backup, which nobody runs. Now the owner is asked once the report is on the screen: Send a backup? [no/private/public]: - no, Enter or anything else: the report alone, as before. - private: the backup too, for OpenIPC's maintainers only. - public: the backup too, published with the report once reviewed, with the MAC, chip ID and cloud ID in clear. The question says what the flash holds before it is answered, and the flash is read only after it, so the answer is the consent and no second yes is asked. Nothing is asked without a terminal, with --yes, or with the new --no-backup: those send the report alone unless --backup was given, which still needs its typed yes or --yes. Answers read from a telnet session end in \r\n, which the old yes check refused; both now drop the line end. On the lab Hi3516EV300 against a local receiver: no, Enter and "maybe" sent the YAML only; private and public sent the 16 MB backup with that consent; no terminal, --yes and --no-backup asked nothing and sent the YAML; --backup still asked for its yes.
PR Summary by QodoPrompt for flash-backup consent during interactive uploads
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can add REVIEW.md to your repo root and Qodo follows it on every PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
All three reports ipctool has sent to openipc.org came without a flash
backup: the backup went only with --backup, which nobody runs. Now the
owner is asked once the report is on the screen:
Send a backup? [no/private/public]:
the MAC, chip ID and cloud ID in clear.
The question says what the flash holds before it is answered, and the
flash is read only after it, so the answer is the consent and no second
yes is asked. Nothing is asked without a terminal, with --yes, or with
the new --no-backup: those send the report alone unless --backup was
given, which still needs its typed yes or --yes. Answers read from a
telnet session end in \r\n, which the old yes check refused; both now
drop the line end.
On the lab Hi3516EV300 against a local receiver: no, Enter and "maybe"
sent the YAML only; private and public sent the 16 MB backup with that
consent; no terminal, --yes and --no-backup asked nothing and sent the
YAML; --backup still asked for its yes.