-
Notifications
You must be signed in to change notification settings - Fork 82
Read dashboard definition from file_path
via filer interface
#2738
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Could you also include in the PR description what does not work today in the workspace? Also please take a look at converting the mutator to read from the typed tree. That'll simplify the code quite a bit.
bundle/config/mutator/resourcemutator/configure_dashboards_serialized_dashboard.go
Outdated
Show resolved
Hide resolved
bundle/config/mutator/resourcemutator/configure_dashboards_serialized_dashboard.go
Show resolved
Hide resolved
bundle/config/mutator/resourcemutator/configure_dashboards_serialized_dashboard.go
Show resolved
Hide resolved
bundle/config/mutator/resourcemutator/configure_dashboards_serialized_dashboard.go
Show resolved
Hide resolved
c3573b7
to
bcba28d
Compare
28533c6
to
d40eabc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving to unblock. Just one question about why we needed to change the file translation.
file_path
via filer interface
…ansformation pipeline, closer to terraform write
yes. this is needed for the filer to read the file correctly |
abdf67b
to
e7e0b45
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you manually test it in the workspace? (You can cross-build and upload binary there)
bundle/config/mutator/resourcemutator/configure_dashboards_serialized_dashboard.go
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you confirm this change is a no-op for dashboards deployed with an earlier version of the CLI? Everything else LGTM.
Yes, tested for new dashboards in workspace - deployment works with this change in |
OK, thanks. I asked because I did not see it not mentioned in Tests section, but I see it's there now. |
Wrote this test:
the second run reported Deployment as complete and there were no signs of any changes that were required |
Changes
file_path
field, that file is read and its contents are set to theserialized_dashboard
field. This is done in a newly introducedConfigureDashboardSerializedDashboard
mutatorfile
directive is removed fromdashboardConverter
(unit tests for this are also removed)ConfigureWSFS
mutator call is moved to be executed beforePythonMutator
so that the latter has access to the Workspace File System clientWhy
This change allows
bundle deploy
to correctly deploy dashboard resource when running in Databricks Workspace / Runtime. Deployment does not work currently, because reading a dashboard file via file system interface throws an error in the Workspace.Tests