Make tracker pattern displayName read-only

The displayName field was always predictable from pattern + matchType
and allowing edits added unnecessary complexity. Remove displayName
from UpdateTrackerPatternInput across all surfaces (GraphQL, MCP, CLI,
n8n) and make the frontend show it as non-editable text.

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-05-06 19:31:23 +04:00
parent c0d0221be1
commit 31bfbefc45
13 changed files with 16 additions and 72 deletions

View File

@@ -30,19 +30,6 @@ export const description: INodeProperties[] = [
description: 'The ID of the tracker pattern to update',
required: true,
},
{
displayName: 'Display Name',
name: 'displayName',
type: 'string',
displayOptions: {
show: {
resource: ['trackerPattern'],
operation: ['update'],
},
},
default: '',
description: 'The display name for the tracker pattern',
},
{
displayName: 'Excluded',
name: 'excluded',
@@ -115,7 +102,6 @@ export async function execute(
itemIndex: number,
): Promise<INodeExecutionData> {
const trackerPatternId = this.getNodeParameter('trackerPatternId', itemIndex) as string;
const displayName = this.getNodeParameter('displayName', itemIndex, '') as string;
const excluded = this.getNodeParameter('excluded', itemIndex, '') as string;
const patternDescription = this.getNodeParameter('patternDescription', itemIndex, '') as string;
const additionalFields = this.getNodeParameter('additionalFields', itemIndex, {}) as {
@@ -146,7 +132,6 @@ export async function execute(
`;
const input: Record<string, unknown> = { trackerPatternId };
if (displayName) input.displayName = displayName;
if (excluded) input.excluded = excluded === 'true';
if (patternDescription) input.description = patternDescription;
if (additionalFields.maxAgeSeconds !== undefined) {