Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
153
Issues
153
List
Board
Labels
Milestones
Merge Requests
12
Merge Requests
12
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
1a806995
Commit
1a806995
authored
Feb 29, 2024
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[METRICS] with increase part
parent
2b1f0858
Pipeline
#5679
passed with stages
in 107 minutes and 59 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
5 deletions
+39
-5
corpora.sql
bin/metrics/corpora.sql
+9
-1
graphs.sql
bin/metrics/graphs.sql
+6
-1
phylo.sql
bin/metrics/phylo.sql
+6
-1
teams.sql
bin/metrics/teams.sql
+9
-1
users.sql
bin/metrics/users.sql
+9
-1
No files found.
bin/metrics/corpora.sql
View file @
1a806995
select
count
(
*
)
from
nodes
n
where
n
.
typename
=
30
;
WITH
total
AS
(
SELECT
*
from
nodes
n
where
n
.
typename
=
30
)
,
sum
AS
(
SELECT
count
(
*
)
from
total
)
,
increase
AS
(
SELECT
count
(
*
)
from
total
as
t
WHERE
t
.
date
>=
date_trunc
(
'month'
,
current_date
-
interval
'3'
month
))
SELECT
*
,
(
SELECT
(
100
*
(
SELECT
*
from
increase
)
/
(
SELECT
*
from
sum
)))
AS
"LAST 3 MONTHS / TOTAL"
FROM
sum
bin/metrics/graphs.sql
View file @
1a806995
select
count
(
*
)
from
nodes
n
where
n
.
typename
=
9
;
WITH
total
AS
(
SELECT
*
from
nodes
n
where
n
.
typename
=
9
)
,
sum
AS
(
SELECT
count
(
*
)
from
total
)
,
increase
AS
(
SELECT
count
(
*
)
from
total
as
t
WHERE
t
.
date
>=
date_trunc
(
'month'
,
current_date
-
interval
'3'
month
))
SELECT
*
,
(
SELECT
(
100
*
(
SELECT
*
from
increase
)
/
(
SELECT
*
from
sum
)))
AS
"LAST 3 MONTHS / TOTAL"
FROM
sum
bin/metrics/phylo.sql
View file @
1a806995
select
count
(
*
)
from
nodes
n
where
n
.
typename
=
90
;
WITH
total
AS
(
SELECT
*
from
nodes
n
where
n
.
typename
=
90
)
,
sum
AS
(
SELECT
count
(
*
)
from
total
)
,
increase
AS
(
SELECT
count
(
*
)
from
total
as
t
WHERE
t
.
date
>=
date_trunc
(
'month'
,
current_date
-
interval
'3'
month
))
SELECT
*
,
(
SELECT
(
100
*
(
SELECT
*
from
increase
)
/
(
SELECT
*
from
sum
)))
AS
"LAST 3 MONTHS / TOTAL"
FROM
sum
bin/metrics/teams.sql
View file @
1a806995
select
count
(
*
)
from
nodes
n
where
n
.
typename
=
210
;
WITH
total
AS
(
SELECT
*
from
nodes
n
where
n
.
typename
=
210
)
,
sum
AS
(
SELECT
count
(
*
)
from
total
)
,
increase
AS
(
SELECT
count
(
*
)
from
total
as
t
WHERE
t
.
date
>=
date_trunc
(
'month'
,
current_date
-
interval
'3'
month
))
SELECT
*
,
(
SELECT
(
100
*
(
SELECT
*
from
increase
)
/
(
SELECT
*
from
sum
)))
AS
"LAST 3 MONTHS / TOTAL"
FROM
sum
bin/metrics/users.sql
View file @
1a806995
select
count
(
*
)
from
auth_user
;
WITH
total
AS
(
SELECT
*
from
auth_user
as
A
)
,
sum
AS
(
SELECT
count
(
*
)
from
total
)
,
increase
AS
(
SELECT
count
(
*
)
from
total
as
t
WHERE
t
.
date_joined
>=
date_trunc
(
'month'
,
current_date
-
interval
'3'
month
))
SELECT
*
,
(
SELECT
(
100
*
(
SELECT
*
from
increase
)
/
(
SELECT
*
from
sum
)))
AS
"LAST 3 MONTHS / TOTAL"
FROM
sum
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment