Skip to content

Add query_format to attachment search - #120

Merged
sim0nx merged 7 commits into
python-rt:masterfrom
nazywam:feature/get-attachment-params
Jul 2, 2026
Merged

Add query_format to attachment search#120
sim0nx merged 7 commits into
python-rt:masterfrom
nazywam:feature/get-attachment-params

Conversation

@nazywam

@nazywam nazywam commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

This pull requests adds a query_format parameter to sync/async get_attachments methods. Similar argument already exists for many other available methods like search, get_ticket, get_asset, etc.

Personally I'm using it to fetch the TransactionId for each attachment in order to find the attachments connected to the Create transaction.

Let me know if you'd like to see some new tests covering this addition

@codecov

codecov Bot commented Mar 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 89.74359% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.37%. Comparing base (e9f4b72) to head (53e084b).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
rt/rest2.py 71.42% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #120      +/-   ##
==========================================
+ Coverage   85.29%   85.37%   +0.08%     
==========================================
  Files          11       11              
  Lines        2122     2161      +39     
==========================================
+ Hits         1810     1845      +35     
- Misses        312      316       +4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sim0nx

sim0nx commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the PR. If you could indeed add some tests for this that would be nice

@sim0nx

sim0nx commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Please rebase from master and add some changelog as well please :-)
I just released a new version.

Thanks 🙈

@nazywam

nazywam commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

@sim0nx Added a small test, let me know what you think

@sim0nx

sim0nx commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

looks good to me, thanks

@sim0nx
sim0nx merged commit e3f515b into python-rt:master Jul 2, 2026
7 checks passed
@nazywam
nazywam deleted the feature/get-attachment-params branch July 3, 2026 08:43
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