prefect icon indicating copy to clipboard operation
prefect copied to clipboard

feat: support underscores in block names

Open naaa760 opened this issue 3 weeks ago • 2 comments

fix: #19591

Overview

Support underscores in block names for consistency with variable naming rules.

Changes

  • Updated BlockDocumentName validation to allow underscores
  • Modified UI regex and error message
  • Updated tests to reflect new validation rules

Checklist

  • [x] References related issue
  • [x] Includes unit tests

Testing

  • ✅ Underscores now allowed: my_block, test-123_abc
  • ✅ Invalid chars still rejected: uppercase, spaces, special chars
  • ✅ Consistent validation across blocks and variables

naaa760 avatar Dec 02 '25 09:12 naaa760

CodSpeed Performance Report

Merging #19592 will not alter performance

Comparing naaa760:feat/supp-under (57e1b11) with main (26aa8c6)

Summary

✅ 2 untouched

codspeed-hq[bot] avatar Dec 02 '25 09:12 codspeed-hq[bot]

hi @naaa760 - thank you for the PR! however this is likely someone we'll need to deliberate internally, as this has implications across the full stack and prefect cloud

zzstoatzz avatar Dec 03 '25 16:12 zzstoatzz

This pull request is stale because it has been open 14 days with no activity. To keep this pull request open remove stale label or comment.

github-actions[bot] avatar Dec 17 '25 17:12 github-actions[bot]