Merge branch 'master' into BUDI-8986/validate-datasource-setting-on-tables
This commit is contained in:
commit
0ae0141b26
|
@ -293,7 +293,7 @@
|
||||||
type: RowSelector,
|
type: RowSelector,
|
||||||
props: {
|
props: {
|
||||||
row: inputData["oldRow"] || {
|
row: inputData["oldRow"] || {
|
||||||
tableId: inputData["row"].tableId,
|
tableId: inputData["row"]?.tableId,
|
||||||
},
|
},
|
||||||
meta: {
|
meta: {
|
||||||
fields: inputData["meta"]?.oldFields || {},
|
fields: inputData["meta"]?.oldFields || {},
|
||||||
|
|
|
@ -9,3 +9,4 @@ export {
|
||||||
lowercase,
|
lowercase,
|
||||||
isBuilderInputFocused,
|
isBuilderInputFocused,
|
||||||
} from "./helpers"
|
} from "./helpers"
|
||||||
|
export * as featureFlag from "./featureFlags"
|
||||||
|
|
|
@ -6,6 +6,7 @@ import { findComponentsBySettingsType } from "@/helpers/screen"
|
||||||
import { DatasourceType, Screen } from "@budibase/types"
|
import { DatasourceType, Screen } from "@budibase/types"
|
||||||
import { queries } from "./queries"
|
import { queries } from "./queries"
|
||||||
import { views } from "./views"
|
import { views } from "./views"
|
||||||
|
import { featureFlag } from "@/helpers"
|
||||||
|
|
||||||
function reduceBy<TItem extends {}, TKey extends keyof TItem>(
|
function reduceBy<TItem extends {}, TKey extends keyof TItem>(
|
||||||
key: TKey,
|
key: TKey,
|
||||||
|
@ -38,6 +39,9 @@ export const screenComponentErrors = derived(
|
||||||
string,
|
string,
|
||||||
string[]
|
string[]
|
||||||
> => {
|
> => {
|
||||||
|
if (!featureFlag.isEnabled("CHECK_SCREEN_COMPONENT_SETTINGS_ERRORS")) {
|
||||||
|
return {}
|
||||||
|
}
|
||||||
function getInvalidDatasources(
|
function getInvalidDatasources(
|
||||||
screen: Screen,
|
screen: Screen,
|
||||||
datasources: Record<string, any>
|
datasources: Record<string, any>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
export enum FeatureFlag {
|
export enum FeatureFlag {
|
||||||
USE_ZOD_VALIDATOR = "USE_ZOD_VALIDATOR",
|
USE_ZOD_VALIDATOR = "USE_ZOD_VALIDATOR",
|
||||||
|
CHECK_SCREEN_COMPONENT_SETTINGS_ERRORS = "CHECK_SCREEN_COMPONENT_SETTINGS_ERRORS",
|
||||||
|
|
||||||
// Account-portal
|
// Account-portal
|
||||||
DIRECT_LOGIN_TO_ACCOUNT_PORTAL = "DIRECT_LOGIN_TO_ACCOUNT_PORTAL",
|
DIRECT_LOGIN_TO_ACCOUNT_PORTAL = "DIRECT_LOGIN_TO_ACCOUNT_PORTAL",
|
||||||
|
@ -7,6 +8,7 @@ export enum FeatureFlag {
|
||||||
|
|
||||||
export const FeatureFlagDefaults = {
|
export const FeatureFlagDefaults = {
|
||||||
[FeatureFlag.USE_ZOD_VALIDATOR]: false,
|
[FeatureFlag.USE_ZOD_VALIDATOR]: false,
|
||||||
|
[FeatureFlag.CHECK_SCREEN_COMPONENT_SETTINGS_ERRORS]: false,
|
||||||
|
|
||||||
// Account-portal
|
// Account-portal
|
||||||
[FeatureFlag.DIRECT_LOGIN_TO_ACCOUNT_PORTAL]: false,
|
[FeatureFlag.DIRECT_LOGIN_TO_ACCOUNT_PORTAL]: false,
|
||||||
|
|
Loading…
Reference in New Issue