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(ingest): Generate browse paths v2 for more sources; properly pass platform_instance #8501

Merged

Conversation

asikowitz
Copy link
Collaborator

Makes the following changes:

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

Copy link
Collaborator Author

@asikowitz asikowitz left a comment

Choose a reason for hiding this comment

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

I scanned thru all the goldens and changes looked reasonable to me. One question around the "remote" source -- which is the csv_enricher / datahub-lineage-file / datahub-business-glossary. Not sure whether we should be auto generating stuff for them or not

@@ -139,8 +143,11 @@ def load_lineage_config(file_name: str) -> LineageConfig:
lineage_config = LineageConfig.parse_obj(config)
return lineage_config

def get_workunits(self) -> Iterable[MetadataWorkUnit]:
return auto_workunit_reporter(self.report, self.get_workunits_internal())
def get_workunit_processors(self) -> List[Optional[MetadataWorkUnitProcessor]]:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Manually defined here since this is a "file" ingestion source and want to keep the output more constrained. I don't really know how this is used though, so if you think it's better to get all the helpers I'll remove this

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yep this makes sense

"entityType": "tag",
"entityUrn": "urn:li:tag:Legacy",
"changeType": "UPSERT",
"aspectName": "tagKey",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Getting a tag key aspect, just want to make sure this makes sense for this source

@@ -2,10 +2,6 @@
from dataclasses import dataclass, field
from typing import Dict, Iterable, List, Optional, Tuple, Type, Union, ValuesView

import bson
import bson.dbref
import bson.int64
Copy link
Collaborator

Choose a reason for hiding this comment

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

Were these just unused?

Copy link
Collaborator Author

@asikowitz asikowitz Jul 24, 2023

Choose a reason for hiding this comment

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

Ah I just ran the intellij "optimize imports" command on a bunch of files because they had imports to delete. It's very possible these are needed, we'll see what CI says I guess

@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Jul 24, 2023
@anshbansal anshbansal merged commit bf9f380 into datahub-project:master Jul 25, 2023
40 of 43 checks passed
@anshbansal
Copy link
Collaborator

Merged as ingestion tests are passing.

@asikowitz asikowitz deleted the generate-more-browse-paths branch July 25, 2023 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ingestion PR or Issue related to the ingestion of metadata
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants