Skip to content

Commit

Permalink
fix: deprecate unused config in powerbi-report-server source
Browse files Browse the repository at this point in the history
The source use graph from ctx so graphql_url is not needed.
  • Loading branch information
daha committed Dec 4, 2022
1 parent 4876fdd commit a7522da
Show file tree
Hide file tree
Showing 4 changed files with 5 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 @@ -6,6 +6,8 @@ This file documents any backwards-incompatible changes in DataHub and assists pe

### Breaking Changes

- `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,7 @@ 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 a7522da

Please sign in to comment.