-
Notifications
You must be signed in to change notification settings - Fork 53
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
PTV-1886 staging area limit file size #3312
base: develop
Are you sure you want to change the base?
Changes from 26 commits
7c640a7
78c51cf
7902a54
79adc72
6536c04
8c2cae5
54586c1
e9faf8e
412c5ac
1b3406a
d17a9b5
71ecedd
62ce65d
43e8b49
f3d5a49
5ffcda3
6911a4a
8182b1a
21b2936
dde8402
4e052d9
28d0b98
277a634
70fd434
b4a3fb5
e45e547
8dfab32
bfd0724
a4a3a2e
bb4f7e0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
[flake8] | ||
max-line-length = 100 | ||
exclude = | ||
scripts/*, | ||
modules/*, | ||
test/*, | ||
kbase-extension, | ||
nbextensions, | ||
node_modules | ||
putty-ignore = | ||
src/*/__init__.py : F401,E126 | ||
# E203: whitespace before ‘,’, ‘;’, or ‘:’ | ||
# E501: line length | ||
# W503: line break after binary operator | ||
ignore = E203, E501, W503, D, DAR | ||
extend-select = B902, B903, B904 | ||
extend-exclude = | ||
*.pyc, | ||
.github, | ||
.husky, | ||
deployment, | ||
docs, | ||
node_modules, | ||
js-coverage, | ||
python-coverage, | ||
src/build | ||
*.pyc, | ||
.github, | ||
.husky, | ||
deployment, | ||
docs, | ||
node_modules, | ||
js-coverage, | ||
python-coverage, | ||
src/build |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
@extend %kbase-button; | ||
|
||
@include button-variant(use_color('primary'), use_color('primary-lightest'), transparent); | ||
|
||
} | ||
|
||
.dz-file { | ||
|
@@ -78,8 +79,8 @@ | |
|
||
.kb-dropzone { | ||
border: 2px dashed use_color('mid-blue') !important; | ||
margin-bottom: 5px; | ||
max-height: 150px; | ||
// margin-bottom: 5px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can just delete these. I don't think they need to come back. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Roger that. |
||
max-height: 300px; | ||
overflow-y: auto; | ||
|
||
&-progress__header { | ||
|
@@ -91,14 +92,23 @@ | |
.dz-message { | ||
color: rgb(0 0 0); | ||
font: normal 400 24px/28px $typeface-page-text; | ||
margin: 2em 4.5em; | ||
// margin: 2em 4.5em; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Delete. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, ye ole "not sure this will work, keep an eye on it and remove later" that doesn't get removed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, the nested styles are hard, having the full path as a comment is very helpful! |
||
mix-blend-mode: normal; | ||
text-align: center; | ||
margin: 0; | ||
} | ||
|
||
// .kb-dropzone__message--upload | ||
&__message--upload { | ||
font-family: $typeface-page-text; | ||
font-weight: 700; | ||
} | ||
} | ||
|
||
&.dropzone.dz-clickable button { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
cursor: pointer; | ||
} | ||
|
||
&.dropzone.dz-clickable a { | ||
cursor: pointer; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
.kb-file-upload-widget { | ||
display: flex; | ||
flex-direction: column; | ||
justify-items: center; | ||
margin-bottom: 0.5rem; | ||
|
||
&__error-message { | ||
display: flex; | ||
flex-direction: row; | ||
|
||
.-title { | ||
flex: 0 0 4rem; | ||
align-items: center; | ||
} | ||
|
||
.-body { | ||
flex: 1 1 0; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
} | ||
|
||
&__clear-all-button-container { | ||
margin-top: 0.5rem; | ||
} | ||
|
||
&__globus-upload-link-container { | ||
display: inline-block; | ||
vertical-align: baseline; | ||
} | ||
|
||
// Bootstrap overrides | ||
|
||
// necessary? | ||
.progress-bar { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It might not be necessary at this point, but Bootstrap's progressbar is occasionally an oddball, and was annoying to work against Dropzone. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. bootstrap already sets the width for .progress-bar to 0, and I don't see anywhere in the KBase codebase that sets this class otherwise that would need overriding. Also, in the widget code the width is set via direct style to '0' on reset, but should probably set it to '' to remove the style and let the class style take over. Anyway, it is working, so I don't see any reason to change anything here, other than the fact that these files are being revised and who knows when the next opportunity will come. |
||
width: 0; | ||
} | ||
|
||
&__globus_error_link.btn.btn-link { | ||
padding: 0; | ||
margin: 0; | ||
font-size: inherit; | ||
} | ||
|
||
// Not really sure what is going on here. | ||
// "row" is bootstrap | ||
// "file-row" is kbase, bespoke, not defined elsewhere | ||
.row.file-row { | ||
padding: 0.25rem; | ||
} | ||
|
||
// Dropzone override | ||
|
||
.row.file-row.dz-error { | ||
border: 1px solid use_color('error-dark'); | ||
color: use_color('error-dark'); | ||
} | ||
|
||
} |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
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.
Is this set up in the staging service? I know you were making changes there, too, with @bio-boris .
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 will come from changes to the nginx proxy. I've included the instructions, at least for what worked for me.
I tested this out by setting the kbase-ui proxy up with a low limit to trigger the 413 for arbitrary file sizes.
Yes, there is a set of changes coming for the staging service too, but the Narrative changes (other than the handling of a custom 413, which is auto-detected) don't depend on them. However, for anyone sending files between 4.4 and 5GB, the current staging service will crash. The upcoming changes address this.