v0.15.0
- Validate resource names (#357). The recent change in the
ucxproject 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 theTileMetadataclass has been updated with a__post_init__method and avalidatemethod for validation purposes. TheTileandFilterTileclasses also receive avalidatemethod to raiseValueErrorfor 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 raisesValueErrorfor 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 theucxproject.
Contributors: @JCZuurmond, @gueniai