mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-09-11 10:46:25 +03:00
fix computed fields variable name in console (#3196)
This commit is contained in:
parent
8000652a5d
commit
a8fe0b6619
@ -20,7 +20,7 @@ import { loadInconsistentObjects } from '../Settings/Actions';
|
||||
import { filterInconsistentMetadataObjects } from '../Settings/utils';
|
||||
import globals from '../../../Globals';
|
||||
|
||||
import { COMPUTED_COLUMNS_SUPPORT } from '../../../helpers/versionUtils';
|
||||
import { COMPUTED_FIELDS_SUPPORT } from '../../../helpers/versionUtils';
|
||||
|
||||
import {
|
||||
fetchTrackedTableReferencedFkQuery,
|
||||
@ -61,7 +61,7 @@ const REQUEST_ERROR = 'ModifyTable/REQUEST_ERROR';
|
||||
|
||||
const useCompositeFnsNewCheck =
|
||||
globals.featuresCompatibility &&
|
||||
globals.featuresCompatibility[COMPUTED_COLUMNS_SUPPORT];
|
||||
globals.featuresCompatibility[COMPUTED_FIELDS_SUPPORT];
|
||||
|
||||
const compositeFnCheck = useCompositeFnsNewCheck
|
||||
? 'c'
|
||||
|
@ -18,7 +18,7 @@ import { showSuccessNotification } from '../../Common/Notification';
|
||||
|
||||
import { fetchTrackedFunctions } from '../DataActions';
|
||||
|
||||
import { COMPUTED_COLUMNS_SUPPORT } from '../../../../helpers/versionUtils';
|
||||
import { COMPUTED_FIELDS_SUPPORT } from '../../../../helpers/versionUtils';
|
||||
|
||||
import _push from '../push';
|
||||
|
||||
@ -187,7 +187,7 @@ const deleteFunctionSql = () => {
|
||||
|
||||
if (
|
||||
globals.featuresCompatibility &&
|
||||
globals.featuresCompatibility[COMPUTED_COLUMNS_SUPPORT]
|
||||
globals.featuresCompatibility[COMPUTED_FIELDS_SUPPORT]
|
||||
) {
|
||||
functionArgString +=
|
||||
'"' + inputArg.schema + '"' + '.' + '"' + inputArg.name + '"';
|
||||
|
@ -6,7 +6,7 @@ export const REMOTE_SCHEMA_TIMEOUT_CONF_SUPPORT =
|
||||
'remoteSchemaTimeoutConfSupport';
|
||||
export const TABLE_ENUMS_SUPPORT = 'tableEnumsSupport';
|
||||
export const EXISTS_PERMISSION_SUPPORT = 'existsPermissionSupport';
|
||||
export const COMPUTED_COLUMNS_SUPPORT = 'COMPUTED_COLUMNS_SUPPORT';
|
||||
export const COMPUTED_FIELDS_SUPPORT = 'computedFieldsSupport';
|
||||
|
||||
// list of feature launch versions
|
||||
const featureLaunchVersions = {
|
||||
@ -16,7 +16,7 @@ const featureLaunchVersions = {
|
||||
[REMOTE_SCHEMA_TIMEOUT_CONF_SUPPORT]: 'v1.0.0-beta.5',
|
||||
[TABLE_ENUMS_SUPPORT]: 'v1.0.0-beta.6',
|
||||
[EXISTS_PERMISSION_SUPPORT]: 'v1.0.0-beta.7',
|
||||
[COMPUTED_COLUMNS_SUPPORT]: 'v1.0.0-beta.8',
|
||||
[COMPUTED_FIELDS_SUPPORT]: 'v1.0.0-beta.8',
|
||||
};
|
||||
|
||||
export const checkValidServerVersion = version => {
|
||||
|
Loading…
Reference in New Issue
Block a user