Skip to content

Commit

Permalink
[Data Integrity Flag] Remove unused module (#5824)
Browse files Browse the repository at this point in the history
Remove unused data_integrity_flag module. This module presents
an unnecessary maintenance overhead and to the best of our knowledge
is unused by any LORIS instances.
  • Loading branch information
driusan authored Dec 6, 2019
1 parent caa7634 commit be7322f
Show file tree
Hide file tree
Showing 18 changed files with 5 additions and 751 deletions.
21 changes: 0 additions & 21 deletions SQL/0000-00-00-schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1177,27 +1177,6 @@ CREATE TABLE `certification_history` (
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='primaryVals should always contain a valid certID from the certification table';

-- ********************************
-- data_intergrity_flag tables
-- ********************************


CREATE TABLE `data_integrity_flag` (
`dataflag_id` int(11) NOT NULL AUTO_INCREMENT,
`dataflag_visitlabel` varchar(255) NOT NULL,
`dataflag_instrument` varchar(255) NOT NULL,
`dataflag_date` date NOT NULL,
`dataflag_status` int(11) NOT NULL,
`dataflag_comment` text,
`latest_entry` tinyint(1) NOT NULL DEFAULT '1',
`dataflag_fbcreated` int(11) NOT NULL DEFAULT '0',
`dataflag_fbclosed` int(11) NOT NULL DEFAULT '0',
`dataflag_fbcomment` int(11) NOT NULL DEFAULT '0',
`dataflag_fbdeleted` int(11) NOT NULL DEFAULT '0',
`dataflag_userid` varchar(255) NOT NULL,
PRIMARY KEY (`dataflag_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ********************************
-- user_account_history tables
-- ********************************
Expand Down
1 change: 0 additions & 1 deletion SQL/0000-00-01-Permission.sql
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ INSERT INTO `permissions` VALUES
(18,'data_dict_view','View Data Dictionary (Parameter type descriptions)','2'),
(19,'violated_scans_view_allsites','Violated Scans: View all-sites Violated Scans','2'),
(20,'violated_scans_edit','Violated Scans: Edit MRI protocol table','2'),
(21,'data_integrity_flag','Data Integrity Flag','2'),
(22,'config','Edit configuration settings','2'),
(23,'imaging_browser_view_site','View own-site Imaging Browser pages','2'),
(24,'imaging_browser_view_allsites', 'View all-sites Imaging Browser pages', '2'),
Expand Down
6 changes: 0 additions & 6 deletions SQL/0000-00-02-Menus.sql
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ INSERT INTO LorisMenu (Label, Link, Parent, OrderNumber) VALUES
INSERT INTO LorisMenu (Label, Link, Parent, OrderNumber) VALUES
('Data Dictionary', 'datadict/', (SELECT ID FROM LorisMenu as L WHERE Label='Tools'), 1),
('Document Repository', 'document_repository/', (SELECT ID FROM LorisMenu as L WHERE Label='Tools'), 2),
('Data Integrity Flag', 'data_integrity_flag/', (SELECT ID FROM LorisMenu as L WHERE Label='Tools'), 3),
('Instrument Builder', 'instrument_builder/', (SELECT ID FROM LorisMenu as L WHERE Label='Tools'), 5),
('Data Release', 'data_release/', (SELECT ID FROM LorisMenu as L WHERE Label='Tools'), 7),
('Acknowledgements', 'acknowledgements/', (SELECT ID FROM LorisMenu as L WHERE Label='Tools'), 8),
Expand Down Expand Up @@ -154,11 +153,6 @@ INSERT INTO LorisMenuPermissions (MenuID, PermID)
INSERT INTO LorisMenuPermissions (MenuID, PermID)
SELECT m.ID, p.PermID FROM permissions p CROSS JOIN LorisMenu m WHERE p.code='document_repository_view' AND m.Label='Document Repository';


INSERT INTO LorisMenuPermissions (MenuID, PermID) SELECT m.ID, p.PermID
FROM permissions p CROSS JOIN LorisMenu m WHERE p.code='data_integrity_flag' AND m.Label='Data Integrity Flag';


INSERT INTO LorisMenuPermissions (MenuID, PermID)
SELECT m.ID, p.PermID FROM permissions p CROSS JOIN LorisMenu m WHERE p.code='quality_control' AND m.Label='Behavioural Quality Control';

Expand Down
5 changes: 5 additions & 0 deletions SQL/Cleanup_patches/Remove-DataIntegrityFlag.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
DROP TABLE IF EXISTS `data_integrity_flag`;

DELETE FROM LorisMenuPermissions WHERE PermID IN (SELECT permID FROM permissions WHERE code='data_integrity_flag');
DELETE FROM permissions where code='data_integrity_flag';
DELETE FROM LorisMenu WHERE Link='data_integrity_flag/';
1 change: 0 additions & 1 deletion modules/data_integrity_flag/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions modules/data_integrity_flag/README

This file was deleted.

18 changes: 0 additions & 18 deletions modules/data_integrity_flag/help/data_integrity_flag.md

This file was deleted.

156 changes: 0 additions & 156 deletions modules/data_integrity_flag/jsx/dataIntegrityFlagIndex.js

This file was deleted.

123 changes: 0 additions & 123 deletions modules/data_integrity_flag/jsx/setFlagForm.js

This file was deleted.

Loading

0 comments on commit be7322f

Please sign in to comment.