-
Notifications
You must be signed in to change notification settings - Fork 177
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
[Login] Summary Statistics #9518
Merged
driusan
merged 21 commits into
aces:main
from
skarya22:2024_12_20_Login_Summary_Statistics
Feb 12, 2025
Merged
Changes from 20 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
11c5fe6
[Login] Summary Statistics
skarya22 8d5dedc
Add SQL File ability
skarya22 ddf2688
Add default queries
skarya22 0003047
Merge remote-tracking branch 'aces/main' into 2024_12_20_Login_Summar…
skarya22 72b13f0
Add export as csv
skarya22 12daffb
Fix php formatting
skarya22 f3ea9d7
Add ordering
skarya22 8120431
Edge cases for project names
skarya22 3d7d972
Add EEG
skarya22 82b7597
Merge branch '2024_12_20_Login_Summary_Statistics' of https://github.…
skarya22 ac13cf7
Cleanup
skarya22 b53883e
Merge remote-tracking branch 'aces/main' into 2024_12_20_Login_Summar…
skarya22 ae8f645
Try to fix LORIS Integration login test
skarya22 c465451
Attempt to fix integration test loading of login page again
skarya22 7df2508
Clipboard icon
skarya22 a599a0e
Update readme
skarya22 066648c
Remove leftover code
skarya22 e5e2305
Final Cleanup
skarya22 91caf91
Class component to functional component
skarya22 40a8e80
Cleanup
skarya22 69e4a96
Remove RB modification from release patch
skarya22 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
SELECT | ||
IFNULL(Project.Name, 'All Projects') as ProjectName, | ||
COUNT(DISTINCT c.CandID) AS count | ||
FROM candidate c | ||
JOIN Project ON c.RegistrationProjectID = Project.ProjectID | ||
WHERE Project.showSummaryOnLogin = 1 | ||
AND c.Sex = 'Female' | ||
AND Entity_type = 'Human' | ||
GROUP BY Project.Name WITH ROLLUP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
SELECT | ||
IFNULL(Project.Name, 'All Projects') as ProjectName, | ||
COUNT(DISTINCT c.CandID) AS count | ||
FROM candidate c | ||
JOIN Project ON c.RegistrationProjectID = Project.ProjectID | ||
WHERE Project.showSummaryOnLogin = 1 | ||
AND c.Sex = 'Male' | ||
AND Entity_type = 'Human' | ||
GROUP BY Project.Name WITH ROLLUP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
SELECT | ||
IFNULL(Project.Name, 'All Projects') as ProjectName, | ||
COUNT(DISTINCT psc.CenterID) AS count | ||
FROM psc | ||
JOIN session s ON s.CenterID = psc.CenterID | ||
JOIN Project ON s.ProjectID = Project.ProjectID | ||
WHERE Project.showSummaryOnLogin = 1 | ||
GROUP BY Project.Name WITH ROLLUP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
SELECT | ||
IFNULL(Project.Name, 'All Projects') as ProjectName, | ||
COUNT(CandID) AS count | ||
FROM session s | ||
JOIN Project ON s.ProjectID = Project.ProjectID | ||
WHERE Project.showSummaryOnLogin = 1 | ||
GROUP BY Project.Name WITH ROLLUP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
SELECT | ||
IFNULL(Project.Name, 'All Projects') as ProjectName, | ||
COUNT(DISTINCT TestID) AS count | ||
FROM flag f | ||
JOIN session s ON s.ID = f.SessionID | ||
JOIN Project ON s.ProjectID = Project.ProjectID | ||
WHERE Project.showSummaryOnLogin = 1 | ||
GROUP BY Project.Name WITH ROLLUP; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
SELECT | ||
IFNULL(Project.Name, 'All Projects') as ProjectName, | ||
COUNT(FileID) AS count | ||
FROM files f | ||
JOIN session s ON s.ID = f.SessionID | ||
JOIN Project ON s.ProjectID = Project.ProjectID | ||
WHERE Project.showSummaryOnLogin = 1 | ||
GROUP BY Project.Name WITH ROLLUP; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
SELECT | ||
IFNULL(Project.Name, 'All Projects') as ProjectName, | ||
COUNT(PhysiologicalFileID) AS count | ||
FROM physiological_parameter_file ppf | ||
LEFT JOIN physiological_file USING (PhysiologicalFileID) | ||
LEFT JOIN physiological_output_type USING (PhysiologicalOutputTypeID) | ||
LEFT JOIN Project ON ppf.ProjectID = Project.ProjectID | ||
WHERE ( | ||
ParameterTypeID = ( | ||
SELECT ParameterTypeID | ||
FROM parameter_type | ||
WHERE Name = 'RecordingDuration' | ||
) | ||
) | ||
-- AND OutputTypeName = 'raw' | ||
AND Project.showSummaryOnLogin = 1 | ||
GROUP BY Project.Name WITH ROLLUP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CREATE TABLE Login_Summary_Statistics ( | ||
Title VARCHAR(255), | ||
Project VARCHAR(255), | ||
Value INT, | ||
QueryOrder INT, | ||
PRIMARY KEY (Title, Project) | ||
); | ||
|
||
ALTER TABLE dataquery_study_queries_rel | ||
MODIFY COLUMN PinType enum('topquery','dashboard', 'loginpage') DEFAULT NULL; | ||
|
||
ALTER TABLE Project | ||
ADD COLUMN showSummaryOnLogin BOOLEAN DEFAULT TRUE; | ||
|
||
UPDATE Project SET showSummaryOnLogin = FALSE WHERE Name = 'DCP'; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the show
showSummaryOnLogin
column is for projects to be able to opt-out from being displayed on the login page, and then DCP is added as an example of how to do that in raisinbreadThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But this patch is going to the release patch, not raisinbread. Can you remove this RB specific line?