Skip to content

Allow special characters and non-Latin scripts in job names#4594

Open
m4cd4r4 wants to merge 1 commit intoOpenFn:mainfrom
m4cd4r4:fix/allow-special-chars-job-names
Open

Allow special characters and non-Latin scripts in job names#4594
m4cd4r4 wants to merge 1 commit intoOpenFn:mainfrom
m4cd4r4:fix/allow-special-chars-job-names

Conversation

@m4cd4r4
Copy link
Copy Markdown

@m4cd4r4 m4cd4r4 commented Apr 1, 2026

Summary

Closes #4577

Workflow step names are stored as labels in YAML exports, not as
identifiers. The existing regex (/^[a-zA-Z0-9_\- ]*$/) was unnecessarily
blocking non-English users from entering names in their native scripts
(Arabic, French, Chinese, etc.) or using characters like @ or '.

Removes the character-set restriction from three locations:

  • lib/lightning/workflows/job.ex - Elixir changeset validation
  • assets/js/workflow-diagram/nodes/PlaceholderJob.tsx - PlaceholderJob inline validation
  • assets/js/collaborative-editor/types/job.ts - Zod schema for collaborative editor

The 100-character length limit and blank-name check are preserved.

Validation steps

  1. mix format
  2. mix test test/lightning/workflows/job_test.exs --seed 0

Checklist

  • I have added tests to cover my changes
  • I have used Claude Code to help produce this code

The name validation regex blocked non-ASCII characters, preventing users
who speak non-English languages from using native scripts (Arabic, French
accents, etc.) in their workflow step names.

Step names are treated as labels in the YAML export, not as identifiers,
so the restriction was unnecessary. Removes the character-set validation
from the Elixir changeset, the PlaceholderJob React component, and the
collaborative editor Zod schema. The 100-character length limit is kept.

Fixes OpenFn#4577
@github-project-automation github-project-automation bot moved this to New Issues in Core Apr 1, 2026
@m4cd4r4
Copy link
Copy Markdown
Author

m4cd4r4 commented Apr 1, 2026

The test_elixir failure is a pre-existing flaky test (sorting workflows by last_workorder_updated_at desc) unrelated to this change - it touches no workflow sorting code. Lint passed on this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New Issues

Development

Successfully merging this pull request may close these issues.

[P3] Support special characters in workflow step names

1 participant