Skip to content

backend support for tide dashboard 1.5 - #259

Open
ewollesen wants to merge 9 commits into
masterfrom
eric-filters-for-tide
Open

backend support for tide dashboard 1.5 #259
ewollesen wants to merge 9 commits into
masterfrom
eric-filters-for-tide

Conversation

@ewollesen

@ewollesen ewollesen commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

A handful of fixes in addition to the new requirements needed to support TIDE dashboard 1.5.

This has been force pushed. Sorry. :/

It has consumed the changes previously in #227, #250, and #251.

BACK-4175
BACK-4251
BACK-4524
BACK-4552

@ewollesen
ewollesen force-pushed the eric-filters-for-tide branch from 05221f0 to 3254fce Compare August 11, 2026 12:30
@ewollesen

Copy link
Copy Markdown
Contributor Author

/deploy qa4

@tidebot

tidebot commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

ewollesen updated values.yaml file in qa4

@tidebot

tidebot commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

ewollesen updated flux policies file in qa4

@tidebot

tidebot commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

ewollesen deployed clinic eric-filters-for-tide branch to qa4 namespace

@ewollesen
ewollesen force-pushed the eric-filters-for-tide branch from 3254fce to 10b18d7 Compare August 11, 2026 13:14
@ewollesen
ewollesen force-pushed the eric-support-fe-tide-back-4524 branch from c183991 to 90144ef Compare August 11, 2026 13:14
@ewollesen
ewollesen requested a review from toddkazakov August 14, 2026 05:56
If a patient in a tide category had a recently disconnected device, it
was possible they could appear in both categories.
@ewollesen
ewollesen force-pushed the eric-filters-for-tide branch 2 times, most recently from ffc77a0 to 57a11ba Compare August 26, 2026 15:32
@ewollesen
ewollesen changed the base branch from eric-support-fe-tide-back-4524 to master August 26, 2026 16:14
@ewollesen ewollesen changed the title List Patients endpoint filter fixes and limits backend support for tide dashboard 1.5 Aug 26, 2026

func (r *repository) generateListFilterQuery(filter *patients.Filter) bson.M {
// ZeroValuesSentinel in a patient-list id filter selects patients with no values assigned.
const ZeroValuesSentinel = "_"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This was already being done, but now we're just making it explicit. A matching change is made in TidepoolApi to document what was already happening.

- Hide the demo user from the TIDE report.

- Remove some duplicate AfterEach blocks and resultIds blocks in
  tests.
This filter was being applied on the frontend anyway, but by applying
it on the backend, the frontend receives more usable patients to
display (i.e. it won't be filtering out half the patients it
receives). This is important because there's a limit of 50 patients
returned by the backend for performance reasons.

This choice to show only Dexcom patients was made originally and
approved by product.

This Dexcom-specific limitation will be going away in the future when
the connection issues dashboard is deployed.

BACK-4524
Previously the spec indicated that floating point parameter values for
List Patients could include unlimited precision. However, this
unlimited precision was not honored by the backend clinic service,
which limited the values to 2 decimal places.

In addition, the filter denied several common use cases, such as `7`
would be rejected for not having a mantissa, while `10.7` would be
rejected for having an exponent of more than a single digit.

The spec now allows floating point values to have up to 10 digits
their exponent and mantissa each respectively. Integers can be
specified.

BACK-4552
The two concepts are very similar, so making them operate as similarly
as possible makes good sense. In this case we're making the definition
of sites in the TIDE report look more like tags, but making the
Tide.Config response of tags behave more like sites.
@ewollesen
ewollesen force-pushed the eric-filters-for-tide branch from 57a11ba to 2e52283 Compare September 2, 2026 12:02

@darinkrauss darinkrauss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

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