Skip to content

v0.15.0

Choose a tag to compare

@gueniai gueniai released this 27 Feb 16:33
· 8 commits to main since this release
c2f349a
  • Validate resource names (#357). The recent change in the ucx project enhances resource name validation to adhere to a new naming convention, restricting names to alphanumeric characters, hyphens, and underscores. A new method, _is_valid_resource_name(name: str) -> bool, is introduced for validating resource names, and the TileMetadata class has been updated with a __post_init__ method and a validate method for validation purposes. The Tile and FilterTile classes also receive a validate method to raise ValueError for invalid tiles and metadata issues. This commit introduces new tests for validating tile IDs, tile metadata, and filter specs while improving error messages for better user understanding. It also raises ValueError for tiles with empty content, tiles with names containing spaces, and filter tiles with invalid widget types, ensuring stricter validation for dashboard metadata and tile metadata in the ucx project.

Contributors: @JCZuurmond, @gueniai