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

Align DependencyProblem with LocatedAdvice #3583

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

JCZuurmond
Copy link
Member

Changes

While graph building for linting, the DependencyProblem are converted to LocatedAdvice. This PR aligns the two classes

Linked issues

Progresses #3514
Breaks up #3520

Functionality

  • modified existing command: databricks labs ucx migrate-local-code

Tests

  • manually tested
  • modified and added unit tests
  • modified and added integration tests

@JCZuurmond JCZuurmond added migrate/code Abstract Syntax Trees and other dark magic migrate/python Pull requests that update Python code python Pull requests that update Python code internal this pull request won't appear in release notes labels Jan 29, 2025
@JCZuurmond JCZuurmond self-assigned this Jan 29, 2025
@JCZuurmond JCZuurmond requested a review from a team as a code owner January 29, 2025 12:26
@@ -58,10 +57,3 @@ def test_graph_imports_dynamic_import():
container = maybe.dependency.load(path_lookup)
problems = container.build_dependency_graph(graph)
assert not problems


def test_is_path_missing():
Copy link
Member Author

Choose a reason for hiding this comment

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

This was not an integration test

Copy link

github-actions bot commented Jan 29, 2025

✅ 57/57 passed, 2 skipped, 25m51s total

Running from acceptance #8117

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal this pull request won't appear in release notes migrate/code Abstract Syntax Trees and other dark magic migrate/python Pull requests that update Python code python Pull requests that update Python code
Projects
Status: Ready for Review
Development

Successfully merging this pull request may close these issues.

1 participant