-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from dqops/1.4.0
1.4.0
- Loading branch information
Showing
1,007 changed files
with
54,844 additions
and
77,111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
# 1.3.0 | ||
* Screens that show a list of tables and the data quality status divided by data quality dimensions | ||
* Analyze nested values in JSON fields | ||
* Analyze files on Azure storage buckets, using the az:// prefix. | ||
# 1.4.0 | ||
* Ensure that only one instance of DuckDB engine is loaded | ||
* Profiling and monitoring checks do not render the group by time period (current time) | ||
* Small UI fixes | ||
* Default check patterns (profiles) support disabling and targeting multiple tables and columns | ||
* Global search screens to show tables and columns, filtered by labels | ||
* Data quality check recalibration for failed data quality checks initiated from an incident details screen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.3.0 | ||
1.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
127 changes: 127 additions & 0 deletions
127
distribution/python/dqops/client/api/incidents/disable_checks_for_incident.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
from http import HTTPStatus | ||
from typing import Any, Dict, Optional, Union | ||
|
||
import httpx | ||
|
||
from ... import errors | ||
from ...client import AuthenticatedClient, Client | ||
from ...types import Response | ||
|
||
|
||
def _get_kwargs( | ||
connection_name: str, | ||
year: int, | ||
month: int, | ||
incident_id: str, | ||
) -> Dict[str, Any]: | ||
pass | ||
|
||
return { | ||
"method": "post", | ||
"url": "api/incidents/{connectionName}/{year}/{month}/{incidentId}/checks/disable".format( | ||
connectionName=connection_name, | ||
year=year, | ||
month=month, | ||
incidentId=incident_id, | ||
), | ||
} | ||
|
||
|
||
def _parse_response( | ||
*, client: Union[AuthenticatedClient, Client], response: httpx.Response | ||
) -> Optional[Any]: | ||
if response.status_code == HTTPStatus.NO_CONTENT: | ||
return None | ||
if client.raise_on_unexpected_status: | ||
raise errors.UnexpectedStatus(response.status_code, response.content) | ||
else: | ||
return None | ||
|
||
|
||
def _build_response( | ||
*, client: Union[AuthenticatedClient, Client], response: httpx.Response | ||
) -> Response[Any]: | ||
return Response( | ||
status_code=HTTPStatus(response.status_code), | ||
content=response.content, | ||
headers=response.headers, | ||
parsed=_parse_response(client=client, response=response), | ||
) | ||
|
||
|
||
def sync_detailed( | ||
connection_name: str, | ||
year: int, | ||
month: int, | ||
incident_id: str, | ||
*, | ||
client: AuthenticatedClient, | ||
) -> Response[Any]: | ||
"""disableChecksForIncident | ||
Disables all data quality checks that caused a given data quality incident. | ||
Args: | ||
connection_name (str): | ||
year (int): | ||
month (int): | ||
incident_id (str): | ||
Raises: | ||
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. | ||
httpx.TimeoutException: If the request takes longer than Client.timeout. | ||
Returns: | ||
Response[Any] | ||
""" | ||
|
||
kwargs = _get_kwargs( | ||
connection_name=connection_name, | ||
year=year, | ||
month=month, | ||
incident_id=incident_id, | ||
) | ||
|
||
response = client.get_httpx_client().request( | ||
**kwargs, | ||
) | ||
|
||
return _build_response(client=client, response=response) | ||
|
||
|
||
async def asyncio_detailed( | ||
connection_name: str, | ||
year: int, | ||
month: int, | ||
incident_id: str, | ||
*, | ||
client: AuthenticatedClient, | ||
) -> Response[Any]: | ||
"""disableChecksForIncident | ||
Disables all data quality checks that caused a given data quality incident. | ||
Args: | ||
connection_name (str): | ||
year (int): | ||
month (int): | ||
incident_id (str): | ||
Raises: | ||
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. | ||
httpx.TimeoutException: If the request takes longer than Client.timeout. | ||
Returns: | ||
Response[Any] | ||
""" | ||
|
||
kwargs = _get_kwargs( | ||
connection_name=connection_name, | ||
year=year, | ||
month=month, | ||
incident_id=incident_id, | ||
) | ||
|
||
response = await client.get_async_httpx_client().request(**kwargs) | ||
|
||
return _build_response(client=client, response=response) |
Oops, something went wrong.