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

Added email sending feature into direct reservation link create serializer #507

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

PasiVuohijoki
Copy link
Contributor

No description provided.

@PasiVuohijoki PasiVuohijoki force-pushed the feature/executive_search_link branch 3 times, most recently from 543db8d to a46629f Compare July 28, 2023 07:49
@codecov-commenter
Copy link

codecov-commenter commented Jul 28, 2023

Codecov Report

Merging #507 (a46629f) into develop (0aa10ca) will increase coverage by 0.01%.
The diff coverage is 82.92%.

@@             Coverage Diff             @@
##           develop     #507      +/-   ##
===========================================
+ Coverage    75.60%   75.62%   +0.01%     
===========================================
  Files          436      436              
  Lines        22993    23033      +40     
  Branches      2306     2309       +3     
===========================================
+ Hits         17385    17418      +33     
- Misses        5174     5179       +5     
- Partials       434      436       +2     
Files Changed Coverage Δ
...tsearch/tests/api/test_direct_reservation_links.py 100.00% <ø> (ø)
plotsearch/serializers/plot_search.py 82.73% <76.66%> (-0.37%) ⬇️
plotsearch/utils.py 84.12% <100.00%> (+1.51%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -384,6 +384,21 @@ msgctxt "Section type"
msgid "Show if"
msgstr "Näytä, jos"

#, fuzzy
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove fuzzy

@@ -3440,6 +3455,18 @@ msgstr ""
"Ilmoitusviestien vastaanottajat. Esimerkki: [email protected],maija@example."
"com"

msgctxt "Area search lessor"
msgid "Aluekäyttö- ja valvonta"
Copy link
Contributor

Choose a reason for hiding this comment

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

Message id should be in English

@@ -3448,6 +3475,34 @@ msgctxt "Search class"
msgid "Other"
msgstr "Muu kilpailu tai haku"

#, fuzzy
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove fuzzy


#, fuzzy
#| msgid "File not available"
msgctxt "Decline reason"
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove fuzzy

msgctxt "Model name"
msgid "Area search sub intended use"
msgstr "Aluehaun alikäyttötarkoitus"
#, fuzzy
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove fuzzy

msgctxt "Model name"
msgid "Area search sub intended uses"
msgstr "Aluehaun alikäyttötarkoitukset"
#, fuzzy
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove fuzzy

covering_note = validated_data.pop("covering_note")
send_copy = validated_data.pop("send_copy")
send_email = validated_data.pop("send_mail")
instance = super().create(validated_data)
Copy link
Contributor

Choose a reason for hiding this comment

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

So this creates DirectReservationLink model without any of information above?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes. All this popped information is related to email sending.

instance = super().create(validated_data)

if send_email:
receivers = [email]
Copy link
Contributor

Choose a reason for hiding this comment

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

Should there be comma?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If I remember correctly, black was ranting against it. In tuples comma is needed to make a difference between regular parenthesis

covering_note,
language,
),
None,
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be something like "[email protected]"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Default sender is configured in settings.py

@PasiVuohijoki PasiVuohijoki merged commit fc63151 into develop Aug 8, 2023
3 checks passed
@PasiVuohijoki PasiVuohijoki deleted the feature/executive_search_link branch August 8, 2023 07:21
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.

3 participants