-
Notifications
You must be signed in to change notification settings - Fork 6
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
[#2007] Disable upload message if there are recently uploaded documents #961
Conversation
55d99b7
to
490956c
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.
Code looks good and I tested this locally and it works 👍
Only something seems to go wrong with the submodule reverting to an older commit
open-inwoner-design-tokens
Outdated
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 think your open-inwoner-design-tokens
submodule is outdated
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.
Just realized this while testing locally. I'll update the tokens and push again.
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.
Jiro has now linked the submodule to the main branch of open-inwoner-design-tokens, having an older version of this repo than main seems to be shown in a Github PR but doesn't affect our develop branch? It's a bit odd how Github deals with submodules, Bitbucket does this differently...
70e4d7b
to
c4e919c
Compare
Submodules are fixed |
@@ -383,6 +386,10 @@ def get_upload_info_context(self, case: Zaak): | |||
zt_statustype_config.document_upload_description | |||
) | |||
|
|||
# disable document upload message | |||
if self.has_recently_uploaded_documents: |
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 isn't how this should be solved. The upload-message should only be hidden directly after you've uploaded your documents, and not be related to if you have recent documents or not.
Reason is that the municipality can also upload documents, so ensure we only hide the upload description after returning from CaseDocumentUploadFormView. I'd personally do this based on a GET-argument after a succesful upload
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.
Makes sense, I didn't consider this case.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #961 +/- ##
===========================================
- Coverage 94.77% 94.76% -0.01%
===========================================
Files 861 861
Lines 30192 30196 +4
===========================================
+ Hits 28614 28616 +2
- Misses 1578 1580 +2 ☔ View full report in Codecov by Sentry. |
64a5e32
to
9116355
Compare
9116355
to
b4bfbe7
Compare
Taiga #2007