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

Cherry-pick: PMK-1169: hiding .cn #371

Merged
1 commit merged into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 4 additions & 14 deletions docs/content/en/docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ To install the `gooddata-sdk` Python SDK package, run the following command:
pip3 install gooddata-sdk
```

{{% alert color="warning" title="Known MacOS issue" %}}
{{% alert color="warning" title="Known macOS issue" %}}
If you are getting the following message:

__(Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE\_VERIFY\_FAILED] certificate verify failed: unable to get local issuer certificate (\_ssl.c:1129)')))__

it is likely caused by Python and it occurs if you have installed Python directly from python.org.
it is likely caused by Python, and it occurs if you have installed Python directly from python.org.

To mitigate, please istall your SSL certificates in __HD -> Applications -> Python -> Install Certificates.command__.
{{% /alert %}}
Expand All @@ -32,18 +32,8 @@ To make use of the package, you need a running instance of GoodData. If you do n

### Versioning

The Python SDK is versioned. The version you should be using depends on the type of GoodData distribution you are using.
The Python SDK is versioned and usually released in tandem with GoodData Cloud.

#### GoodData Cloud

We recommend you always work with the newest (supported) Python available.

#### GoodData.CN

Here is a mapping table of compatibility, which version of Python SDK to use with each version of GoodData.CN

| Gooddata.CN | Python SDK |
|---|---|
| v2.5 | v1.5 |
| v2.4 | v1.4 |
| v2.3 | v1.3 |
When working with GoodData Cloud, we recommend you always work with the newest Python SDK available.
2 changes: 1 addition & 1 deletion gooddata-fdw/gooddata_fdw/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _qual_to_date_filter(filter_entity: Attribute, qual: Qual) -> Union[Filter,
re_day = re.compile(r"(.*)\.[^.]+$")
label = ObjId(re_day.sub(r"\1", filter_entity.label.id), "dataset")
if isinstance(qual.operator, tuple):
# Can't be implemented by multiple filters, because GD.CN does not support OR between filters
# Can't be implemented by multiple filters, because local GoodData instance does not support OR between filters
_log_debug("extract_filters_from_quals: IN (date1, date2, ..) is not supported")
return None
else:
Expand Down
4 changes: 2 additions & 2 deletions gooddata-sdk/gooddata_sdk/insight.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,11 +457,11 @@ def __repr__(self) -> str:

class InsightService:
"""
Insight Service allows retrieval of insights from a GD.CN workspace. The insights are returned as instances of
Insight Service allows retrieval of insights from a local GD workspace. The insights are returned as instances of
Insight which allows convenient introspection and necessary functions to convert the insight into a form where it
can be sent for computation.

Note: the insights are created using GD.CN Analytical Designer or using GoodData.UI SDK. They are stored as
Note: the insights are created using GD Analytical Designer or using GoodData.UI SDK. They are stored as
visualization objects with a free-form body. This body is specific for AD & SDK.
The Insight wrapper exists to take care of these discrepancies.
"""
Expand Down
8 changes: 4 additions & 4 deletions gooddata-sdk/gooddata_sdk/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self, api_client: GoodDataApiClient) -> None:
@property
def is_available(self) -> bool:
"""
Checks if GD.CN is available.
Checks if the GoodData instance is available.
Can raise exceptions in case of authentication or authorization failure.

:return: True - available, False - not available
Expand All @@ -28,15 +28,15 @@ def is_available(self) -> bool:
# do not consider invalid credentials or missing rights "not available" state
raise
except exceptions.ApiException:
# invalid response from GD.CN - GD.CN is still booting but endpoint is receiving connections already
# invalid response from GoodData - GoodData is still booting but endpoint is receiving connections already
return False
except urllib3_ex.MaxRetryError:
# endpoint inactive - cannot connect
return False

def wait_till_available(self, timeout: int, sleep_time: float = 2.0) -> None:
"""
Wait till GD.CN service is available. When timeout is:
Wait till GoodData service is available. When timeout is:

- > 0 exception is raised after given number of seconds.
- = 0 exception is raised whe service is not available immediately
Expand All @@ -46,7 +46,7 @@ def wait_till_available(self, timeout: int, sleep_time: float = 2.0) -> None:

Args:
timeout: seconds to wait to service to be available (see method description for details)
sleep_time: seconds to wait between GD.CN availability tests
sleep_time: seconds to wait between availability tests
"""
start_time_sec = time.time()
while True:
Expand Down
Loading