Skip to content

SG-35561 export csv python changes #386

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kuldeepgudekar
Copy link

@kuldeepgudekar kuldeepgudekar commented May 28, 2025

Includes change for the new API enpoint export_page and test case around it. The report download test case is unavailable due to the following reasons:

  1. The Report entity is not public, meaning we do not have access to this entity via the Python API. It is merely a table for storing data.
  2. Since we cannot access the Report entity, we are unable to create the report entry for the page being tested in the test case.
  3. Additionally, mocking the remote call is not feasible because the export_page function internally checks if a report is available.

@kuldeepgudekar
Copy link
Author

Test cases dependes on changes made in
https://git.autodesk.com/shotgun/shotgun/pull/17891

Copy link
Contributor

@carlos-villavicencio-adsk carlos-villavicencio-adsk left a comment

Choose a reason for hiding this comment

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

Let's add some documentation in the /docs directory. This will end up in the docs site.

Comment on lines +1915 to +1917
params = dict(
format=format, page_id=page_id
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to add some data validations before sending it to the server? i.e. expected format values or page_id type.

Copy link
Author

@kuldeepgudekar kuldeepgudekar May 29, 2025

Choose a reason for hiding this comment

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

Thanks @carlos-villavicencio-adsk for your comments. I have these validations in api_handler.rb in another pull request like validations for other functions.

@carlos-villavicencio-adsk carlos-villavicencio-adsk changed the title Ticket/sg 35561 export csv python changes SG-35561 export csv python changes Jun 11, 2025
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.

2 participants