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

LINK-1359 | Signup presence_status field #659

Merged
merged 10 commits into from
Aug 22, 2023

Conversation

jorilindell
Copy link
Contributor

@jorilindell jorilindell commented Aug 15, 2023

Description

Add presence_status field to Signup model. At the moment allowed values are present and not_present, but we might later add some other values e.g. partially_present. That's the reason to use enum value instead of e.g. simple boolean is_present field

Also allow mandatory_fields and date_of_birth field to undefined in the payload to update Signup. In that case use existing values for validation

Closes

LINK-1359

Additional info

Link to FE PR: City-of-Helsinki/linkedcomponents-ui#206

@jorilindell jorilindell force-pushed the feature/LINK-1359-presence_status branch from eaef3cf to 6a9a2f9 Compare August 15, 2023 11:52
@codecov-commenter
Copy link

codecov-commenter commented Aug 15, 2023

Codecov Report

Merging #659 (6b76c82) into main (f2cd2e4) will increase coverage by 0.06%.
The diff coverage is 100.00%.

❗ Current head 6b76c82 differs from pull request most recent head 8464278. Consider uploading reports for the commit 8464278 to get more accurate results

@@            Coverage Diff             @@
##             main     #659      +/-   ##
==========================================
+ Coverage   76.10%   76.17%   +0.06%     
==========================================
  Files         242      241       -1     
  Lines       17400    17392       -8     
==========================================
+ Hits        13242    13248       +6     
+ Misses       4158     4144      -14     
Files Changed Coverage Δ
...trations/migrations/0018_signup_presence_status.py 100.00% <100.00%> (ø)
registrations/models.py 98.27% <100.00%> (+0.03%) ⬆️
registrations/serializers.py 95.04% <100.00%> (+0.11%) ⬆️
registrations/tests/test_signup_put.py 99.30% <100.00%> (+0.07%) ⬆️

... and 7 files with indirect coverage changes

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

- In PUT request, validate existing date_of_birth or mandatory field value the those attributes are missing from the payload
- In PUT request, validate existing date_of_birth or mandatory field value the those attributes are missing from the payload
@jorilindell jorilindell force-pushed the feature/LINK-1359-presence_status branch from abf9ec2 to 4b33108 Compare August 17, 2023 10:46
@jorilindell jorilindell force-pushed the feature/LINK-1359-presence_status branch from cefbf01 to 8464278 Compare August 17, 2023 10:52
@sonarcloud
Copy link

sonarcloud bot commented Aug 17, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@jorilindell jorilindell merged commit b8b87e0 into main Aug 22, 2023
3 checks passed
@jorilindell jorilindell deleted the feature/LINK-1359-presence_status branch August 22, 2023 10:23
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