MangoAutomation / ma-dashboards

Mango Module for creating custom HTML5 Dashboards using AngularJS
Other
6 stars 7 forks source link

Data point bulk edit - permissions input not supported #355

Closed terrypacker closed 3 years ago

terrypacker commented 4 years ago

I just bulk edited all the data points on the Dashboard Demo data source except for Temperature. I wanted to disable them. When I opened the bulk editor the enable toggle was set to off which confused me.

Then I toggled it on, then off and saved. The points were disabled but I saw this in the logs:

WARN  2020-08-17T12:15:34,448 (com.infiniteautomation.mango.rest.latest.ServerRestController.postClientError:377) - Client error
[user=admin, cause=, location=https://localhost:8443/ui/administration/data-sources/DS_997094, userAgent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36, language=en-US, date=2020-08-17T12:15:34.433-10:00, timezone=Pacific/Honolulu]
Error: Invalid roles
    at new e (https://localhost:8443/ui/mangoUi~ngMango~ngMangoServices.js?v=d03181106ef66e1b49ca:33:228748)
    at null (https://localhost:8443/ui/mangoUi~ngMango~ngMangoServices.js?v=d03181106ef66e1b49ca:33:229439)
    at new <anonymous> (https://localhost:8443/ui/mangoUi~ngMango~ngMangoServices.js?v=d03181106ef66e1b49ca:33:229432)
    at controller.render (https://localhost:8443/ui/mangoUi~ngMango.js?v=63a7d045f310530f3d60:1:441632)
    at Object.ngModelCtrl.ngModelCtrl.$render (https://localhost:8443/ui/mangoUi~ngMango.js?v=63a7d045f310530f3d60:1:440971)
    at Object.$processModelValue (https://localhost:8443/ui/mangoUi~ngMango~ngMangoServices.js?v=d03181106ef66e1b49ca:44:159499)
    at Object.$$setModelValue (https://localhost:8443/ui/mangoUi~ngMango~ngMangoServices.js?v=d03181106ef66e1b49ca:44:159769)
    at null (https://localhost:8443/ui/mangoUi~ngMango~ngMangoServices.js?v=d03181106ef66e1b49ca:44:154590)
    at c.$digest (https://localhost:8443/ui/mangoUi~ngMango~ngMangoServices.js?v=d03181106ef66e1b49ca:44:100565)
terrypacker commented 3 years ago

If editing multiple data points with different permissions this will likely fail on error. If editing data points with the same permissions it does work but sets them all to the same.