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

✨ [#2303] Improvements/fixes for Laposta #1170

Merged
merged 4 commits into from
Apr 26, 2024
Merged

Conversation

stevenbal
Copy link
Contributor

@stevenbal stevenbal commented Apr 22, 2024

Fixes for laposta integration after testing done in #2303

Changes:

  • update LapostaConfig helptext to explain about caching
  • Display Laposta form errors and keep selectboxes checked
  • inject toestemming field

@stevenbal stevenbal marked this pull request as draft April 22, 2024 14:07
@codecov-commenter
Copy link

codecov-commenter commented Apr 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.18%. Comparing base (cecdb72) to head (2564775).
Report is 12 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1170      +/-   ##
===========================================
+ Coverage    95.13%   95.18%   +0.04%     
===========================================
  Files          957      956       -1     
  Lines        34645    34603      -42     
===========================================
- Hits         32960    32937      -23     
+ Misses        1685     1666      -19     

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

@stevenbal stevenbal force-pushed the fix/2303-laposta-issues branch from 181d305 to b86f8c3 Compare April 25, 2024 09:59
@stevenbal stevenbal force-pushed the fix/2303-laposta-issues branch from 1e5213d to 2564775 Compare April 25, 2024 13:02

list_name_mapping = dict(self.fields["newsletters"].choices)
user_data = UserData(
ip=get_client_ip(request)[0],
email=user.verified_email,
source_url=None,
custom_fields=None,
custom_fields={"toestemming": "Ja, ik wil de nieuwsbrief ontvangen"},
Copy link
Contributor Author

@stevenbal stevenbal Apr 25, 2024

Choose a reason for hiding this comment

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

this is actually the expected value, instead of True.

@alextreme the custom_fields are configurable in Laposta, do we want this to be dynamic from our end as well?

Copy link
Member

Choose a reason for hiding this comment

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

@stevenbal ugh. Yes, please make this configurable on our end. Then we can use the same text for asking permission.

Are you sure this is the same value for all newsletters? This feels like something which is newsletter-specific...

Copy link
Contributor Author

@stevenbal stevenbal Apr 26, 2024

Choose a reason for hiding this comment

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

From what I saw, it seems to be the same for all lists (I would have to double check), but it is configurable per list so it's technically possible that they're different

Copy link
Member

Choose a reason for hiding this comment

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

Split off my request into https://taiga.maykinmedia.nl/project/open-inwoner/issue/2413 , it's out of scope

@stevenbal stevenbal marked this pull request as ready for review April 25, 2024 13:05
@alextreme alextreme merged commit 475ae94 into develop Apr 26, 2024
15 checks passed
@alextreme alextreme deleted the fix/2303-laposta-issues branch April 26, 2024 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants