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

RDISCROWD-5484 Fix for sort on browse tasks #785

Merged
merged 3 commits into from
Oct 10, 2022
Merged

RDISCROWD-5484 Fix for sort on browse tasks #785

merged 3 commits into from
Oct 10, 2022

Conversation

kbecker42
Copy link

  • Bug fix for sorting on browse tasks.

@kbecker42 kbecker42 changed the title Fix for sort on browse tasks RDISCROWD-5484 Fix for sort on browse tasks Oct 10, 2022
@kbecker42 kbecker42 added the bug label Oct 10, 2022
@@ -252,7 +252,7 @@ def search_lock_status_sorting_result():
# if not sort by lock_status or locked_tasks_in_project is empty/None,
# sort by the column "order_by"
order_by = args.get('order_by')
sql_order_by = 'id ASC' if not (locked_tasks_in_project and order_by) else order_by
sql_order_by = order_by if not locked_tasks_in_project and order_by else 'id ASC'
Copy link
Author

Choose a reason for hiding this comment

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

The sort will not function if locked_tasks_in_project is TRUE. Perhaps, this line should be changed to:

sql_order_by = order_by or 'id ASC'

Copy link

@dchhabda dchhabda left a comment

Choose a reason for hiding this comment

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

Can be merged upon tests pass.

@coveralls
Copy link

coveralls commented Oct 10, 2022

Pull Request Test Coverage Report for Build 3220996668

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 94.833%

Totals Coverage Status
Change from base Build 3152778380: 0.0%
Covered Lines: 16279
Relevant Lines: 17166

💛 - Coveralls

@kbecker42 kbecker42 merged commit 0baedbf into main Oct 10, 2022
@dchhabda dchhabda deleted the RDISCROWD-5484 branch October 28, 2022 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants