Skip to content
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

Upload merged #77

Open
wants to merge 63 commits into
base: main
Choose a base branch
from
Open

Upload merged #77

wants to merge 63 commits into from

Conversation

lmdulz
Copy link
Collaborator

@lmdulz lmdulz commented Jun 5, 2024

No description provided.

tasks.py Outdated
@@ -372,6 +387,7 @@ def show_outdated(ctx: Context):
def upgrade(ctx: Context):
"""Upgrade Python and JS packages"""
ctx.run("poetry update", pty=True)
copy_statics(ctx)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And npm?! Or what are you copying?

@@ -26,6 +26,7 @@
"debug_toolbar",
"debug_permissions",
"django_browser_reload",
"adit.upload.apps.UploadConfig",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only in development!?

@@ -13,7 +13,9 @@ def create_option(self, name, value, label, selected, index, subindex=None, attr
dicom_node = value.instance
if dicom_node.node_type == DicomNode.NodeType.SERVER:
option["attrs"]["data-node_type"] = "server"
option["attrs"]["node_id"] = dicom_node.id
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not a valid HTML attribute! Add data-

adit/upload/views.py Show resolved Hide resolved
expect(poll(page.locator("button#uploadButton"))).to_be_visible()
expect(poll(page.locator("button#clearButton"))).to_be_visible()

# page.screenshot(path="./screenshots/before_upload.png")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get rid of all unnecessary comments

document.getElementById("uploadCompleteText").style.display = "none";
},
clearFiles: function () {
var inputEl = document.getElementById("fileselector");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

document?!

document.getElementById("uploadCompleteText").style.display =
"inline-block";
}, 3000);
// Wait for 3 seconds (3000 milliseconds)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the purpose of this comment? It's pretty clear from the code

"inline-block";
}

console.log("Upload process finished");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use log if you want to leave it in the code. Use info, for example.

patientBirthdates.size <= 1
);
} catch (e) {
//console.log(e);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?!

}
})
.catch(function (error) {
//console.log(`Error: ${error.reason_phrase}`);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please cleanup your code :-P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants