From 675f558a56a4110ddd6bd270ce0da70b9a640f3c Mon Sep 17 00:00:00 2001 From: Jumana Almahmoud Date: Sat, 8 Jan 2022 15:33:25 -0500 Subject: [PATCH 1/3] Max. # of threads --- .../20220108172527-insert-nb-configs-04.js | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 migrations/20220108172527-insert-nb-configs-04.js diff --git a/migrations/20220108172527-insert-nb-configs-04.js b/migrations/20220108172527-insert-nb-configs-04.js new file mode 100644 index 0000000..a403528 --- /dev/null +++ b/migrations/20220108172527-insert-nb-configs-04.js @@ -0,0 +1,21 @@ +'use strict'; + +module.exports = { + up: async (queryInterface, Sequelize) => { + queryInterface.bulkInsert('nb_configs', [ + { + name: 'FILTER_MAX_THREADS', + value: 'false', + description: 'Enable/Disable filtering max number of threads displayed' + }, + { + name: 'CONFIG_FILTER_MAX_THREADS', + value: '20', + description: 'Configurations for max number of threads displayed' + }, + ]) + }, + + down: async (queryInterface, Sequelize) => { + } +}; From 59b616d85d3970335a2e198aa12b78162f5f2316 Mon Sep 17 00:00:00 2001 From: Jumana Almahmoud Date: Sat, 8 Jan 2022 15:46:45 -0500 Subject: [PATCH 2/3] add isShowSpotlightControls --- migrations/20220108172527-insert-nb-configs-04.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/migrations/20220108172527-insert-nb-configs-04.js b/migrations/20220108172527-insert-nb-configs-04.js index a403528..ce711e2 100644 --- a/migrations/20220108172527-insert-nb-configs-04.js +++ b/migrations/20220108172527-insert-nb-configs-04.js @@ -13,6 +13,11 @@ module.exports = { value: '20', description: 'Configurations for max number of threads displayed' }, + { + name: 'SHOW_SPOTLIGHT_CONTROLS', + value: 'true', + description: 'Enable/Disable spotlight controls for instructors' + }, ]) }, From 5ea40088621e0c4e5b1e01e7610c90b63f4089aa Mon Sep 17 00:00:00 2001 From: Jumana Almahmoud Date: Sat, 8 Jan 2022 16:03:13 -0500 Subject: [PATCH 3/3] add syncNotificationPopupTimerConfig --- migrations/20220108172527-insert-nb-configs-04.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/migrations/20220108172527-insert-nb-configs-04.js b/migrations/20220108172527-insert-nb-configs-04.js index ce711e2..fa050c7 100644 --- a/migrations/20220108172527-insert-nb-configs-04.js +++ b/migrations/20220108172527-insert-nb-configs-04.js @@ -10,7 +10,7 @@ module.exports = { }, { name: 'CONFIG_FILTER_MAX_THREADS', - value: '20', + value: 20, description: 'Configurations for max number of threads displayed' }, { @@ -18,6 +18,11 @@ module.exports = { value: 'true', description: 'Enable/Disable spotlight controls for instructors' }, + { + name: 'CONFIG_SYNC_NOTIFICATION_POPUP_TIMER', + value: 60000, + description: 'Configurations for notification popup timer' + }, ]) },