[MM-45564] - Notify Admin v2 (#20777)
* [MM-45564] - Notify Admin v2 * add dummy data * update dummy data * add store methods * experiment with recurring task * complete saving of the notification * make improvements * make improvements * add store layer tests * fix lint * update store layer tests * add app layer unit tests * add store layers * add app layer tests * fix lint * fix lint * fix tests * fix tests lint * fix lint * fix lint * fix retry layer test * add notifications manual trigger * filter notifications based on current plan * add test case * temp change * feedback impl * fix translations * change job scheduler * refactor job * fix store layer tests * extract i18n * fix lint * fix translations * fix translations * add license statement for new file * feedback impl-2 * fix lint * update make file * add intl ids * improve * fix lint * feedback impl * move code and rename files * fix lint * feedback impl * add config for trigger notifications api * fix tests * tmp change * undo temp changes Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
c11ad8995f
Коммит
bd42f0cd8c
@@ -184,6 +184,8 @@ db/migrations/mysql/000091_create_post_reminder.down.sql
|
||||
db/migrations/mysql/000091_create_post_reminder.up.sql
|
||||
db/migrations/mysql/000092_add_createat_to_teammembers.down.sql
|
||||
db/migrations/mysql/000092_add_createat_to_teammembers.up.sql
|
||||
db/migrations/mysql/000093_notify_admin.down.sql
|
||||
db/migrations/mysql/000093_notify_admin.up.sql
|
||||
db/migrations/postgres/000001_create_teams.down.sql
|
||||
db/migrations/postgres/000001_create_teams.up.sql
|
||||
db/migrations/postgres/000002_create_team_members.down.sql
|
||||
@@ -368,3 +370,5 @@ db/migrations/postgres/000091_create_post_reminder.down.sql
|
||||
db/migrations/postgres/000091_create_post_reminder.up.sql
|
||||
db/migrations/postgres/000092_add_createat_to_teamembers.down.sql
|
||||
db/migrations/postgres/000092_add_createat_to_teamembers.up.sql
|
||||
db/migrations/postgres/000093_notify_admin.down.sql
|
||||
db/migrations/postgres/000093_notify_admin.up.sql
|
||||
|
||||
1
db/migrations/mysql/000093_notify_admin.down.sql
Обычный файл
1
db/migrations/mysql/000093_notify_admin.down.sql
Обычный файл
@@ -0,0 +1 @@
|
||||
DROP TABLE IF EXISTS NotifyAdmin;
|
||||
8
db/migrations/mysql/000093_notify_admin.up.sql
Обычный файл
8
db/migrations/mysql/000093_notify_admin.up.sql
Обычный файл
@@ -0,0 +1,8 @@
|
||||
CREATE TABLE IF NOT EXISTS NotifyAdmin (
|
||||
UserId varchar(26) NOT NULL,
|
||||
CreateAt bigint(20) DEFAULT NULL,
|
||||
RequiredPlan varchar(26) NOT NULL,
|
||||
RequiredFeature varchar(100) NOT NULL,
|
||||
Trial BOOLEAN NOT NULL,
|
||||
PRIMARY KEY (UserId, RequiredFeature, RequiredPlan)
|
||||
);
|
||||
1
db/migrations/postgres/000093_notify_admin.down.sql
Обычный файл
1
db/migrations/postgres/000093_notify_admin.down.sql
Обычный файл
@@ -0,0 +1 @@
|
||||
DROP TABLE IF EXISTS NotifyAdmin;
|
||||
8
db/migrations/postgres/000093_notify_admin.up.sql
Обычный файл
8
db/migrations/postgres/000093_notify_admin.up.sql
Обычный файл
@@ -0,0 +1,8 @@
|
||||
CREATE TABLE IF NOT EXISTS NotifyAdmin (
|
||||
UserId varchar(26) NOT NULL,
|
||||
CreateAt bigint DEFAULT NULL,
|
||||
RequiredPlan varchar(26) NOT NULL,
|
||||
RequiredFeature varchar(100) NOT NULL,
|
||||
Trial BOOLEAN NOT NULL,
|
||||
PRIMARY KEY (UserId, RequiredFeature, RequiredPlan)
|
||||
);
|
||||
Ссылка в новой задаче
Block a user