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

Edit company interest model to include more fields #3226

Merged
merged 1 commit into from Feb 21, 2023

Conversation

Arashfa0301
Copy link
Contributor

Edited the Company Interest in according to the requested changes by "Interkom"

  • Added company_type char field
  • Added accommodating char field that specifies whether the company can have the event hosted or not.
  • Added company_survey_offers that array field that specifies what subject the company would like to have an event about
  • Added text field for each event type that companies can write a little about

All the above changes are thoroughly tested though the front end and the ensomnia app

@Arashfa0301 Arashfa0301 added priority:high Pull requests that have high priority, and should therefore be prioritized review-needed Pull requests that need review labels Feb 21, 2023
@Arashfa0301 Arashfa0301 force-pushed the edit-company-interest branch 3 times, most recently from 5cc5c11 to 1a10c79 Compare February 21, 2023 18:15
@codecov
Copy link

codecov bot commented Feb 21, 2023

Codecov Report

Base: 88.29% // Head: 88.31% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (852f57c) compared to base (a69de21).
Patch coverage: 97.36% of modified lines in pull request are covered.

❗ Current head 852f57c differs from pull request most recent head b196ad8. Consider uploading reports for the commit b196ad8 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3226      +/-   ##
==========================================
+ Coverage   88.29%   88.31%   +0.01%     
==========================================
  Files         658      659       +1     
  Lines       20728    20762      +34     
==========================================
+ Hits        18302    18336      +34     
  Misses       2426     2426              
Impacted Files Coverage Δ
lego/apps/companies/action_handlers.py 54.54% <0.00%> (ø)
lego/apps/companies/constants.py 100.00% <100.00%> (ø)
...ons/0027_companyinterest_accommodating_and_more.py 100.00% <100.00%> (ø)
lego/apps/companies/models.py 82.07% <100.00%> (+1.46%) ⬆️
lego/apps/companies/serializers.py 96.85% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -53,7 +53,8 @@ def handle_create(self, instance, **kwargs):
# reply is sent to them (and bedkom)
recipients.append(mail_context["mail"])
if mail_context["readme"]:
recipients.append(f"lederreadme@{settings.GSUITE_DOMAIN}")
# recipients.append(f"lederreadme@{settings.GSUITE_DOMAIN}")
Copy link
Member

Choose a reason for hiding this comment

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

👀

lego/apps/companies/constants.py Outdated Show resolved Hide resolved
lego/apps/companies/constants.py Outdated Show resolved Hide resolved
@@ -53,7 +53,8 @@ def handle_create(self, instance, **kwargs):
# reply is sent to them (and bedkom)
recipients.append(mail_context["mail"])
if mail_context["readme"]:
recipients.append(f"lederreadme@{settings.GSUITE_DOMAIN}")
# recipients.append(f"lederreadme@{settings.GSUITE_DOMAIN}")
recipients.append("redaktor@abakus.no")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
recipients.append("redaktor@abakus.no")
recipients.append("redaktor@{settings.GSUITE_DOMAIN}")

not that it matters much

Copy link
Member

@danielyanghansen danielyanghansen left a comment

Choose a reason for hiding this comment

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

TBH it's fine as it is for now, so since this is needed ASAP it can be merged.

However, making enums seems like a necessary change for the future

Co-authored-by: Jonas de Luna Skulberg <jonasdls@gmail.com>
@eikhr eikhr merged commit 4288bee into master Feb 21, 2023
@eikhr eikhr deleted the edit-company-interest branch February 21, 2023 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:high Pull requests that have high priority, and should therefore be prioritized review-needed Pull requests that need review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants