-
Notifications
You must be signed in to change notification settings - Fork 12
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
WIP: Implement upload/download of trace records #22
base: main
Are you sure you want to change the base?
Conversation
09e65ca
to
c2f7a8a
Compare
Currently there is a GUI for the upload button When clicked, it zips the given trace with a random password encryption and uploads it to the provided web api root
…ime to the database file
In the nim-lan/zip library password encryption is not supported so we are currently using the standard zip and unzip packages
Still need to encrypt the file and set up the codetracer web api
…ugh <downloadId>::<password>
… and auto open on download complete
…ding on the trace fields Add fields for the downloadKey, controlId and expireTime to the trace object Add a Command for delete of trace files Handle deleting of the trace file's download key, controlId and expireTime
…nished and handle the frontend update of the trace object
f838285
to
b8a295a
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.
Looks good to me, just needs to be changed to follow the common code style. Maybe @alehander92 can add to the review
@@ -54,7 +54,7 @@ proc recordSymbols(sourceDir: string, outputFolder: string, lang: Lang) = | |||
# it's still good to have an option/opt-out, so we leave that | |||
# as a flag in the internals, but not exposed to user yet | |||
# that's why for now it's hardcoded for db | |||
const DB_SELF_CONTAINED_DEFAULT = true | |||
const DB_SELF_CONTAINED_DEFAULT* = true |
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.
maybe we need to move this to globals.nim
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.
I just noticed that it is exported. I support moving this too
@@ -53,16 +53,16 @@ proc downloadCommand*(traceRegistryId: string) = | |||
else: | |||
let downloadId = stringSplit[1] | |||
let password = stringSplit[2] | |||
let zipPath = "/tmp/tmp.zip" | |||
let zipPath = codetracerTmpPath / "tmp.zip" |
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 is /tmp/codetracer/
on unix though, maybe that's ok, just noting
No description provided.