Skip to content

fix: query filter in list task endpoint - #178

Merged
uniqueg merged 8 commits into
devfrom
fix_querry_filter
Jul 22, 2024
Merged

uniqueg merged 8 commits into
devfrom
fix_querry_filter

Conversation

@Ayush5120

@Ayush5120 Ayush5120 commented Jun 12, 2024 •

Copy link
Copy Markdown
Contributor

Fixes #177
Fixes #175

Summary by Sourcery

This pull request addresses a bug in the list tasks endpoint by ensuring that 'user_id' and 'name_prefix' filters are only added to the filter dictionary if they are not None.

  • Bug Fixes:
    • Fixed an issue where the 'user_id' and 'name_prefix' filters in the list tasks endpoint were not properly handling None values.

@sourcery-ai

sourcery-ai Bot commented Jun 12, 2024 •

Copy link
Copy Markdown

Reviewer's Guide by Sourcery

This pull request addresses issue #177 by fixing the query filter in the list task endpoint. The changes ensure that the filters for 'user_id' and 'name_prefix' are only added to the filter dictionary if they are not None, preventing potential errors when these values are missing.

File-Level Changes

Files Changes
pro_tes/ga4gh/tes/task_runs.py Improved the robustness of the query filter in the list task endpoint by adding None checks for 'user_id' and 'name_prefix'.

Tips
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey @Ayush5120 - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟡 Complexity: 1 issue found

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

Comment thread pro_tes/ga4gh/tes/task_runs.py Resolved
Comment thread pro_tes/ga4gh/tes/task_runs.py Resolved
@uniqueg uniqueg changed the title fix: querry filter in list task endpoint fix: query filter in list task endpoint Jun 17, 2024

@uniqueg uniqueg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me, but before merging: @athith-g - can you please confirm that this PR solves #175 for you?

@uniqueg
uniqueg requested a review from athith-g June 20, 2024 14:43

@athith-g athith-g left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It does fix #175 👍

@uniqueg uniqueg left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That's good to hear. However, linting and tests fail - please check, @Ayush5120 🙏

@Ayush5120
Ayush5120 requested a review from uniqueg June 24, 2024 06:47

@uniqueg uniqueg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you please explain why we are ignoring types?

Comment thread pro_tes/utils/db.py Resolved
Comment thread pro_tes/utils/db.py Resolved
Comment thread pro_tes/utils/db.py Resolved
Comment thread pro_tes/utils/db.py Resolved
@Ayush5120
Ayush5120 requested a review from uniqueg July 3, 2024 07:33
@athith-g athith-g mentioned this pull request Jul 9, 2024
6 of 9 tasks
@uniqueg
uniqueg merged commit 0920812 into dev Jul 22, 2024
@uniqueg
uniqueg deleted the fix_querry_filter branch July 22, 2024 14:03
keshxvdayal pushed a commit that referenced this pull request Feb 7, 2026
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.

fix: Handle None Values Correctly in List Task Endpoint Query Filter fix: Getting list of tasks not working without name prefix

3 participants