-
Notifications
You must be signed in to change notification settings - Fork 39
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
[MDS-6014] Spatial File FE #3181
Conversation
…Make DocumentCompression hooksy and make props names more clear- update refcerences.
@@ -17,4 +17,6 @@ EXPOSE 5001 | |||
|
|||
RUN mkdir -p /tmp/celery | |||
|
|||
RUN mkdir -p /tmp/spatial |
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.
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 was working with this in my PR too, but from what I can tell the folder doesn't get persisted to the resulting container after this command (/tmp/celery also doesn't exist if you exec into the container after creation)
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.
In my PR I added the creation in the init file for docman.
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 took this stuff out from both Dockerfiles. 👍
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.
Loving all the cleanup! 🧹
Two small comments, but looks great!
(and a merge conflict)
<FormWrapper | ||
isModal | ||
name={modalFormName} | ||
onSubmit={async (values) => { |
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.
Not a huge deal, but I this function is getting a bit large to live inline. Might be nice as it's own function.
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.
Agreed. Extracted a function!
addFileStart?: () => void; | ||
} | ||
|
||
const defaultProps = { |
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.
🙌🏻
); | ||
|
||
export default withFeatureFlag(connect(null, mapDispatchToProps)(FileUpload)); | ||
export default FileUpload; |
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.
Nice solution on this file as a whole! Happy to see some of the clean up too!
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 great. A couple thoughts/suggestions, but it's looking nice and clean!
Quality Gate failed for 'bcgov-sonarcloud_mds_common'Failed conditions |
Quality Gate passed for 'bcgov-sonarcloud_mds_minespace-web'Issues Measures |
Quality Gate failed for 'bcgov-sonarcloud_mds_core-web'Failed conditions |
@@ -13,18 +11,23 @@ import DocumentCompressionWarningModal from "./DocumentCompressionWarningModal"; | |||
import DocumentCompressedDownloadModal from "./DocumentCompressedDownloadModal"; | |||
|
|||
interface DocumentCompressionProps { | |||
documentType: string; |
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.
Thanks for cleaning up this file.
Objective
Misc. changes:
fitBounds
and with no minimum height set in the component, issues rendering without a container (see in action: look at the legal land owner page on the form on test, and delete the other elements in the same row. With no sibling elements, it will disappear)MDS-6014
Why are you making this change? Provide a short explanation and/or screenshots