Skip to content

Conversation

@JCZuurmond
Copy link
Contributor

Let page names to adhere to the (new) naming convention:

Resource names should only contain alphanumeric characters (a-z, A-Z, 0-9), hyphens (-), or underscores (_)

Resolves #369

@JCZuurmond JCZuurmond added the bug Something isn't working label Feb 27, 2025
@JCZuurmond JCZuurmond requested a review from gueniai February 27, 2025 17:58
@JCZuurmond JCZuurmond self-assigned this Feb 27, 2025
@JCZuurmond JCZuurmond added this to UCX Feb 27, 2025
@JCZuurmond JCZuurmond moved this to In Progress in UCX Feb 27, 2025
@JCZuurmond JCZuurmond moved this from In Progress to Ready for Review in UCX Feb 27, 2025
@github-actions
Copy link

github-actions bot commented Feb 27, 2025

✅ 36/36 passed, 4 skipped, 6m1s total

Running from acceptance #492

@gueniai gueniai merged commit 1c97780 into main Feb 27, 2025
6 of 7 checks passed
@gueniai gueniai deleted the fix/let-page-name-adhere-to-naming-restrictions branch February 27, 2025 18:11
@github-project-automation github-project-automation bot moved this from Ready for Review to Done in UCX Feb 27, 2025
gueniai added a commit that referenced this pull request Feb 27, 2025
* Let page name adhere to naming restrictions ([#370](#370)). In this release, a new method `_clean_resource_name` has been introduced to modify resource names according to the updated naming convention, allowing only alphanumeric characters, hyphens, and underscores. The `as_lakeview` method in the `BaseHandler` class now uses this new method to ensure the `Page` class name adheres to the new restrictions. Furthermore, test files for dashboards have been updated to reflect the change, with a new test function `test_dashboard_metadata_as_lakeview_cleans_page_name` verifying that page names are free of special characters, and an existing test function modified to handle invalid dashboard YAML files. These changes improve consistency, reliability, and adherence to best practices in dashboard naming within the project.
@gueniai gueniai mentioned this pull request Feb 27, 2025
gueniai added a commit that referenced this pull request Feb 27, 2025
* Let page name adhere to naming restrictions
([#370](#370)). In this
release, a new method `_clean_resource_name` has been introduced to
modify resource names according to the updated naming convention,
allowing only alphanumeric characters, hyphens, and underscores. The
`as_lakeview` method in the `BaseHandler` class now uses this new method
to ensure the `Page` class name adheres to the new restrictions.
Furthermore, test files for dashboards have been updated to reflect the
change, with a new test function
`test_dashboard_metadata_as_lakeview_cleans_page_name` verifying that
page names are free of special characters, and an existing test function
modified to handle invalid dashboard YAML files. These changes improve
consistency, reliability, and adherence to best practices in dashboard
naming within the project.
pritishpai added a commit that referenced this pull request Apr 25, 2025
… constraints (#372)

### Changes

Add missing docstrings and clean tile metadata id using the function
introduced in #370

---------

Co-authored-by: pritishpai <pritish.pai@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Update LSQL so that the page names always adhere to the new naming conventions

3 participants