Skip to content

Track provision status on network locations to limit visibility#14746

Draft
bjester wants to merge 4 commits into
learningequality:developfrom
bjester:unprovisioned-selection
Draft

Track provision status on network locations to limit visibility#14746
bjester wants to merge 4 commits into
learningequality:developfrom
bjester:unprovisioned-selection

Conversation

@bjester
Copy link
Copy Markdown
Member

@bjester bjester commented May 21, 2026

Summary

  • Adds a new field is_provisioned on Network Locations to track whether a device is provisioned
  • Updates the device info data structure and API to report whether it's provisioned (now v4)
  • Updates network location processing to set is_provisioned falling back to a facilities query if the device's info does not contain the key
  • Filters out unprovisioned devices from the list API when queried with syncable=1 flag (note: this still allows them to show up in content import flows)

References

closes #14726

Reviewer guidance

  1. Run 2 or more devices, one of them not yet provisioned
  2. Verify the unprovisioned devices do not show up in device selection from other devices
  3. Verify that once the device is provisioned, it shows up, without needing to restart Kolibri

AI usage

Implemented the changes myself, then allowed AI to add tests to cover my changes. I requested more coverage upon review of the tests.

@github-actions github-actions Bot added DEV: backend Python, databases, networking, filesystem... SIZE: medium labels May 21, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 21, 2026

@bjester bjester force-pushed the unprovisioned-selection branch from 4ccdfb0 to 68e43de Compare May 21, 2026 21:36
@bjester bjester changed the title [WIP] Unprovisioned selection Track provision status on network locations to limit visibility May 21, 2026
@bjester bjester marked this pull request as ready for review May 21, 2026 21:43
@bjester bjester force-pushed the unprovisioned-selection branch from 68e43de to 80ccc9a Compare May 21, 2026 22:00
@bjester bjester force-pushed the unprovisioned-selection branch from 80ccc9a to d619c06 Compare May 21, 2026 22:39
@bjester bjester marked this pull request as draft May 21, 2026 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DEV: backend Python, databases, networking, filesystem... SIZE: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Device > Channels - Unprovisioned devices should not be shown in the "Select device" modal

1 participant