-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement API for Device Groups #3157
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #3157 +/- ##
==========================================
+ Coverage 40.36% 40.76% +0.39%
==========================================
Files 592 603 +11
Lines 21666 22516 +850
Branches 5214 5441 +227
==========================================
+ Hits 8746 9179 +433
- Misses 12920 13337 +417
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Co-authored-by: Pez Cuckow <email@pezcuckow.com>
Following answers to some questions I had, I have agreed to do the following:
Therefore, I will switch to draft until this is implemented. Once done and back out of draft, I will re-request reviews. Thanks. |
Re-reading the discussion, this feature should only be available to Enterprise Teams on the platform. This means it has to be added as a feature flag on the TeamType as well. |
…abled Add device group feature flag in TeamType
…for-pipeline-stage-deploy Add missing audit logger for pipeline stage deploy
…peline-stage Assign device group to pipeline stage
Implement Device Groups frontend
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs renaming as we have more recent migrations already merged.
Ideally we'd have all of the DeviceGroup content in the ee code tree - however as this adds a relation between Device and DeviceGroup, that isn't possible to do without more refactoring than we can accommodate now. I have made one minor change to move a DeviceGroup specific function from |
Add device group audit loggers
Description
DB Schema (Updated following discussion here)
(both the migration and a fresh start generate the exact same DDL)
For #2997
API End points added to
forge/routes/api/applicationDeviceGroup.js
:GET /api/v1/applications/:applicationId/devicegroups
DeviceGroups
in this applicationPOST /api/v1/applications/:applicationId/devicegroups
PUT /api/v1/applications/:applicationId/devicegroups/:groupId
body: { name, [description] }
GET /api/v1/applications/:applicationId/devicegroups/:groupId
PATCH /api/v1/applications/:applicationId/devicegroups/:groupId
body: { add: [deviceIds], remove: [deviceIds] }
body: { set: [deviceIds] }
DELETE /api/v1/applications/:applicationId/devicegroups/:groupId
Tests: UPDATED 2023-12-08
Related Issue(s)
Checklist
flowforge.yml
?FlowFuse/helm
to update ConfigMap TemplateFlowFuse/CloudProject
to update values for Staging/ProductionLabels
backport
labelarea:migration
label