-
Notifications
You must be signed in to change notification settings - Fork 384
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
[ISSUE] Issue with Users folder and databricks_notebook
resource on databricks_user
object
#1777
Labels
exporter
TF configuration generator
Comments
We have tested this fix and it works by editing the output from the exporter
change that to
|
alexott
added a commit
that referenced
this issue
Jan 2, 2023
There are cases when reference isn't a full match of a given value but a prefix of it. For example, user's notebook has a path of `/Users/user@domain/notebook`. To make it working correctly we need to emit user or service principal, and then make a correct reference with dependency on emitted user or notebook, like, `${databricks_user.user_domain.home}/notebook`. This PR adds a new field to dependency specification: `MatchType` that may have following values: - `prefix` - value of attribute of resource is a prefix of a given attribute - `exact` (or empty string) - must have exact matching (previous behaviour) this fixes #1777
alexott
added a commit
that referenced
this issue
Jan 3, 2023
There are cases when reference isn't a full match of a given value but a prefix of it. For example, user's notebook has a path of `/Users/user@domain/notebook`. To make it working correctly we need to emit user or service principal, and then make a correct reference with dependency on emitted user or notebook, like, `${databricks_user.user_domain.home}/notebook`. This PR adds a new field to dependency specification: `MatchType` that may have following values: - `prefix` - value of attribute of resource is a prefix of a given attribute - `exact` (or empty string) - must have exact matching (previous behaviour) this fixes #1777
nfx
pushed a commit
that referenced
this issue
Jan 4, 2023
* Exporter: generate references that are matching only to a prefix There are cases when reference isn't a full match of a given value but a prefix of it. For example, user's notebook has a path of `/Users/user@domain/notebook`. To make it working correctly we need to emit user or service principal, and then make a correct reference with dependency on emitted user or notebook, like, `${databricks_user.user_domain.home}/notebook`. This PR adds a new field to dependency specification: `MatchType` that may have following values: - `prefix` - value of attribute of resource is a prefix of a given attribute - `exact` (or empty string) - must have exact matching (previous behaviour) this fixes #1777 * improving test coverage & emit user/sp for repos * Address PR feedback
michael-berk
pushed a commit
to michael-berk/terraform-provider-databricks
that referenced
this issue
Feb 15, 2023
…abricks#1890) * Exporter: generate references that are matching only to a prefix There are cases when reference isn't a full match of a given value but a prefix of it. For example, user's notebook has a path of `/Users/user@domain/notebook`. To make it working correctly we need to emit user or service principal, and then make a correct reference with dependency on emitted user or notebook, like, `${databricks_user.user_domain.home}/notebook`. This PR adds a new field to dependency specification: `MatchType` that may have following values: - `prefix` - value of attribute of resource is a prefix of a given attribute - `exact` (or empty string) - must have exact matching (previous behaviour) this fixes databricks#1777 * improving test coverage & emit user/sp for repos * Address PR feedback
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Configuration
Expected Behavior
Notebook should be created in databricks workspace under the user's directory and subdirectory tree
Actual Behavior
Databricks provider's user (engineer) reports that they see errors:
Problems occur when a notebook is not in the user's root path
this works ie: /Users/johnsmith@databricks.com/MyExporterNotebook.py
this does not ie: /Users/johnsmith@databricks.com/exporter/MyExporterNotebook.py
Steps to Reproduce
Important notes
Adding a
to the notebook resource fixes the problem
The text was updated successfully, but these errors were encountered: