Skip to content

Commit b826f09

Browse files
authored
Release v1.56.3 (#1350)
- fix: cannot update for each step name if no variable - fix(for-each): filter iterations for IterationSelector - chore(robots): noindex for tiles
2 parents b9f1805 + 5e8ec44 commit b826f09

File tree

16 files changed

+95
-50
lines changed

16 files changed

+95
-50
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,5 @@
111111
"tsconfig-paths": "^4.2.0",
112112
"type-fest": "4.10.3"
113113
},
114-
"version": "1.56.2"
114+
"version": "1.56.3"
115115
}

packages/backend/src/app.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import csp from '@/helpers/csp'
1919
import errorHandler from '@/helpers/error-handler'
2020
import injectBullBoardHandler from '@/helpers/inject-bull-board-handler'
2121
import morgan from '@/helpers/morgan'
22+
import robotsHeaderMiddleware from '@/helpers/robots-header'
2223
import webUIHandler from '@/helpers/web-ui-handler'
2324
import router from '@/routes'
2425

@@ -50,7 +51,7 @@ app.use(
5051
}),
5152
)
5253
app.use(cors(corsOptions))
53-
54+
app.use(robotsHeaderMiddleware)
5455
injectBullBoardHandler(app, serverAdapter)
5556

5657
appAssetsHandler(app)

packages/backend/src/apps/toolbox/actions/for-each/schema.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,5 +147,7 @@ export const parameterSchema = z.object({
147147
})
148148
.refine((v) => VARIABLE_REGEX.test(v), {
149149
message: PARAMETER_ERROR_MESSAGE,
150-
}),
150+
})
151+
// could be null when user is updating the step name before selecting a variable
152+
.nullish(),
151153
})

packages/backend/src/graphql/mutations/create-step.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ const createStep: MutationResolvers['createStep'] = async (
9292

9393
return {
9494
...step,
95+
flowId: flow.id,
9596
flow: {
9697
updatedAt: updatedFlow.updatedAt,
9798
},

packages/backend/src/graphql/schema.graphql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,7 @@ type Step {
703703
executionSteps: [ExecutionStep]
704704
config: StepConfig
705705
createdAt: String
706+
flowId: String
706707
}
707708

708709
type StepConfig {
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { NextFunction, Request, Response } from 'express'
2+
3+
const robotsHeaderMiddleware = (
4+
req: Request,
5+
res: Response,
6+
next: NextFunction,
7+
) => {
8+
// Add X-Robots-Tag header for all /tiles/* routes
9+
if (req.path.startsWith('/tiles/')) {
10+
res.setHeader('X-Robots-Tag', 'noindex, nofollow')
11+
}
12+
next()
13+
}
14+
15+
export default robotsHeaderMiddleware

packages/frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "frontend",
3-
"version": "1.56.2",
3+
"version": "1.56.3",
44
"type": "module",
55
"scripts": {
66
"dev": "wait-on tcp:3000 && vite --host --force",

packages/frontend/src/components/ExecutionGroup/index.tsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,19 @@ export default function ExecutionGroup(props: ExecutionGroupProps) {
8383
}
8484
}, [iterationMap, statusFilter])
8585

86+
// NOTE: filter the iteration map to only include iterations that match the status filter
87+
const filteredIterationMap = useMemo(() => {
88+
if (statusFilter === GroupStatusType.All) {
89+
return iterationMap
90+
}
91+
92+
return new Map(
93+
[...iterationMap].filter(([_iteration, status]) => {
94+
return status === statusFilter
95+
}),
96+
)
97+
}, [iterationMap, statusFilter])
98+
8699
const { app, appName } = useExecutionStepStatus({
87100
appKey: groupingStep?.appKey ?? '',
88101
status: !execution?.status
@@ -153,7 +166,7 @@ export default function ExecutionGroup(props: ExecutionGroupProps) {
153166
{iterationMap.size > 0 ? (
154167
<>
155168
<IterationSelector
156-
iterationMap={iterationMap}
169+
iterationMap={filteredIterationMap}
157170
canRetryAll={groupStats.failure > 0}
158171
execution={execution}
159172
selectedIteration={selectedIteration}

packages/frontend/src/graphql/mutations/create-step.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const CREATE_STEP = gql`
1010
parameters
1111
position
1212
status
13+
flowId
1314
connection {
1415
id
1516
}

0 commit comments

Comments
 (0)