From bbab96033ac232e157e7a036df68ac159eaed89a Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 11 Feb 2020 00:04:50 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 8a3a41a8..1f536966 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -47,6 +47,16 @@ SHELL / NAV / MENUS / LAYOUT TODO: LOCALIZATION - TODO ACTIONS + - TODO: Flag enums are a pain because they can't be re-hydrated back into their bitwise combos in the Client UI (without some math I don't know or care to find out) + - If I take roles out of widget and make that something basic enum, maybe I don't need to do the changes below but can turn a user roles into an array for edting in the client? + - i.e. fake it as if it's an array when needed that way? + - Or fuck it just make it simple array and ditch the bitwise flags, what are we really saving anyway? + - perhaps the easy thing to do is store them as an array of values instead of a single value, it's really not any amount of data to matter anyway and much easier to deal with + - So instead of 123123 for a combo of values just have [2,32,64] + - If do this change then revert the enums from being flags at the server into just an array of selections from a 1 increment enum list of roles + - i.e. No role=0, 1=BizAdminLimited, 2=xxxx, 3=xxxx etc + - MOdify server code to handle roles this way + - Modify Widget to use some other enum instead of roles for testing purposes, maybe usertype or something, whatever doesn't exactly matter, just to test shit out - DataTable Need enum translator in it's own class or maybe part of locale or uses locale I guess - DataTable Editing and saving a widget makes it disappear from list, the default sort order sb by record ID so they stay in same order