feat(Data Table Node): Add URL to data table resource locator (no-changelog) (#18840)

This commit is contained in:
Charlie Kolb
2025-08-27 11:27:18 +02:00
committed by GitHub
parent 4d84d589b2
commit 7f77436c20
3 changed files with 8 additions and 1 deletions

View File

@@ -68,6 +68,10 @@ export class DataStoreProxyService implements DataStoreProxyProvider {
private makeAggregateOperations(projectId: string): IDataStoreProjectAggregateService {
const dataStoreService = this.dataStoreService;
return {
getProjectId() {
return projectId;
},
async getManyAndCount(options: ListDataStoreOptions = {}) {
const serviceOptions: DataStoreListOptions = {
...options,

View File

@@ -29,6 +29,7 @@ export async function tableSearch(
return {
name: row.name,
value: row.id,
url: `/projects/${proxy.getProjectId()}/datatables/${row.id}`,
};
});
@@ -42,7 +43,7 @@ export async function tableSearch(
export async function getDataTableColumns(this: ILoadOptionsFunctions) {
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased-id, n8n-nodes-base/node-param-display-name-miscased
const returnData: INodePropertyOptions[] = [{ name: 'id - (string)', value: 'id' }];
const returnData: INodePropertyOptions[] = [{ name: 'id - (number)', value: 'id' }];
const proxy = await getDataTableProxyLoadOptions(this);
const columns = await proxy.getColumns();
for (const column of columns) {

View File

@@ -86,6 +86,8 @@ export type DataStoreRowsReturn = DataStoreRowReturn[];
// APIs for a data store service operating on a specific projectId
export interface IDataStoreProjectAggregateService {
getProjectId(): string;
createDataStore(options: CreateDataStoreOptions): Promise<DataStore>;
getManyAndCount(options: ListDataStoreOptions): Promise<{ count: number; data: DataStore[] }>;