From d228fedf5d7a012c4b496437260f8178ff3b89f1 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 13 Jan 2020 22:36:39 +0000 Subject: [PATCH] --- devdocs/specs/core-display-format-template-system.txt | 4 ++++ devdocs/todo.txt | 4 +--- server/AyaNova/ControllerHelpers/ListOptions.cs | 4 ++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/devdocs/specs/core-display-format-template-system.txt b/devdocs/specs/core-display-format-template-system.txt index e6e6fb3b..ead3b3d8 100644 --- a/devdocs/specs/core-display-format-template-system.txt +++ b/devdocs/specs/core-display-format-template-system.txt @@ -39,6 +39,10 @@ Server - Incurrs more computing ops at the server but bandwidth is more expensive than server power all around - Clients could be shitty and slow, this elminates that prospect - Easier to code in c# than in javascript! ;) + - PICKLISTS and RIGHTS + - Initially I had picklist objects with just name and id and anyone could fetch them of any role, however, this isn't right and + - I'm leaving the rights up to the case by case basis and will address it when the client dev drives a requirement for it + - I'm thinking if people don't want a field exposed in mini list then don't put it into the template Back AND front end - Need to handle changes in fields gracefully i.e. a new field added in an update, a field removed in an update cleans out the template when detected etc diff --git a/devdocs/todo.txt b/devdocs/todo.txt index 5cfd1673..2284cff2 100644 --- a/devdocs/todo.txt +++ b/devdocs/todo.txt @@ -20,9 +20,7 @@ REALLY MAKING MORE PROGRESS WHEN CLIENT DEV DRIVES BACKEND DEV, STICK TO THAT!! ----------------------- GRID LISTS TODO NOW: - - Turn PagingOptions object into ListOptions object - - Add list format option ("mini"=true thing) to ListOptions object - - It's prescence with mini=true means that the picklist format is returned + - Combine PickList route and WidgetList route into single "List" route with an internal nameof "WidgetList" - if mini=true then it sends back the two column result templated - Otherwise it sends back the full list (templated) diff --git a/server/AyaNova/ControllerHelpers/ListOptions.cs b/server/AyaNova/ControllerHelpers/ListOptions.cs index 58e76424..c63078e4 100644 --- a/server/AyaNova/ControllerHelpers/ListOptions.cs +++ b/server/AyaNova/ControllerHelpers/ListOptions.cs @@ -20,8 +20,12 @@ namespace AyaNova.Api.ControllerHelpers //Data filter id to use with this list query //0 or less means no filter + [FromQuery] public long DataFilterId { get; set; } + [FromQuery] + public bool Mini { get; set; } + }