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:
github-actions[bot]
2025-03-28 04:09:35 +03:00
committed by GitHub
parent 87bd3c98ee
commit 671a0f0e07
9 changed files with 16 additions and 19 deletions

View File

@@ -110,7 +110,7 @@ stdenv.mkDerivation (finalAttrs: {
pnpmDeps = pnpm.fetchDeps {
inherit (finalAttrs) pname version src;
hash = "sha256-eozNyjEijnE1SfwF0dU0eos1/fu1hNP3Rx/GFPC/3Ts=";
hash = "sha256-utjGiL8EuNpnlG2oGIQ9rJ0qeCvSwLyl49EHK44MVKo=";
};
meta = {

View File

@@ -4,6 +4,6 @@ export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.component(AntMenu.name, AntMenu)
nuxtApp.vueApp.component(AntModal.name, AntModal)
message.config({
duration: +(process.env.ANT_MESSAGE_DURATION ?? 8),
duration: +(process.env.ANT_MESSAGE_DURATION ?? (ncIsPlaywright() ? 1 : 8)),
})
})

View File

@@ -9400,4 +9400,4 @@ class BaseModelSqlv2 implements IBaseModelSqlV2 {
}
}
export { BaseModelSqlv2, getAs };
export { BaseModelSqlv2 };

View File

@@ -6,11 +6,8 @@ import type {
HandlerOptions,
} from '~/db/field-handler/field-handler.interface';
import type { Column, Filter } from '~/models';
import { getColumnName } from '~/db/BaseModelSqlv2';
import {
getAs,
ncIsStringHasValue,
} from '~/db/field-handler/utils/handlerUtils';
import { getAs, getColumnName } from '~/helpers/dbHelpers';
import { ncIsStringHasValue } from '~/db/field-handler/utils/handlerUtils';
import { sanitize } from '~/helpers/sqlSanitize';
export class GenericFieldHandler implements FieldHandlerInterface {

View File

@@ -1,14 +1,14 @@
import { RelationTypes } from 'nocodb-sdk';
import {
getAlias,
negatedMapping,
nestedConditionJoin,
} from '../../utils/handlerUtils';
import type CustomKnex from '~/db/CustomKnex';
import type { Column, LinkToAnotherRecordColumn, LookupColumn } from '~/models';
import type { HandlerOptions } from '~/db/field-handler/field-handler.interface';
import type { Knex } from '~/db/CustomKnex';
import type { Filter } from '~/models';
import {
getAlias,
negatedMapping,
nestedConditionJoin,
} from '~/db/field-handler/utils/handlerUtils';
import { GenericFieldHandler } from '~/db/field-handler/handlers/generic';
export class LookupGeneralHandler extends GenericFieldHandler {

View File

@@ -1,9 +1,12 @@
import { RelationTypes } from 'nocodb-sdk';
import { getAlias, negatedMapping } from '../../utils/handlerUtils';
import type CustomKnex from '~/db/CustomKnex';
import type { Column, LinkToAnotherRecordColumn } from '~/models';
import type { HandlerOptions } from '~/db/field-handler/field-handler.interface';
import type { Knex } from '~/db/CustomKnex';
import {
getAlias,
negatedMapping,
} from '~/db/field-handler/utils/handlerUtils';
import { Filter } from '~/models';
import { GenericFieldHandler } from '~/db/field-handler/handlers/generic';

View File

@@ -4,9 +4,6 @@ import type { IBaseModelSqlV2 } from 'src/db/IBaseModelSqlV2';
import type { Column, LinkToAnotherRecordColumn, LookupColumn } from '~/models';
import { Filter } from '~/models';
export function getAs(column: Column) {
return column.asId || column.id;
}
export function ncIsStringHasValue(val: string | undefined | null) {
return val !== '' && !ncIsUndefined(val) && !ncIsNull(val);
}

View File

@@ -16,7 +16,7 @@ import formulaQueryBuilderv2 from '~/db/formulav2/formulaQueryBuilderv2';
import genRollupSelectv2 from '~/db/genRollupSelectv2';
import { getAliasGenerator } from '~/utils';
import { NcError } from '~/helpers/catchError';
import { getAs } from '~/db/BaseModelSqlv2';
import { getAs } from '~/helpers/dbHelpers';
const LOOKUP_VAL_SEPARATOR = '___';

View File

@@ -11,7 +11,7 @@ import getAst from '~/helpers/getAst';
import { PagedResponseImpl } from '~/helpers/PagedResponse';
import { getColumnByIdOrName } from '~/helpers/dataHelpers';
import NcConnectionMgrv2 from '~/utils/common/NcConnectionMgrv2';
import { replaceDynamicFieldWithValue } from '~/db/BaseModelSqlv2';
import { replaceDynamicFieldWithValue } from '~/helpers/dbHelpers';
import { Filter } from '~/models';
import { IJobsService } from '~/modules/jobs/jobs-service.interface';
import { DatasService } from '~/services/datas.service';