Skip to content

Add subfolder listing, workflow templates retrieval, and download directory configuration#31

Open
berggren wants to merge 3 commits intomainfrom
add-funcs
Open

Add subfolder listing, workflow templates retrieval, and download directory configuration#31
berggren wants to merge 3 commits intomainfrom
add-funcs

Conversation

@berggren
Copy link
Copy Markdown
Contributor

Technical Details:

  • FilesAPI.download_file Modification: The download_file method now accepts an optional output_dir argument, which defines where the downloaded file will be saved. If output_dir is not provided, a temporary directory is used.
  • FoldersAPI.list_subfolders Addition: Added list_subfolders method to retrieve a list of subfolders within a specified folder, returning a list of dictionaries containing metadata for each subfolder.
  • WorkflowsAPI.get_workflow_templates Addition: Introduced get_workflow_templates method to retrieve a list of available workflow templates. This method returns a dictionary containing the workflow templates.
  • Tests Added/Modified: New tests were added for the list_subfolders and get_workflow_templates methods. The download_file tests were modified to assert that the output_dir parameter is correctly passed to the temporary file creation function.

@berggren berggren requested a review from hacktobeer October 31, 2025 10:36
@codecov
Copy link
Copy Markdown

codecov bot commented Oct 31, 2025

Codecov Report

❌ Patch coverage is 96.66667% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
openrelik_api_client/workflows.py 83.33% 0 Missing and 1 partial ⚠️
Files with missing lines Coverage Δ
openrelik_api_client/files.py 86.36% <100.00%> (ø)
openrelik_api_client/folders.py 100.00% <100.00%> (ø)
tests/files_api_test.py 100.00% <ø> (ø)
tests/folders_api_test.py 100.00% <100.00%> (ø)
tests/workflows_api_test.py 100.00% <100.00%> (ø)
openrelik_api_client/workflows.py 38.46% <83.33%> (+4.56%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@hacktobeer hacktobeer left a comment

Choose a reason for hiding this comment

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

LGTM

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