Add inventory_database name check#275
Add inventory_database name check#275nfx merged 6 commits intodatabrickslabs:mainfrom dmoore247:fix-inventory-database-name
Conversation
Codecov Report
@@ Coverage Diff @@
## main #275 +/- ##
==========================================
- Coverage 83.47% 83.21% -0.26%
==========================================
Files 30 30
Lines 2269 2318 +49
Branches 395 411 +16
==========================================
+ Hits 1894 1929 +35
- Misses 290 300 +10
- Partials 85 89 +4
|
|
|
||
| logger.info("Please answer a couple of questions to configure Unity Catalog migration") | ||
| inventory_database = self._question("Inventory Database", default="ucx") | ||
| while True: |
There was a problem hiding this comment.
Can you refactor this into a method and do max 10 attempts to ask for a valid database?
|
Working on feedback, waiting for assessment job before re-testing installer. |
|
@dmoore247 you know you can kill installer by CTRL+C (or CMD+D, don't remember), right?.. |
|
@dmoore247 any update? |
larsgeorge-db
left a comment
There was a problem hiding this comment.
Not to say this is not useful, but this should also then be done for most of the other inputs, no? And even then, you can always edit the config file in the workspace afterwards.
|
I think I can get to it next week. |
|
Following up - is this issue still relevant? |
nfx
left a comment
There was a problem hiding this comment.
remove install in the root, otherwise lgtm
dmoore247
left a comment
There was a problem hiding this comment.
removed install file
* Added `inventory_database` name check during installation ([#275](#275)). * Added a column to `$inventory.tables` to specify if a table might have been synchronised to Unity Catalog already or not ([#306](#306)). * Added a migration state to skip already migrated tables ([#325](#325)). * Fixed appending to tables by adding filtering of `None` rows ([#356](#356)). * Fixed handling of missing but linked cluster policies. ([#361](#361)). * Ignore errors for Redash widgets and queries redeployment during installation ([#367](#367)). * Remove exception and added proper logging for groups in the list that… ([#357](#357)). * Skip group migration when no groups are available after preparation step. ([#363](#363)). * Update databricks-sdk requirement from ~=0.9.0 to ~=0.10.0 ([#362](#362)).
* Added `inventory_database` name check during installation ([#275](#275)). * Added a column to `$inventory.tables` to specify if a table might have been synchronised to Unity Catalog already or not ([#306](#306)). * Added a migration state to skip already migrated tables ([#325](#325)). * Fixed appending to tables by adding filtering of `None` rows ([#356](#356)). * Fixed handling of missing but linked cluster policies. ([#361](#361)). * Ignore errors for Redash widgets and queries redeployment during installation ([#367](#367)). * Remove exception and added proper logging for groups in the list that… ([#357](#357)). * Skip group migration when no groups are available after preparation step. ([#363](#363)). * Update databricks-sdk requirement from ~=0.9.0 to ~=0.10.0 ([#362](#362)).
Check that database name is a word, loop until correct.
* Added `inventory_database` name check during installation ([#275](#275)). * Added a column to `$inventory.tables` to specify if a table might have been synchronised to Unity Catalog already or not ([#306](#306)). * Added a migration state to skip already migrated tables ([#325](#325)). * Fixed appending to tables by adding filtering of `None` rows ([#356](#356)). * Fixed handling of missing but linked cluster policies. ([#361](#361)). * Ignore errors for Redash widgets and queries redeployment during installation ([#367](#367)). * Remove exception and added proper logging for groups in the list that… ([#357](#357)). * Skip group migration when no groups are available after preparation step. ([#363](#363)). * Update databricks-sdk requirement from ~=0.9.0 to ~=0.10.0 ([#362](#362)).
Check that database name is a word, loop until correct.