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

Add bundle generate variant for dashboards #1847

Draft
wants to merge 4 commits into
base: dashboards
Choose a base branch
from

Conversation

pietern
Copy link
Contributor

@pietern pietern commented Oct 21, 2024

Changes

Work on databricks bundle generate command for dashboards.

Tests

todo

return nil
}

func (d *dashboard) generateForResource(ctx context.Context, b *bundle.Bundle) diag.Diagnostics {
Copy link
Contributor

Choose a reason for hiding this comment

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

Naming is a bit confusing to me, maybe better call it continiouslyUpdateResource or so?

// Start polling the underlying dashboard for changes.
var etag string
for {
w := b.WorkspaceClient()
Copy link
Contributor

Choose a reason for hiding this comment

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

you can move it out of for loop


// Now poll the workspace API for changes.
// This is much more efficient than polling the dashboard API.
for {
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe better abstract it into separate waitForChanges func?

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.

2 participants