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

replace RawSQL with ORM queries #36

Closed
atodorov opened this Issue Jun 7, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@atodorov
Copy link
Member

atodorov commented Jun 7, 2017

No description provided.

atodorov added a commit that referenced this issue Jun 25, 2018

atodorov added a commit that referenced this issue Jun 26, 2018

atodorov added a commit that referenced this issue Jul 1, 2018

Remove some RawSQL. Refs #36
- remove RawSQL.num_case_bugs - not in use at all
- replace RawSQL.num_cases with an annotated Count
- replace RawSQL.num_runs with an annotated Count
- replace RawSQL.num_plans with an annotated Count
  NOTE: num_children (aka RawSQL.num_plans) is removed from the
        query used in advanced search b/c I think the value is
        not used at all

atodorov added a commit that referenced this issue Jul 1, 2018

Refactor RawSQL.num_case_run_bugs. Refs #36
refactor into annotated Count

atodorov added a commit that referenced this issue Jul 1, 2018

Remove RawSQL queries. Fixes #36
case_runs_count_by_status_under_run & custom_details_case_run_count
were never used in the code.

the rest of the queries are used in Overall Report and are rewriten
to use a sub-query and annotated counts.

atodorov added a commit that referenced this issue Jul 2, 2018

Remove some RawSQL. Refs #36
- remove RawSQL.num_case_bugs - not in use at all
- replace RawSQL.num_cases with an annotated Count
- replace RawSQL.num_runs with an annotated Count
- replace RawSQL.num_plans with an annotated Count
  NOTE: num_children (aka RawSQL.num_plans) is removed from the
        query used in advanced search b/c I think the value is
        not used at all

atodorov added a commit that referenced this issue Jul 2, 2018

Refactor RawSQL.num_case_run_bugs. Refs #36
refactor into annotated Count

@atodorov atodorov closed this in 9696f25 Jul 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.