Don't check memberships in stat queries
This commit is contained in:
@@ -29,7 +29,6 @@ join members m on
|
|||||||
join teams t on
|
join teams t on
|
||||||
m.team_id = t.id
|
m.team_id = t.id
|
||||||
where
|
where
|
||||||
m.id is not null and
|
|
||||||
c.owner = :org and
|
c.owner = :org and
|
||||||
c.week >= :from and
|
c.week >= :from and
|
||||||
c.week <= :to
|
c.week <= :to
|
||||||
@@ -49,7 +48,6 @@ join members m on
|
|||||||
join teams t on
|
join teams t on
|
||||||
m.team_id = t.id
|
m.team_id = t.id
|
||||||
where
|
where
|
||||||
m.id is not null and
|
|
||||||
c.owner = :org and
|
c.owner = :org and
|
||||||
c.week >= :from and
|
c.week >= :from and
|
||||||
c.week <= :to
|
c.week <= :to
|
||||||
@@ -69,7 +67,6 @@ join teams t on
|
|||||||
m.team_id = t.id and
|
m.team_id = t.id and
|
||||||
t.name = :team
|
t.name = :team
|
||||||
where
|
where
|
||||||
m.id is not null and
|
|
||||||
c.owner = :org and
|
c.owner = :org and
|
||||||
c.week >= :from and
|
c.week >= :from and
|
||||||
c.week <= :to
|
c.week <= :to
|
||||||
@@ -90,7 +87,6 @@ join teams t on
|
|||||||
m.team_id = t.id and
|
m.team_id = t.id and
|
||||||
t.name = :team
|
t.name = :team
|
||||||
where
|
where
|
||||||
m.id is not null and
|
|
||||||
c.owner = :org and
|
c.owner = :org and
|
||||||
c.week >= :from and
|
c.week >= :from and
|
||||||
c.week <= :to
|
c.week <= :to
|
||||||
@@ -138,7 +134,6 @@ join members m on
|
|||||||
join teams t on
|
join teams t on
|
||||||
m.team_id = t.id
|
m.team_id = t.id
|
||||||
where
|
where
|
||||||
m.id is not null and
|
|
||||||
c.owner = :org and
|
c.owner = :org and
|
||||||
c.repo = :repo and
|
c.repo = :repo and
|
||||||
c.week >= :from and
|
c.week >= :from and
|
||||||
@@ -159,7 +154,6 @@ join members m on
|
|||||||
join teams t on
|
join teams t on
|
||||||
m.team_id = t.id
|
m.team_id = t.id
|
||||||
where
|
where
|
||||||
m.id is not null and
|
|
||||||
c.owner = :org and
|
c.owner = :org and
|
||||||
c.repo = :repo and
|
c.repo = :repo and
|
||||||
c.week >= :from and
|
c.week >= :from and
|
||||||
|
|||||||
Reference in New Issue
Block a user