-
Notifications
You must be signed in to change notification settings - Fork 66
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
Bulk update team devices API (bulk move support only) #4336
Conversation
Includes fixes added in #4334 - will resolve any merge issues as required
Updates dropdown to permit disabled property Updates device actions mixin to handle devices moved out of app/instance
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4336 +/- ##
==========================================
+ Coverage 78.25% 78.33% +0.08%
==========================================
Files 292 292
Lines 13439 13558 +119
Branches 3014 3050 +36
==========================================
+ Hits 10517 10621 +104
- Misses 2922 2937 +15
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
NOTE: I mentioned in Eng Meeting that there was a sensible refactoring - that is the controller method flowfuse/forge/routes/api/device.js Lines 435 to 518 in f58bc20
There reason I was in two minds was related to one of our guys raising a concern about devices being reset when moved (even though they were in developer mode) and whether I would include or exclude that "feature". As it happens, the implementation of the bulk update is a refactoring of this original route (with obvious modifications for multiple device support) INCLUDING the switching of a device to As it happens, with the introduction of bulk move feature, the user can side step the unassignment when moving devices from application to application and thus the switching out of developer mode so it kinda becomes less of an issue In short, we can and should refactor the single version in the API Route to use the new controller method. Will raise an issue as a follow up. |
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.
One issue spotted.
@Steve-Mcl approved - I appreciate there are a few other PRs behind this. Will let you merge in the appropriate order. |
…se/flowfuse into 4290-bulk-move-devices-ui
Update docs and RBACs for new Bulk Move Ops
Bulk Move devices UI
|
closes #4335
Description
Adds backend API route for team devices bulk update:
test/unit/forge/routes/api/teamDevices_spec.js
PUT
/api/v1/teams/:teamId/devices/bulk
The route was debated in design phase in the issue but after much debate, I have stuck with the same verb and definition already established in the existing
devices
API (that are responsible for single device combined update / device move endpoint). More than happy to change this around if desired.Tests Added
Related Issue(s)
Owner #4335
Parent #4290
Checklist
flowforge.yml
?FlowFuse/helm
to update ConfigMap TemplateFlowFuse/CloudProject
to update values for Staging/ProductionLabels
area:migration
label