Skip to content

Merges Patched from both #8421 and #8446#8447

Merged
AndyLow91 merged 154 commits intonightscout:devfrom
AndyLow91:pr-8421
Mar 16, 2026
Merged

Merges Patched from both #8421 and #8446#8447
AndyLow91 merged 154 commits intonightscout:devfrom
AndyLow91:pr-8421

Conversation

@AndyLow91
Copy link
Copy Markdown
Member

Merges Patched from both #8421 and @8446 and merged recent updates from v15.0.6

bewest and others added 30 commits January 19, 2026 13:09
Update project documentation and startup script for Nightscout v15.0.4, including Replit specific configurations like INSECURE_USE_HTTP=true and webpack bundling.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 748e831e-92ae-4927-9569-47665f47f29c
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 6e1d3764-af75-4a2b-a75f-f7252955326d
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/748e831e-92ae-4927-9569-47665f47f29c/FO8cDm7
Replit-Helium-Checkpoint-Created: true
Enhance `replit.md` to include comprehensive documentation on API endpoints (v1, v2, v3), authentication methods (API_SECRET, JWT), OpenAPI specs, Socket.IO channels, and environment variables.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 748e831e-92ae-4927-9569-47665f47f29c
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 759a1536-7b1b-4ce2-9972-168703ba4f7d
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ea4278b-5c6c-4065-9cb8-f1013771318d/748e831e-92ae-4927-9569-47665f47f29c/FO8cDm7
Replit-Helium-Checkpoint-Created: true
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 06715f81-f852-4156-8ab0-cf9e0aa3564d
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 79dc8047-74ae-47e7-85a6-8c7255d9603d
Create a new RFC document and associated JSON schemas defining an agentic control plane for automated insulin delivery systems, including event envelopes, capabilities models, delivery tracking, and conflict rules.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 06715f81-f852-4156-8ab0-cf9e0aa3564d
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 010cdc4a-2c86-4d2e-9768-bf2769a89953
Replit-Helium-Checkpoint-Created: true
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 06715f81-f852-4156-8ab0-cf9e0aa3564d
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: a40997df-4db2-4767-9c35-abb942a5fca2
Replit-Helium-Checkpoint-Created: true
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 0dc64f83-dd07-4193-899d-2998f5eb61c8
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 31a7d26d-5532-4bb7-90f2-0c00bf18017e
Replit-Helium-Checkpoint-Created: true
Create a proposal document detailing the current state of the test suite, dependency analysis, and a phased strategy for modernization, including migrating client tests to Jest.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 0dc64f83-dd07-4193-899d-2998f5eb61c8
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 560c5b85-bd12-4a58-bc27-d8f6612621a6
Replit-Helium-Checkpoint-Created: true
Update replit.md to include a new proposal for modernizing test infrastructure, detailing a three-phase strategy and critical dependency updates.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 0dc64f83-dd07-4193-899d-2998f5eb61c8
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 3fb6e201-20e1-4478-9e20-72faa517ec04
Replit-Helium-Checkpoint-Created: true
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 6bd7e260-440b-4cf7-bd4f-6c49f415222f
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 003afa1a-8cd2-4c59-81d5-c8169366a6cf
Replit-Helium-Checkpoint-Created: true
…ral goals

Revise the testing modernization proposal to include interview findings, a new three-track approach, and scope control guardrails.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 6bd7e260-440b-4cf7-bd4f-6c49f415222f
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: d3a329ea-f588-48b4-ab9f-72250d9f0d39
Replit-Helium-Checkpoint-Created: true
Revise testing modernization proposal to include UI modernization, architecture goals, and a three-track approach.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 6bd7e260-440b-4cf7-bd4f-6c49f415222f
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 6175529f-d563-44d9-a0d8-39ef3f387bd8
Replit-Helium-Checkpoint-Created: true
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 6faed36e-345f-45eb-8006-45dc67e8451e
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 8124194f-045a-4644-b523-2697d2284678
Replit-Helium-Checkpoint-Created: true
…ity measures

Corrects inaccuracies in the Security Audit, Architecture Overview, and Modernization Roadmap documentation regarding rate limiting, Node.js versions, and code examples.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 6faed36e-345f-45eb-8006-45dc67e8451e
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 207079d8-1a78-4ade-ad5c-d33397f8c775
Replit-Helium-Checkpoint-Created: true
Add a comprehensive system audit documentation section to replit.md, detailing findings on rate limiting, dependencies, bundle size, and Node.js support, along with a list of 9 audit documents.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 6faed36e-345f-45eb-8006-45dc67e8451e
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: a4473413-4cff-4847-b61c-6fc7e4d66b0a
Replit-Helium-Checkpoint-Created: true
Modify docs/modernization-roadmap.md to replace time intervals with effort (low/high) and complexity (straightforward/complicated) descriptions for each phase and task.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 6faed36e-345f-45eb-8006-45dc67e8451e
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 8aa5ae46-3944-4b57-9c5f-7f7df957037e
Replit-Helium-Checkpoint-Created: true
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 6faed36e-345f-45eb-8006-45dc67e8451e
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 02e98f82-c851-43a4-b518-90eccf9df206
Replit-Helium-Checkpoint-Created: true
Update architecture, security, and modernization documentation to clarify existing brute-force protection, introduce OIDC/OAuth2 integration plans, and address rate limiting gaps.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 6faed36e-345f-45eb-8006-45dc67e8451e
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 483af0ac-57e5-44ad-89c0-d2374643791a
Replit-Helium-Checkpoint-Created: true
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 6faed36e-345f-45eb-8006-45dc67e8451e
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 0a9ae46c-4b3a-4953-b56d-f33d485ea783
Replit-Helium-Checkpoint-Created: true
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: d9c34e72-a841-40c0-9e5f-c5e839501957
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 151d4417-e878-49d8-8040-5dcaf8a7da08
Replit-Helium-Checkpoint-Created: true
Add new sections for Pagination Metadata, Date Format Normalization, and Observability Plan to the API query normalization proposal document, and renumber existing sections accordingly.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: d9c34e72-a841-40c0-9e5f-c5e839501957
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 9d148101-339f-436a-bbbe-56da2f911abb
Replit-Helium-Checkpoint-Created: true
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: d9c34e72-a841-40c0-9e5f-c5e839501957
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 147a1f33-7ada-4bb0-b6c6-9c89c8c0f7dc
Replit-Helium-Checkpoint-Created: true
Replace timeline-based phases with complexity and risk ratings in the proposal document.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: d9c34e72-a841-40c0-9e5f-c5e839501957
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: aef39c0d-7cd4-4b3c-87f7-303fcc84a898
Replit-Helium-Checkpoint-Created: true
…ss_frequent_db_updates""

This reverts commit 2e65b1d.
Try to bring back nightscout#8026.
Provide some tests for the profile API.
Refactor `devicestatus.js` to use `async.eachSeries` for sequential processing and update WebSocket `dbAdd` handler to process array inputs sequentially, ensuring correct multi-document write support.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: fbbf36df-818c-4b8c-8760-4975515f38e6
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 522116f1-cf99-4504-9c93-bc47b4276585
Replit-Helium-Checkpoint-Created: true
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: fbbf36df-818c-4b8c-8760-4975515f38e6
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 8a0072a5-b8d3-4d98-977e-5f56d3d1d195
Replit-Helium-Checkpoint-Created: true
bewest and others added 12 commits January 20, 2026 01:49
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 605cec52-e52a-4520-8af0-466d9c971344
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: f9cead8e-29fd-4580-8c21-fa2939d21355
Replit-Helium-Checkpoint-Created: true
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 605cec52-e52a-4520-8af0-466d9c971344
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 82b98339-21a6-4b84-abd0-071cc5861ef7
Replit-Helium-Checkpoint-Created: true
…t coordinates

Update tests in `tests/reports.test.js` to assert the presence of specific fill colors for chart elements rather than exact positional coordinates, improving test robustness against minor rendering variations.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 605cec52-e52a-4520-8af0-466d9c971344
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: 293138b2-b045-4ead-a559-d330e00bdd95
Replit-Helium-Checkpoint-Created: true
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 605cec52-e52a-4520-8af0-466d9c971344
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: b141af6b-dc36-41d1-9b8c-70b60b2798e6
Replit-Helium-Checkpoint-Created: true
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 605cec52-e52a-4520-8af0-466d9c971344
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 052f1302-557b-4bfe-a808-973d737e88b1
Replit-Helium-Checkpoint-Created: true
Updates package.json to include `test:stress` scripts and adds an optional `stress-tests` job to the GitHub Actions CI workflow for concurrent write tests.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 605cec52-e52a-4520-8af0-466d9c971344
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Event-Id: fde695de-720c-4bfb-b5f1-ea6710172a09
Replit-Helium-Checkpoint-Created: true
Update replit.md to document new stress test scripts and reorganize test descriptions.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 605cec52-e52a-4520-8af0-466d9c971344
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: dfcb132d-cfe2-469f-8659-b15111592030
Replit-Helium-Checkpoint-Created: true
It needs a small delay to test with.
@AndyLow91 AndyLow91 mentioned this pull request Mar 6, 2026
@bewest
Copy link
Copy Markdown
Member

bewest commented Mar 6, 2026

Nice! Thanks! 🎈

Comment thread tests/query.test.js
(typeof opts.date).should.equal('undefined')
});

it('should keep non-ObjectId _id queries as strings', function ( ) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this the correct requirement, @copilot?

Copilot AI added a commit that referenced this pull request Mar 8, 2026
Co-authored-by: bewest <394179+bewest@users.noreply.github.com>
sergev-art pushed a commit to sergev-art/cgm-remote-monitor that referenced this pull request Mar 10, 2026
Co-authored-by: bewest <394179+bewest@users.noreply.github.com>
@AndyLow91 AndyLow91 merged commit 1231ec6 into nightscout:dev Mar 16, 2026
8 checks passed
bewest added a commit that referenced this pull request Mar 18, 2026
Add array normalization to food API POST endpoint:
- API layer: normalize single object to array (like activity/profile)
- Storage layer: use replaceOne loop with upsert (same as activity pattern)
- Storage layer: accept both single object and array for backward compat

Previously POST /api/food/ with array input would crash:
  insertOne([{...}]) → MongoDB error

Now supports both single object and array input consistently.
Response format is now array (matching treatments pattern).

Fixes #8447

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

2 participants