mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 08:36:01 +00:00
chore: Sync OSS to EE (#5017)
* chore: sync missing changes * fix: wrong imports * fix: multiple definitions & non-dynamic imports * fix: reduce duration for pw * chore(nix/package/pnpmDeps): bump hash --------- Co-authored-by: mertmit <mertmit99@gmail.com> Co-authored-by: auto walle <auto@sinanmohd.com>
This commit is contained in:
committed by
GitHub
parent
87bd3c98ee
commit
671a0f0e07
@@ -110,7 +110,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
|
|
||||||
pnpmDeps = pnpm.fetchDeps {
|
pnpmDeps = pnpm.fetchDeps {
|
||||||
inherit (finalAttrs) pname version src;
|
inherit (finalAttrs) pname version src;
|
||||||
hash = "sha256-eozNyjEijnE1SfwF0dU0eos1/fu1hNP3Rx/GFPC/3Ts=";
|
hash = "sha256-utjGiL8EuNpnlG2oGIQ9rJ0qeCvSwLyl49EHK44MVKo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|||||||
@@ -4,6 +4,6 @@ export default defineNuxtPlugin((nuxtApp) => {
|
|||||||
nuxtApp.vueApp.component(AntMenu.name, AntMenu)
|
nuxtApp.vueApp.component(AntMenu.name, AntMenu)
|
||||||
nuxtApp.vueApp.component(AntModal.name, AntModal)
|
nuxtApp.vueApp.component(AntModal.name, AntModal)
|
||||||
message.config({
|
message.config({
|
||||||
duration: +(process.env.ANT_MESSAGE_DURATION ?? 8),
|
duration: +(process.env.ANT_MESSAGE_DURATION ?? (ncIsPlaywright() ? 1 : 8)),
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -9400,4 +9400,4 @@ class BaseModelSqlv2 implements IBaseModelSqlV2 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export { BaseModelSqlv2, getAs };
|
export { BaseModelSqlv2 };
|
||||||
|
|||||||
@@ -6,11 +6,8 @@ import type {
|
|||||||
HandlerOptions,
|
HandlerOptions,
|
||||||
} from '~/db/field-handler/field-handler.interface';
|
} from '~/db/field-handler/field-handler.interface';
|
||||||
import type { Column, Filter } from '~/models';
|
import type { Column, Filter } from '~/models';
|
||||||
import { getColumnName } from '~/db/BaseModelSqlv2';
|
import { getAs, getColumnName } from '~/helpers/dbHelpers';
|
||||||
import {
|
import { ncIsStringHasValue } from '~/db/field-handler/utils/handlerUtils';
|
||||||
getAs,
|
|
||||||
ncIsStringHasValue,
|
|
||||||
} from '~/db/field-handler/utils/handlerUtils';
|
|
||||||
import { sanitize } from '~/helpers/sqlSanitize';
|
import { sanitize } from '~/helpers/sqlSanitize';
|
||||||
|
|
||||||
export class GenericFieldHandler implements FieldHandlerInterface {
|
export class GenericFieldHandler implements FieldHandlerInterface {
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
import { RelationTypes } from 'nocodb-sdk';
|
import { RelationTypes } from 'nocodb-sdk';
|
||||||
import {
|
|
||||||
getAlias,
|
|
||||||
negatedMapping,
|
|
||||||
nestedConditionJoin,
|
|
||||||
} from '../../utils/handlerUtils';
|
|
||||||
import type CustomKnex from '~/db/CustomKnex';
|
import type CustomKnex from '~/db/CustomKnex';
|
||||||
import type { Column, LinkToAnotherRecordColumn, LookupColumn } from '~/models';
|
import type { Column, LinkToAnotherRecordColumn, LookupColumn } from '~/models';
|
||||||
import type { HandlerOptions } from '~/db/field-handler/field-handler.interface';
|
import type { HandlerOptions } from '~/db/field-handler/field-handler.interface';
|
||||||
import type { Knex } from '~/db/CustomKnex';
|
import type { Knex } from '~/db/CustomKnex';
|
||||||
import type { Filter } from '~/models';
|
import type { Filter } from '~/models';
|
||||||
|
import {
|
||||||
|
getAlias,
|
||||||
|
negatedMapping,
|
||||||
|
nestedConditionJoin,
|
||||||
|
} from '~/db/field-handler/utils/handlerUtils';
|
||||||
import { GenericFieldHandler } from '~/db/field-handler/handlers/generic';
|
import { GenericFieldHandler } from '~/db/field-handler/handlers/generic';
|
||||||
|
|
||||||
export class LookupGeneralHandler extends GenericFieldHandler {
|
export class LookupGeneralHandler extends GenericFieldHandler {
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
import { RelationTypes } from 'nocodb-sdk';
|
import { RelationTypes } from 'nocodb-sdk';
|
||||||
import { getAlias, negatedMapping } from '../../utils/handlerUtils';
|
|
||||||
import type CustomKnex from '~/db/CustomKnex';
|
import type CustomKnex from '~/db/CustomKnex';
|
||||||
import type { Column, LinkToAnotherRecordColumn } from '~/models';
|
import type { Column, LinkToAnotherRecordColumn } from '~/models';
|
||||||
import type { HandlerOptions } from '~/db/field-handler/field-handler.interface';
|
import type { HandlerOptions } from '~/db/field-handler/field-handler.interface';
|
||||||
import type { Knex } from '~/db/CustomKnex';
|
import type { Knex } from '~/db/CustomKnex';
|
||||||
|
import {
|
||||||
|
getAlias,
|
||||||
|
negatedMapping,
|
||||||
|
} from '~/db/field-handler/utils/handlerUtils';
|
||||||
import { Filter } from '~/models';
|
import { Filter } from '~/models';
|
||||||
import { GenericFieldHandler } from '~/db/field-handler/handlers/generic';
|
import { GenericFieldHandler } from '~/db/field-handler/handlers/generic';
|
||||||
|
|
||||||
|
|||||||
@@ -4,9 +4,6 @@ import type { IBaseModelSqlV2 } from 'src/db/IBaseModelSqlV2';
|
|||||||
import type { Column, LinkToAnotherRecordColumn, LookupColumn } from '~/models';
|
import type { Column, LinkToAnotherRecordColumn, LookupColumn } from '~/models';
|
||||||
import { Filter } from '~/models';
|
import { Filter } from '~/models';
|
||||||
|
|
||||||
export function getAs(column: Column) {
|
|
||||||
return column.asId || column.id;
|
|
||||||
}
|
|
||||||
export function ncIsStringHasValue(val: string | undefined | null) {
|
export function ncIsStringHasValue(val: string | undefined | null) {
|
||||||
return val !== '' && !ncIsUndefined(val) && !ncIsNull(val);
|
return val !== '' && !ncIsUndefined(val) && !ncIsNull(val);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import formulaQueryBuilderv2 from '~/db/formulav2/formulaQueryBuilderv2';
|
|||||||
import genRollupSelectv2 from '~/db/genRollupSelectv2';
|
import genRollupSelectv2 from '~/db/genRollupSelectv2';
|
||||||
import { getAliasGenerator } from '~/utils';
|
import { getAliasGenerator } from '~/utils';
|
||||||
import { NcError } from '~/helpers/catchError';
|
import { NcError } from '~/helpers/catchError';
|
||||||
import { getAs } from '~/db/BaseModelSqlv2';
|
import { getAs } from '~/helpers/dbHelpers';
|
||||||
|
|
||||||
const LOOKUP_VAL_SEPARATOR = '___';
|
const LOOKUP_VAL_SEPARATOR = '___';
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import getAst from '~/helpers/getAst';
|
|||||||
import { PagedResponseImpl } from '~/helpers/PagedResponse';
|
import { PagedResponseImpl } from '~/helpers/PagedResponse';
|
||||||
import { getColumnByIdOrName } from '~/helpers/dataHelpers';
|
import { getColumnByIdOrName } from '~/helpers/dataHelpers';
|
||||||
import NcConnectionMgrv2 from '~/utils/common/NcConnectionMgrv2';
|
import NcConnectionMgrv2 from '~/utils/common/NcConnectionMgrv2';
|
||||||
import { replaceDynamicFieldWithValue } from '~/db/BaseModelSqlv2';
|
import { replaceDynamicFieldWithValue } from '~/helpers/dbHelpers';
|
||||||
import { Filter } from '~/models';
|
import { Filter } from '~/models';
|
||||||
import { IJobsService } from '~/modules/jobs/jobs-service.interface';
|
import { IJobsService } from '~/modules/jobs/jobs-service.interface';
|
||||||
import { DatasService } from '~/services/datas.service';
|
import { DatasService } from '~/services/datas.service';
|
||||||
|
|||||||
Reference in New Issue
Block a user