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 #14578: Fixed mode test connection #14693

Merged
merged 1 commit into from
Jan 12, 2024
Merged

Fix #14578: Fixed mode test connection #14693

merged 1 commit into from
Jan 12, 2024

Conversation

OnkarVO7
Copy link
Contributor

Describe your changes:

Fixes #14578

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

@OnkarVO7 OnkarVO7 requested review from a team as code owners January 12, 2024 07:21
@github-actions github-actions bot added Ingestion backend safe to test Add this label to run secure Github workflows on PRs labels Jan 12, 2024
workspace_name=workspace_name,
collection_token=collection.get(TOKEN),
)
all_reports = []
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removing the try/except here since this is the initial step and we don't want to move forward in the ingestion if this step fails

@@ -180,11 +175,3 @@ def get_all_data_sources(self, workspace_name: str) -> Optional[dict]:
logger.warning(f"Error fetching all data sources: {exc}")

return None

def get_user_account(self) -> dict:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The method was only being used for test connection and not in actual ingestion. Changed the test connection to actually test getting the dashboards now.
Also this /account endpoint is not supported for the workspace tokens as pointed out in the mode docs

Copy link

Quality Gate Passed Quality Gate passed for 'open-metadata-ingestion'

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@ulixius9 ulixius9 merged commit f1049d5 into main Jan 12, 2024
@ulixius9 ulixius9 deleted the mode_test_conn_fix branch January 12, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Ingestion safe to test Add this label to run secure Github workflows on PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to add mode ingestion
2 participants