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

Add select field to folders find method #500

Merged

Conversation

SubashPradhan
Copy link
Contributor

Description

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@@ -28,9 +28,10 @@ def list(identifier:, query_params: nil)
# @param identifier [String] Grant ID or email account to query.
# @param folder_id [String] The id of the folder to return.
Copy link
Contributor

@AaronDDM AaronDDM Nov 4, 2024

Choose a reason for hiding this comment

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

Update the doc comments

@@ -42,7 +42,7 @@
folder_id = "5d3qmne77v32r8l4phyuksl2x"
path = "#{api_uri}/v3/grants/#{identifier}/folders/#{folder_id}"
allow(folders).to receive(:get)
.with(path: path)
.with(path: path, query_params: nil)
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a new test that tests the query param as well

@bmulholland
Copy link

Thanks for this! Just noticed that threads.find is also missing the same. Any chance we could get that while you're at it?

@SubashPradhan
Copy link
Contributor Author

Thanks for this! Just noticed that threads.find is also missing the same. Any chance we could get that while you're at it?

Sure, thanks for pointing that out.

Copy link

codecov bot commented Nov 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.83%. Comparing base (8490435) to head (6c7d363).
Report is 34 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #500      +/-   ##
==========================================
- Coverage   99.85%   98.83%   -1.02%     
==========================================
  Files          24       29       +5     
  Lines         681      774      +93     
==========================================
+ Hits          680      765      +85     
- Misses          1        9       +8     

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

@SubashPradhan SubashPradhan merged commit 25b9aad into main Nov 4, 2024
6 checks passed
@bmulholland
Copy link

FYI I've tried this out in production and it's working well. Thank you!

@SubashPradhan SubashPradhan mentioned this pull request Nov 12, 2024
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.

3 participants