Skip to content

Expand fixtures - #3754

Draft
yash-learner wants to merge 9 commits into
ohcnetwork:developfrom
yash-learner:good-fixtures
Draft

Expand fixtures #3754
yash-learner wants to merge 9 commits into
ohcnetwork:developfrom
yash-learner:good-fixtures

Conversation

@yash-learner

@yash-learner yash-learner commented Sep 8, 2026

Copy link
Copy Markdown
Member

Proposed Changes

Expand pack-based fixtures for demo/test facility seeding (wiki):

  • Organizations (geo + supplier), facilities, foundation (depts / locations / services)
  • Users, patients
  • Definitions (SD, OD, RC, PK, CID, AD)
  • External receipts + internal transfers (RO, SR, SD, DO -> Products, InventoryItem)
  • Loaders + load_pack orchestration (create or attach facility)

Still pack-only / not wired: questionnaires, schedules, clinical visits.

Associated Issue

Merge Checklist

  • Tests added/fixed
  • Update docs in /docs
  • Linting Complete
  • Any other necessary step

Only PR's with test cases included and passing lint and test pipelines will be reviewed

@ohcnetwork/care-backend-maintainers @ohcnetwork/care-backend-admins

@coderabbitai

coderabbitai Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Sep 8, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 629 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.65%. Comparing base (3c9f3c2) to head (c16aa1a).
⚠️ Report is 6 commits behind head on develop.

Files with missing lines Patch % Lines
care/fixtures/loaders/clinical_visits.py 0.00% 101 Missing ⚠️
care/fixtures/loaders/users.py 0.00% 74 Missing ⚠️
care/fixtures/loaders/inventory_helpers.py 0.00% 68 Missing ⚠️
care/fixtures/loaders/definitions.py 0.00% 55 Missing ⚠️
care/fixtures/scripts/load_pack.py 0.00% 54 Missing ⚠️
care/fixtures/loaders/foundation.py 0.00% 50 Missing ⚠️
care/fixtures/loaders/organizations.py 0.00% 43 Missing ⚠️
care/fixtures/loaders/facility.py 0.00% 42 Missing ⚠️
care/fixtures/base.py 0.00% 32 Missing ⚠️
care/fixtures/loaders/internal_transfers.py 0.00% 29 Missing ⚠️
... and 4 more
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3754      +/-   ##
===========================================
- Coverage    79.66%   77.65%   -2.02%     
===========================================
  Files          482      495      +13     
  Lines        23278    23924     +646     
  Branches      2426     2510      +84     
===========================================
+ Hits         18545    18578      +33     
- Misses        4132     4742     +610     
- Partials       601      604       +3     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…ures

- Introduced new loaders for organizations, patients, and users to streamline data loading processes.
- Updated existing loaders to utilize organization references for improved data integrity.
- Added JSON fixtures for organizations, patients, and users to facilitate testing and development.
- Removed unused supplier loading logic from external receipts loader to enhance clarity and maintainability.
…tures

- Introduced new loaders for questionnaires and encounters to enhance data management.
- Added JSON fixtures for questionnaires and encounters to facilitate testing and development.
- Updated existing user and organization loaders to include role references for improved data integrity.
- Enhanced the load_pack script to incorporate questionnaire loading and clinical encounter data handling.
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.

1 participant