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

DP-2433: adding exporting documentation #298

Merged
1 commit merged into from
Jul 31, 2023

Conversation

Mara3l
Copy link
Contributor

@Mara3l Mara3l commented Jul 27, 2023

No description provided.

@ghost
Copy link

ghost commented Jul 27, 2023

Build succeeded (check pipeline).

@ghost
Copy link

ghost commented Jul 27, 2023

Build succeeded (check pipeline).

@codecov-commenter
Copy link

codecov-commenter commented Jul 27, 2023

Codecov Report

Merging #298 (fd9d011) into master (e28be3c) will decrease coverage by 0.12%.
Report is 10 commits behind head on master.
The diff coverage is 100.00%.

❗ Current head fd9d011 differs from pull request most recent head ae79bdc. Consider uploading reports for the commit ae79bdc to get more accurate results

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##           master     #298      +/-   ##
==========================================
- Coverage   91.39%   91.27%   -0.12%     
==========================================
  Files          85       85              
  Lines        5622     5664      +42     
==========================================
+ Hits         5138     5170      +32     
- Misses        484      494      +10     
Files Changed Coverage Δ
...ooddata-sdk/gooddata_sdk/catalog/export/request.py 90.38% <ø> (ø)
...ooddata-sdk/gooddata_sdk/catalog/export/service.py 79.74% <100.00%> (+0.25%) ⬆️

... and 4 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ghost
Copy link

ghost commented Jul 27, 2023

Build succeeded (check pipeline).

insight_id = "revenue",
file_format = "CSV",
# The flag use_labels ensures that names of columns are according to your model
use_labels = True,
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this argument. It is not there anymore.

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 ID of the GoodData Insight.
{{< /parameter >}}
{{< parameter p_name="file_name" p_type="String" >}}
The name of the PDF file (excluding the file extension). Defaults to Path.cwd()
Copy link
Contributor

@hkad98 hkad98 Jul 28, 2023

Choose a reason for hiding this comment

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

Not true. First, it is not PDF. Second, it does not default to Path.cwd()

Configuration settings for the export. Defaults to None.
{{< /parameter >}}
{{< parameter p_name="store_path" p_type="Union[String, Path]" >}}
The name of the PDF file (excluding the file extension). Defaults to Path.cwd()
Copy link
Contributor

Choose a reason for hiding this comment

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

Not true.

The ID of the GoodData Dashboard.
{{< /parameter >}}
{{< parameter p_name="file_name" p_type="String" >}}
The name of the PDF file (excluding the file extension). Defaults to Path.cwd()
Copy link
Contributor

Choose a reason for hiding this comment

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

Not true.

The name of the PDF file (excluding the file extension). Defaults to Path.cwd()
{{< /parameter >}}
{{< parameter p_name="store_path" p_type="Union[String, Path]" >}}
The name of the PDF file (excluding the file extension). Defaults to Path.cwd()
Copy link
Contributor

Choose a reason for hiding this comment

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

Not true.

The ID of the GoodData Dashboard.
{{< /parameter >}}
{{< parameter p_name="file_name" p_type="String" >}}
The name of the PDF file (excluding the file extension). Defaults to Path.cwd()
Copy link
Contributor

Choose a reason for hiding this comment

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

Not true. Does not default to Path.cwd()

Comment on lines 24 to 46
"""
ExportService provides the ability to export PDF and Tabular data from GoodData Dashboards.
Attributes:
_entities_api:
A reference to the entities_api of GoodDataApiClient instance.
_actions_api:
A reference to the actions_api of GoodDataApiClient instance.
Methods:
_get_exported_content:
A static method that gets the exported content using the provided `get_func`.
_create_export:
A static method that creates an export and returns its ID.
_dashboard_id_exists:
Checks if the given dashboard_id exists in the workspace.
_export_common:
Common export method for handling the exports of PDF and Tabular.
export_pdf:
Export a PDF of a GoodData Dashboard.
export_tabular:
Export Tabular data from a GoodData Dashboard.
"""
Copy link
Contributor

@hkad98 hkad98 Jul 28, 2023

Choose a reason for hiding this comment

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

Missing export_tabular_by_insight_id and its documentation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

I mean the documentation in the context of service.py.

  • ExportService docstring

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@ghost
Copy link

ghost commented Jul 28, 2023

Build succeeded (check pipeline).

@ghost
Copy link

ghost commented Jul 28, 2023

Build succeeded (check pipeline).

1 similar comment
@ghost
Copy link

ghost commented Jul 30, 2023

Build succeeded (check pipeline).

@ghost
Copy link

ghost commented Jul 30, 2023

Build succeeded (check pipeline).

@hkad98 hkad98 added the merge label Jul 31, 2023
@yenkins
Copy link

yenkins commented Jul 31, 2023

Sonar scan result

More detail, see in https://sonarqube-gate.intgdc.com/dashboard?id=gooddata-python-sdk-gate-PR298

To scan for vulnerabilities in dependencies and run unit tests (to get coverage report in sonar) please comment your PR with 'extended check sonar'.

@ghost ghost removed the merge label Jul 31, 2023
@ghost ghost merged commit 2e47533 into gooddata:master Jul 31, 2023
8 checks passed
@Mara3l Mara3l deleted the DP-2433-exporting branch August 30, 2023 06:22
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants