This commit is contained in:
2019-11-28 23:30:25 +00:00
parent 8e8406ba87
commit f1128e722e
5 changed files with 12 additions and 8 deletions

View File

@@ -26,6 +26,8 @@ DO CLIENT STUFF NOW COME BACK TO THIS STUFF LATER
TODO: 2019-06-07 10:47:57.8894|WARN|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|The CORS protocol does not allow specifying a wildcard (any) origin and credentials at the same time. Configure the policy by listing individual origins if credentials needs to be supported. TODO: 2019-06-07 10:47:57.8894|WARN|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|The CORS protocol does not allow specifying a wildcard (any) origin and credentials at the same time. Configure the policy by listing individual origins if credentials needs to be supported.
2 2
TODO: DO I NOT HAVE AN ERASE DB ROUTE? TODO: DO I NOT HAVE AN ERASE DB ROUTE?
- wouldn't that make the below possible?? - wouldn't that make the below possible??
TODO: NEEDS A THINK, SOME CHANGES REQUIRE DB ERASURE BEFORE STARTUP TODO: NEEDS A THINK, SOME CHANGES REQUIRE DB ERASURE BEFORE STARTUP

View File

@@ -27,13 +27,16 @@ namespace AyaNova.Biz
public static List<FormField> FormFields(string key) public static List<FormField> FormFields(string key)
{ {
/*
***************************** WARNING: Be careful here, if a standard field is hideable and also it's DB SCHEMA is set to NON NULLABLE then the CLIENT end needs to set a default
***************************** Otherwise the hidden field can't be set and the object can't be saved EVER
*/
List<FormField> l = new List<FormField>(); List<FormField> l = new List<FormField>();
switch (key) switch (key)
{ {
case WIDGET_FORM_KEY: case WIDGET_FORM_KEY:
l.Add(new FormField("WidgetName", "Name", false, false));//is not shared localized text key and not hideable as it is in the validation rules for widget l.Add(new FormField("WidgetName", "Name", false, false));//is not shared localized text key and not hideable as it is in the validation rules for widget
l.Add(new FormField("WidgetSerial", "Serial"));//not in validation rules...you get the idea l.Add(new FormField("WidgetSerial", "Serial"));//not in validation rules BUT, is HIDEABLE and is set to NOT NULLABLE in the schema so this field MUST MUST have a default value in client
l.Add(new FormField("WidgetDollarAmount", "DollarAmount")); l.Add(new FormField("WidgetDollarAmount", "DollarAmount"));
l.Add(new FormField("WidgetCount", "Count")); l.Add(new FormField("WidgetCount", "Count"));
l.Add(new FormField("WidgetRoles", "Roles")); l.Add(new FormField("WidgetRoles", "Roles"));

View File

@@ -6,11 +6,7 @@ using Microsoft.AspNetCore.JsonPatch;
using EnumsNET; using EnumsNET;
using AyaNova.Util; using AyaNova.Util;
using AyaNova.Api.ControllerHelpers; using AyaNova.Api.ControllerHelpers;
using AyaNova.Biz;
using AyaNova.Models; using AyaNova.Models;
using System.Collections.Generic;
using Microsoft.Extensions.Logging;
namespace AyaNova.Biz namespace AyaNova.Biz
{ {

View File

@@ -41,6 +41,9 @@ namespace AyaNova.Util
Other indexes should be created with care and after a huge load and integration test periodically look for unused indexes and see how they are performing Other indexes should be created with care and after a huge load and integration test periodically look for unused indexes and see how they are performing
see core-performance.txt for the relevant queries to view this info see core-performance.txt for the relevant queries to view this info
***************************** WARNING: Be careful here, if a standard field is hideable and also it's DB SCHEMA is set to NON NULLABLE then the CLIENT end needs to set a default
***************************** Otherwise the hidden field can't be set and the object can't be saved EVER
*/ */
static int startingSchema = -1; static int startingSchema = -1;