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

Let notebook detection code use underlying metadata if available #1574

Merged
merged 5 commits into from
Jul 10, 2024

Conversation

pietern
Copy link
Contributor

@pietern pietern commented Jul 5, 2024

Changes

If we're using a vfs.Path backed by a workspace filesystem filer, we have access to the workspace.ObjectInfo value for every file. By providing access to this value we can use it directly and avoid reading the first line of the underlying file.

A follow-up change will implement the interface defined in this change for the workspace filesystem filer.

Tests

Unit tests.

@pietern pietern added this pull request to the merge queue Jul 10, 2024
Merged via the queue into main with commit 8f56ca3 Jul 10, 2024
5 checks passed
@pietern pietern deleted the notebook-file-info branch July 10, 2024 06:43
andrewnester added a commit that referenced this pull request Jul 10, 2024
Bundles:
 * Override complex variables with target overrides instead of merging ([#1567](#1567)).
 * Rewrite local path for libraries in foreach tasks ([#1569](#1569)).
 * Change SetVariables mutator to mutate dynamic configuration instead ([#1573](#1573)).
 * Return early in bundle destroy if no deployment exists ([#1581](#1581)).
 * Let notebook detection code use underlying metadata if available ([#1574](#1574)).
 * Remove schema override for variable default value ([#1536](#1536)).
 * Print diagnostics in 'bundle deploy' ([#1579](#1579)).

Internal:
 * Update actions/upload-artifact to v4 ([#1559](#1559)).
 * Use Go 1.22 to build and test ([#1562](#1562)).
 * Move bespoke status call to main workspace files filer ([#1570](#1570)).
 * Add new template ([#1578](#1578)).
 * Add regression tests for CLI error output ([#1566](#1566)).

Dependency updates:
 * Bump golang.org/x/mod from 0.18.0 to 0.19.0 ([#1576](#1576)).
 * Bump golang.org/x/term from 0.21.0 to 0.22.0 ([#1577](#1577)).
@andrewnester andrewnester mentioned this pull request Jul 10, 2024
github-merge-queue bot pushed a commit that referenced this pull request Jul 10, 2024
Bundles:
* Override complex variables with target overrides instead of merging
([#1567](#1567)).
* Rewrite local path for libraries in foreach tasks
([#1569](#1569)).
* Change SetVariables mutator to mutate dynamic configuration instead
([#1573](#1573)).
* Return early in bundle destroy if no deployment exists
([#1581](#1581)).
* Let notebook detection code use underlying metadata if available
([#1574](#1574)).
* Remove schema override for variable default value
([#1536](#1536)).
* Print diagnostics in 'bundle deploy'
([#1579](#1579)).

Internal:
* Update actions/upload-artifact to v4
([#1559](#1559)).
* Use Go 1.22 to build and test
([#1562](#1562)).
* Move bespoke status call to main workspace files filer
([#1570](#1570)).
* Add new template
([#1578](#1578)).
* Add regression tests for CLI error output
([#1566](#1566)).

Dependency updates:
* Bump golang.org/x/mod from 0.18.0 to 0.19.0
([#1576](#1576)).
* Bump golang.org/x/term from 0.21.0 to 0.22.0
([#1577](#1577)).
witi83 pushed a commit to witi83/databricks-cli that referenced this pull request Jul 29, 2024
…abricks#1574)

## Changes

If we're using a `vfs.Path` backed by a workspace filesystem filer, we
have access to the `workspace.ObjectInfo` value for every file. By
providing access to this value we can use it directly and avoid reading
the first line of the underlying file.

A follow-up change will implement the interface defined in this change
for the workspace filesystem filer.

## Tests

Unit tests.
witi83 pushed a commit to witi83/databricks-cli that referenced this pull request Jul 29, 2024
Bundles:
* Override complex variables with target overrides instead of merging
([databricks#1567](databricks#1567)).
* Rewrite local path for libraries in foreach tasks
([databricks#1569](databricks#1569)).
* Change SetVariables mutator to mutate dynamic configuration instead
([databricks#1573](databricks#1573)).
* Return early in bundle destroy if no deployment exists
([databricks#1581](databricks#1581)).
* Let notebook detection code use underlying metadata if available
([databricks#1574](databricks#1574)).
* Remove schema override for variable default value
([databricks#1536](databricks#1536)).
* Print diagnostics in 'bundle deploy'
([databricks#1579](databricks#1579)).

Internal:
* Update actions/upload-artifact to v4
([databricks#1559](databricks#1559)).
* Use Go 1.22 to build and test
([databricks#1562](databricks#1562)).
* Move bespoke status call to main workspace files filer
([databricks#1570](databricks#1570)).
* Add new template
([databricks#1578](databricks#1578)).
* Add regression tests for CLI error output
([databricks#1566](databricks#1566)).

Dependency updates:
* Bump golang.org/x/mod from 0.18.0 to 0.19.0
([databricks#1576](databricks#1576)).
* Bump golang.org/x/term from 0.21.0 to 0.22.0
([databricks#1577](databricks#1577)).
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.

None yet

2 participants