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

feat(ingest/nifi): add support for basic auth in nifi #8457

Merged
merged 3 commits into from
Jul 20, 2023

Conversation

mayurinehate
Copy link
Collaborator

@mayurinehate mayurinehate commented Jul 19, 2023

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

@@ -667,41 +669,8 @@ def fetch_provenance_events(
of processor type {processor.type}, Start date: {startDate}, End date: {endDate}"
)

older_version: bool = self.nifi_flow.version is not None and version.parse(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

refractored into separate method.

@@ -1001,8 +1035,6 @@ def get_workunits_internal(self) -> Iterable[MetadataWorkUnit]:
self.report.report_failure(self.config.site_url, "Failed to authenticate")
return

self.session.headers.update({"Content-Type": "application/json"})
Copy link
Collaborator Author

@mayurinehate mayurinehate Jul 19, 2023

Choose a reason for hiding this comment

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

this is not required. Most of the nifi requests connector calls accept content-type: */*

@mayurinehate mayurinehate changed the title feat(nifi): add support for basic auth in nifi feat(ingest/nifi): add support for basic auth in nifi Jul 19, 2023
@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Jul 19, 2023
Copy link
Collaborator

@hsheth2 hsheth2 left a comment

Choose a reason for hiding this comment

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

LGTM

@hsheth2 hsheth2 added the merge-pending-ci A PR that has passed review and should be merged once CI is green. label Jul 20, 2023
@asikowitz
Copy link
Collaborator

Cypress tests should be unaffected by these changes, merging

@asikowitz asikowitz merged commit f4fde21 into datahub-project:master Jul 20, 2023
43 of 44 checks passed
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 merge-pending-ci A PR that has passed review and should be merged once CI is green.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants