fix computed fields variable name in console (#3196)

This commit is contained in:
Rikin Kachhia 2019-10-22 11:33:06 +05:30 committed by GitHub
parent 8000652a5d
commit a8fe0b6619
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -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'

View File

@ -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 + '"';

View File

@ -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 => {