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

[#1883] Fix override file uploads per status type #865

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

pi-sigma
Copy link
Contributor

@pi-sigma pi-sigma commented Nov 29, 2023

File uploads could be enabled/disabled per case type, but overriding this per status type did not work because the preview for the upcoming second case status was handled inconsistently between back-end and fron-end.

Taiga #1833

@pi-sigma pi-sigma force-pushed the fix/1883-file-upload-statustype branch 3 times, most recently from 6494ace to fa8e0de Compare November 30, 2023 10:27
@codecov-commenter
Copy link

codecov-commenter commented Nov 30, 2023

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (c8c01a2) 92.80% compared to head (1da2ead) 92.79%.
Report is 1 commits behind head on develop.

Files Patch % Lines
src/open_inwoner/cms/cases/views/status.py 86.95% 3 Missing ⚠️
src/open_inwoner/cms/cases/tests/test_htmx.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #865      +/-   ##
===========================================
- Coverage    92.80%   92.79%   -0.01%     
===========================================
  Files          798      797       -1     
  Lines        27422    27450      +28     
===========================================
+ Hits         25449    25473      +24     
- Misses        1973     1977       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -234,12 +241,9 @@ def get_context_data(self, **kwargs):

return context

def add_second_status_preview(self, statuses: list, statustypen: list) -> None:
def get_second_status_preview(self, statustypen: list) -> Optional[StatusType]:
Copy link
Contributor

Choose a reason for hiding this comment

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

Just to double check: this is to get the preview of the actual second status and not the next status, right?

@pi-sigma pi-sigma force-pushed the fix/1883-file-upload-statustype branch 4 times, most recently from a49f645 to 1da2ead Compare November 30, 2023 15:34
@alextreme alextreme merged commit aeec19a into develop Dec 1, 2023
14 checks passed
@alextreme alextreme deleted the fix/1883-file-upload-statustype branch December 1, 2023 11:15
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.

5 participants