Repository navigation
feat(availability): platform and clinic closure calendar that blocks slot generation - #234
Philcsweb3 wants to merge 6 commits into
Conversation
|
@Philcsweb3 CI is failing on this branch against the latest Backend (typecheck + test + build)
|
|
@Philcsweb3 This PR now has merge conflicts with git fetch upstream # upstream = https://github.com/DocForum/docforum-core.git
git rebase upstream/main
# resolve the conflicts, re-run the tests, then:
git push --force-with-leaseThe usual culprits are shared docs like Automated message. It won't repeat unless the PR conflicts again after your next push. |
dd9a7f6 to
de09421
Compare
🚨 Malware scan: needs security review@Philcsweb3 The automated scan of
8 lower-severity note(s) for the reviewer
If this is a false positive, reply here explaining why and a maintainer will clear it. If it isn't intentional, remove it and push again: the scan re-runs on every push and updates this comment. |
|
Warning Possible malicious code: please review before merging. An automated security scan flagged files in this pull request that appear to contain malicious code. Code like this can run automatically when a project is opened in an editor or its dependencies are installed, so it could compromise the machine of anyone who checks out this branch. Automated scans can be wrong, so this may be a false positive. Maintainers: please review the flagged files carefully before merging, on GitHub in your browser rather than by checking out the branch. The malicious part is often hidden far off to the right of an ordinary-looking line, so scroll sideways through each file. @Philcsweb3: this pull request adds or changes these files, possibly without your knowledge. Malware like this spreads by adding itself to repositories on machines it has infected, so your machine might be compromised. Please undo these changes in this pull request, and don't open or run other projects on that machine until you've checked it. Flagged files at commit Only merge once you're confident these files are safe. ℹ️ Posted automatically by Drips Wave. Questions? Contact support@drips.network. |
|
Closing: the latest force-push (2026-11-10) adds |
Overview
This PR adds the availability-module groundwork for a platform- and facility-scoped closure calendar that blocks slot generation and reconciles already-open slots when a closure is created. It introduces validation for closure periods, repository access for reading/writing closures and querying affected slots/bookings, and service logic that skips closed periods during generation and reports (never silently cancels) booked appointments that fall inside a new closure.
Related Issue
Changes
🗓️ Closure Calendar — Availability Module
[MODIFY]
backend/src/modules/availability/validation.ts[MODIFY]
backend/src/modules/availability/repositories/index.tsClosurePeriodrecords scoped to platform or facility.[MODIFY]
backend/src/modules/availability/services/index.tsVerification Results
ClosurePeriodmodel with platform/facility scope, date range, reasonNotes
This PR is scoped to the availability module's validation, repository, and service layers. Admin CRUD endpoints, the client-facing list endpoint, the Prisma
ClosurePeriodschema entry, and the concurrency integration test are not part of the modified files here and remain to be wired up / documented in follow-up work.ARCHITECTURE.md§4,docs/api/README.md, andROADMAP.mdupdates are likewise not included in this change set.Closes #131