Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with missing users and temp groups after workspace-local groups migration and skip table when crawling table size if it does not exist anymore #770

Merged
merged 33 commits into from
Jan 12, 2024

Conversation

mwojtyczka
Copy link
Contributor

@mwojtyczka mwojtyczka commented Jan 10, 2024

  • Fix for issue: 767
  • Added new unit and integration tests, improved existing assertions
  • Improve get_table_size crawling to skip table if it does not exist anymore, instead of failing the task. This increases the stability of assessment job and integration tests.

@mwojtyczka mwojtyczka self-assigned this Jan 10, 2024
@mwojtyczka mwojtyczka requested review from a team and larsgeorge-db January 10, 2024 15:57
@mwojtyczka mwojtyczka removed the request for review from larsgeorge-db January 10, 2024 15:57
@mwojtyczka mwojtyczka changed the title Fixing issue with missing users and temp groups after groups migration Fixing issue with missing users and temp groups after workspace-local groups migration Jan 10, 2024
Copy link

codecov bot commented Jan 10, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (54c07dc) 81.97% compared to head (4ba2676) 82.62%.

Files Patch % Lines
src/databricks/labs/ucx/workspace_access/redash.py 97.43% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #770      +/-   ##
==========================================
+ Coverage   81.97%   82.62%   +0.64%     
==========================================
  Files          39       39              
  Lines        4516     4564      +48     
  Branches      835      848      +13     
==========================================
+ Hits         3702     3771      +69     
+ Misses        605      590      -15     
+ Partials      209      203       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mwojtyczka mwojtyczka changed the title Fixing issue with missing users and temp groups after workspace-local groups migration Fix issue with missing users and temp groups after workspace-local groups migration Jan 10, 2024
Copy link
Collaborator

@nfx nfx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these integration tests are very brittle in the current shape and I'm not comfortable merging it in current state.

tests/integration/workspace_access/test_redash.py Outdated Show resolved Hide resolved
tests/integration/test_installation.py Show resolved Hide resolved
tests/integration/workspace_access/test_redash.py Outdated Show resolved Hide resolved
tests/integration/workspace_access/test_redash.py Outdated Show resolved Hide resolved
tests/integration/workspace_access/test_redash.py Outdated Show resolved Hide resolved
tests/integration/workspace_access/test_redash.py Outdated Show resolved Hide resolved
src/databricks/labs/ucx/mixins/fixtures.py Outdated Show resolved Hide resolved
tests/integration/workspace_access/test_redash.py Outdated Show resolved Hide resolved
tests/integration/workspace_access/test_redash.py Outdated Show resolved Hide resolved
tests/integration/workspace_access/test_redash.py Outdated Show resolved Hide resolved
tests/integration/workspace_access/test_redash.py Outdated Show resolved Hide resolved
@nfx nfx merged commit 1e9c991 into main Jan 12, 2024
7 checks passed
@nfx nfx deleted the fix/redash_permissions branch January 12, 2024 09:48
nfx added a commit that referenced this pull request Jan 12, 2024
* Added assessment step to estimate the size of DBFS root tables ([#741](#741)).
* Added `TableMapping` functionality to table migrate ([#752](#752)).
* Added `databricks labs ucx move` command to move tables and schemas between catalogs ([#756](#756)).
* Added functionality to determine migration method based on DBFS Root ([#759](#759)).
* Added `get_tables_to_migrate` functionality in the mapping module ([#755](#755)).
* Added retry and rate limit to rename workspace group operation and corrected rate limit for reflecting account groups to workspace ([#751](#751)).
* Adopted `databricks-labs-blueprint` library for common utilities to be reused in the other projects ([#758](#758)).
* Converted `RuntimeBackend` query executions exceptions to SDK exceptions ([#769](#769)).
* Fixed issue with missing users and temp groups after workspace-local groups migration and skip table when crawling table size if it does not exist anymore ([#770](#770)).
* Improved error handling by not failing group rename step if a group was removed from account before reflecting it to workspace ([#762](#762)).
* Improved error message inference from failed workflow runs ([#753](#753)).
* Moved `TablesMigrate` to a separate module ([#747](#747)).
* Reorganized assessment dashboard to increase readability ([#738](#738)).
* Updated databricks-sdk requirement from ~=0.16.0 to ~=0.17.0 ([#773](#773)).
* Verify metastore exists in current workspace ([#735](#735)).
@nfx nfx mentioned this pull request Jan 12, 2024
nfx added a commit that referenced this pull request Jan 12, 2024
* Added assessment step to estimate the size of DBFS root tables
([#741](#741)).
* Added `TableMapping` functionality to table migrate
([#752](#752)).
* Added `databricks labs ucx move` command to move tables and schemas
between catalogs
([#756](#756)).
* Added functionality to determine migration method based on DBFS Root
([#759](#759)).
* Added `get_tables_to_migrate` functionality in the mapping module
([#755](#755)).
* Added retry and rate limit to rename workspace group operation and
corrected rate limit for reflecting account groups to workspace
([#751](#751)).
* Adopted `databricks-labs-blueprint` library for common utilities to be
reused in the other projects
([#758](#758)).
* Converted `RuntimeBackend` query executions exceptions to SDK
exceptions ([#769](#769)).
* Fixed issue with missing users and temp groups after workspace-local
groups migration and skip table when crawling table size if it does not
exist anymore ([#770](#770)).
* Improved error handling by not failing group rename step if a group
was removed from account before reflecting it to workspace
([#762](#762)).
* Improved error message inference from failed workflow runs
([#753](#753)).
* Moved `TablesMigrate` to a separate module
([#747](#747)).
* Reorganized assessment dashboard to increase readability
([#738](#738)).
* Updated databricks-sdk requirement from ~=0.16.0 to ~=0.17.0
([#773](#773)).
* Verify metastore exists in current workspace
([#735](#735)).
FastLee pushed a commit that referenced this pull request Jan 19, 2024
…oups migration and skip table when crawling table size if it does not exist anymore (#770)
FastLee pushed a commit that referenced this pull request Jan 19, 2024
* Added assessment step to estimate the size of DBFS root tables
([#741](#741)).
* Added `TableMapping` functionality to table migrate
([#752](#752)).
* Added `databricks labs ucx move` command to move tables and schemas
between catalogs
([#756](#756)).
* Added functionality to determine migration method based on DBFS Root
([#759](#759)).
* Added `get_tables_to_migrate` functionality in the mapping module
([#755](#755)).
* Added retry and rate limit to rename workspace group operation and
corrected rate limit for reflecting account groups to workspace
([#751](#751)).
* Adopted `databricks-labs-blueprint` library for common utilities to be
reused in the other projects
([#758](#758)).
* Converted `RuntimeBackend` query executions exceptions to SDK
exceptions ([#769](#769)).
* Fixed issue with missing users and temp groups after workspace-local
groups migration and skip table when crawling table size if it does not
exist anymore ([#770](#770)).
* Improved error handling by not failing group rename step if a group
was removed from account before reflecting it to workspace
([#762](#762)).
* Improved error message inference from failed workflow runs
([#753](#753)).
* Moved `TablesMigrate` to a separate module
([#747](#747)).
* Reorganized assessment dashboard to increase readability
([#738](#738)).
* Updated databricks-sdk requirement from ~=0.16.0 to ~=0.17.0
([#773](#773)).
* Verify metastore exists in current workspace
([#735](#735)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

User and backup group permissions lost for redash objects after applying group permissions
2 participants