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

fix(propagation): Don't fail in propagation if origin is missing #161

Merged
merged 5 commits into from
Jan 31, 2025

Conversation

treff7es
Copy link
Contributor

@treff7es treff7es commented Jan 30, 2025

  • When the AI description action sets the Attribution aspect, it doesn’t set the Attribution details that the propagation action expects to have in MCL. This causes the origin to be null, which breaks Doc propagation since it requires a non-empty origin.. This leads to null origin, which in the Doc propagation code can't be empty and fails.
    In this fix, I make sure it is set if it is empty to the entity's urn; in this case, this is where the change request comes from.
  • lint fixes

Copy link

github-actions bot commented Jan 30, 2025

Unit Test Results (build & test)

104 tests  ±0   104 ✅ ±0   14s ⏱️ ±0s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 2ce99f1. ± Comparison against base commit 649f1d4.

♻️ This comment has been updated with latest results.

@pytest.fixture(scope="function")
def ingest_cleanup_data_function(request, test_resources_dir, graph, test_id):
@contextmanager
def _ingest_cleanup_data(template_file="datasets_template.yaml"):
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't this method being used as a fixture below?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was duplicated and mypy complained about it :)

@treff7es treff7es merged commit 2f78ab1 into main Jan 31, 2025
9 checks passed
@treff7es treff7es deleted the doc_propagation_ai_fix branch January 31, 2025 07:32
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