Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

Commit

Permalink
fix(ingest/powerbi-report-server): deprecate unused graphql config (d…
Browse files Browse the repository at this point in the history
  • Loading branch information
daha authored and cccs-Dustin committed Feb 1, 2023
1 parent c07fcc9 commit 506e050
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions docs/how/updating-datahub.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ This file documents any backwards-incompatible changes in DataHub and assists pe
- #6243 Authentication and Authorization plugins configuration are removed from [application.yml](../../metadata-service/factories/src/main/resources/application.yml). Refer documentation [Migration Of Plugins From application.yml](../plugins.md#migration-of-plugins-from-applicationyml) for migrating any existing custom plugins.
- `datahub check graph-consistency` command has been removed. It was a beta API that we had considered but decided there are better solutions for this. So removing this.

- `graphql_url` option of `powerbi-report-server` source deprecated as the options is not used.

### Potential Downtime

### Deprecations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ source:
server_alias: server_alias
# Workspace's dataset environments, example: (PROD, DEV, QA, STAGE)
env: DEV
# Workspace's dataset environments, example: (PROD, DEV, QA, STAGE)
graphql_url: http://localhost:8080/api/graphql
# Your Power BI Report Server base virtual directory name for reports
report_virtual_directory_name: Reports
# Your Power BI Report Server base virtual directory name for report server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#########################################################
import logging
from dataclasses import dataclass, field as dataclass_field
from typing import Any, Dict, Iterable, List
from typing import Any, Dict, Iterable, List, Optional

import pydantic
import requests
Expand Down Expand Up @@ -68,7 +68,9 @@ class PowerBiReportServerAPIConfig(EnvBasedSourceConfigBase):
server_alias: str = pydantic.Field(
default="", description="Alias for Power BI Report Server host URL"
)
graphql_url: str = pydantic.Field(description="GraphQL API URL")
graphql_url: Optional[str] = pydantic.Field(
default=None, description="[deprecated] Not used"
)
report_virtual_directory_name: str = pydantic.Field(
description="Report Virtual Directory URL name"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def default_source_config():
"workstation_name": "workstation",
"host_port": "host_port",
"server_alias": "server_alias",
"graphql_url": "http://localhost:8080/api/graphql",
"graphql_url": None,
"report_virtual_directory_name": "Reports",
"report_server_virtual_directory_name": "ReportServer",
"env": "DEV",
Expand Down

0 comments on commit 506e050

Please sign in to comment.