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

Fixed: Added in_use field to track used bed #1060

Closed
wants to merge 1 commit into from

Conversation

aeswibon
Copy link
Member

@aeswibon aeswibon commented Oct 9, 2022

Updates

  • Fixes Issue: In Use beds present in bedList #936
  • Added in_use field to Bed model to track used bed
  • Added migration function to update in_use field for previous bed models
  • Updated serializer to update in_use field during bed update

* Added migration for in_use field
* Added function to update in_use field for all previous bed models
* Added logic to update bed.is_use field
* Formatted the code
@sonarcloud
Copy link

sonarcloud bot commented Oct 9, 2022

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 3 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov-commenter
Copy link

Codecov Report

Base: 56.06% // Head: 56.05% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (b8b7c44) compared to base (0beaa72).
Patch coverage: 25.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1060      +/-   ##
==========================================
- Coverage   56.06%   56.05%   -0.01%     
==========================================
  Files         175      175              
  Lines        8629     8634       +5     
  Branches     1462     1477      +15     
==========================================
+ Hits         4838     4840       +2     
- Misses       3739     3742       +3     
  Partials       52       52              
Impacted Files Coverage Δ
care/facility/api/serializers/bed.py 40.17% <0.00%> (-1.06%) ⬇️
care/facility/models/bed.py 83.78% <100.00%> (+0.45%) ⬆️
care/users/api/viewsets/change_password.py 61.53% <0.00%> (+1.53%) ⬆️

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.

@aeswibon
Copy link
Member Author

Fixed in #1082

@aeswibon aeswibon closed this Oct 28, 2022
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.

Issue: In Use beds present in bedList
2 participants