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

[#2966] Refactor logic for registering contactmomenten in eSuite #1552

Merged
merged 3 commits into from
Jan 22, 2025

Conversation

pi-sigma
Copy link
Contributor

@pi-sigma pi-sigma commented Jan 14, 2025

In preparation for adding support for registering questions with OpenKlant2, the existing logic for registering contactmomenten in the eSuite is refactored.

Taiga: https://taiga.maykinmedia.nl/project/open-inwoner/task/2966

@pi-sigma pi-sigma force-pushed the task/2966-openklant2-zaak-questions branch 3 times, most recently from c6d86d2 to 3928ecc Compare January 15, 2025 09:52
@pi-sigma pi-sigma changed the title [#2966] Support creation of questions linked to zaaak with OpenKlant2 [#2966] Refactor logic for registering contactmomenten in eSuite Jan 15, 2025
@pi-sigma pi-sigma force-pushed the task/2966-openklant2-zaak-questions branch 3 times, most recently from c419675 to 65f542b Compare January 16, 2025 10:48
@codecov-commenter
Copy link

codecov-commenter commented Jan 16, 2025

Codecov Report

Attention: Patch coverage is 93.22581% with 21 lines in your changes missing coverage. Please review.

Project coverage is 94.24%. Comparing base (c8c86fd) to head (38658c4).

Files with missing lines Patch % Lines
src/open_inwoner/cms/cases/tests/test_htmx.py 14.28% 12 Missing ⚠️
...t/migrations/0022_contactmoment_register_config.py 71.42% 4 Missing ⚠️
src/open_inwoner/cms/cases/views/status.py 86.66% 2 Missing ⚠️
src/open_inwoner/openklant/views/contactform.py 88.88% 2 Missing ⚠️
src/open_inwoner/openklant/models.py 95.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1552      +/-   ##
===========================================
+ Coverage    94.23%   94.24%   +0.01%     
===========================================
  Files         1070     1073       +3     
  Lines        39413    39532     +119     
===========================================
+ Hits         37141    37258     +117     
- Misses        2272     2274       +2     

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

@pi-sigma pi-sigma force-pushed the task/2966-openklant2-zaak-questions branch from 65f542b to 58976f2 Compare January 16, 2025 11:21
@pi-sigma pi-sigma marked this pull request as ready for review January 16, 2025 11:47
@pi-sigma pi-sigma requested a review from swrichards January 16, 2025 11:47
@pi-sigma pi-sigma force-pushed the task/2966-openklant2-zaak-questions branch 4 times, most recently from a2d86c1 to 12267c4 Compare January 20, 2025 13:41
Copy link
Collaborator

@swrichards swrichards left a comment

Choose a reason for hiding this comment

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

LGTM, just needs a rebase for the migration dependencies (it's a nitpick, but there's also some stash conflict markers in the first commit, not that it hurts much). I'd like to hold off on merging until v1.26.0 is released.

@pi-sigma pi-sigma marked this pull request as draft January 21, 2025 07:43
@pi-sigma pi-sigma force-pushed the task/2966-openklant2-zaak-questions branch from 12267c4 to 9e2c883 Compare January 21, 2025 07:51
@pi-sigma pi-sigma requested a review from swrichards January 21, 2025 08:25
@pi-sigma pi-sigma marked this pull request as ready for review January 21, 2025 08:25
class Migration(migrations.Migration):

dependencies = [
("openklant", "0018_rename_openklantconfig_esuiteklantconfig_and_more"),
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this needs to be dependent on src/open_inwoner/openklant/migrations/0020_add_more_help_texts_to_openklant2_config.py?

@pi-sigma pi-sigma force-pushed the task/2966-openklant2-zaak-questions branch from 9e2c883 to 4a28798 Compare January 21, 2025 13:47
@pi-sigma pi-sigma marked this pull request as draft January 21, 2025 13:51
@pi-sigma pi-sigma force-pushed the task/2966-openklant2-zaak-questions branch from 4a28798 to 913b67a Compare January 21, 2025 13:55
@pi-sigma pi-sigma requested a review from swrichards January 21, 2025 15:06
@pi-sigma pi-sigma marked this pull request as ready for review January 21, 2025 15:06
Comment on lines 8 to 10
dependencies = [
("openklant", "0019_alter_klantensysteemconfig_primary_backend"),
]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, I mixed up the order (0020_add_more... is already in develop but there's no logical dependency between the migrations).

Paul Schilling added 3 commits January 22, 2025 15:38
@pi-sigma pi-sigma force-pushed the task/2966-openklant2-zaak-questions branch from 913b67a to 38658c4 Compare January 22, 2025 14:40
@alextreme alextreme merged commit 876ea17 into develop Jan 22, 2025
22 checks passed
@alextreme alextreme deleted the task/2966-openklant2-zaak-questions branch January 22, 2025 15:59
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.

4 participants