@backstage/plugin-notifications-backend 0.5.7 → 0.5.8-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @backstage/plugin-notifications-backend
2
2
 
3
+ ## 0.5.8-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 9a5a73f: Fix `addTopic` migration when `user_settings` present
8
+ - Updated dependencies
9
+ - @backstage/plugin-auth-node@0.6.4
10
+ - @backstage/backend-plugin-api@1.4.0
11
+ - @backstage/plugin-catalog-node@1.17.1
12
+ - @backstage/plugin-events-node@0.4.12
13
+ - @backstage/plugin-notifications-node@0.2.16
14
+ - @backstage/catalog-model@1.7.4
15
+ - @backstage/config@1.3.2
16
+ - @backstage/errors@1.2.7
17
+ - @backstage/types@1.2.1
18
+ - @backstage/plugin-notifications-common@0.0.9
19
+ - @backstage/plugin-signals-node@0.1.21
20
+
3
21
  ## 0.5.7
4
22
 
5
23
  ### Patch Changes
@@ -18,14 +18,10 @@ const crypto = require('crypto');
18
18
  exports.up = async function up(knex) {
19
19
  await knex.schema.alterTable('user_settings', table => {
20
20
  table.string('topic').nullable().after('origin');
21
- table.string('settings_key_hash', 64).notNullable();
21
+ table.string('settings_key_hash', 64).nullable();
22
22
  table.dropUnique([], 'user_settings_unique_idx');
23
23
  });
24
24
 
25
- await knex.schema.alterTable('user_settings', table => {
26
- table.unique(['settings_key_hash'], 'user_settings_unique_idx');
27
- });
28
-
29
25
  const rows = await knex('user_settings').select('user', 'channel', 'origin');
30
26
  for (const row of rows) {
31
27
  const rawKey = `${row.user}|${row.channel}|${row.origin}|}`;
@@ -35,10 +31,14 @@ exports.up = async function up(knex) {
35
31
  user: row.user,
36
32
  channel: row.channel,
37
33
  origin: row.origin,
38
- topic: row.topic,
39
34
  })
40
35
  .update({ settings_key_hash: hash });
41
36
  }
37
+
38
+ await knex.schema.alterTable('user_settings', table => {
39
+ table.string('settings_key_hash', 64).notNullable().alter();
40
+ table.unique(['settings_key_hash'], 'user_settings_unique_idx');
41
+ });
42
42
  };
43
43
 
44
44
  exports.down = async function down(knex) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-notifications-backend",
3
- "version": "0.5.7",
3
+ "version": "0.5.8-next.0",
4
4
  "backstage": {
5
5
  "role": "backend-plugin",
6
6
  "pluginId": "notifications",
@@ -42,17 +42,17 @@
42
42
  "test": "backstage-cli package test"
43
43
  },
44
44
  "dependencies": {
45
- "@backstage/backend-plugin-api": "^1.4.0",
46
- "@backstage/catalog-model": "^1.7.4",
47
- "@backstage/config": "^1.3.2",
48
- "@backstage/errors": "^1.2.7",
49
- "@backstage/plugin-auth-node": "^0.6.4",
50
- "@backstage/plugin-catalog-node": "^1.17.1",
51
- "@backstage/plugin-events-node": "^0.4.12",
52
- "@backstage/plugin-notifications-common": "^0.0.9",
53
- "@backstage/plugin-notifications-node": "^0.2.16",
54
- "@backstage/plugin-signals-node": "^0.1.21",
55
- "@backstage/types": "^1.2.1",
45
+ "@backstage/backend-plugin-api": "1.4.0",
46
+ "@backstage/catalog-model": "1.7.4",
47
+ "@backstage/config": "1.3.2",
48
+ "@backstage/errors": "1.2.7",
49
+ "@backstage/plugin-auth-node": "0.6.4",
50
+ "@backstage/plugin-catalog-node": "1.17.1",
51
+ "@backstage/plugin-events-node": "0.4.12",
52
+ "@backstage/plugin-notifications-common": "0.0.9",
53
+ "@backstage/plugin-notifications-node": "0.2.16",
54
+ "@backstage/plugin-signals-node": "0.1.21",
55
+ "@backstage/types": "1.2.1",
56
56
  "express": "^4.17.1",
57
57
  "express-promise-router": "^4.1.0",
58
58
  "knex": "^3.0.0",
@@ -62,13 +62,13 @@
62
62
  "yn": "^4.0.0"
63
63
  },
64
64
  "devDependencies": {
65
- "@backstage/backend-defaults": "^0.11.0",
66
- "@backstage/backend-test-utils": "^1.6.0",
67
- "@backstage/cli": "^0.33.0",
68
- "@backstage/plugin-auth-backend": "^0.25.1",
69
- "@backstage/plugin-auth-backend-module-guest-provider": "^0.2.9",
70
- "@backstage/plugin-events-backend": "^0.5.3",
71
- "@backstage/plugin-signals-backend": "^0.3.5",
65
+ "@backstage/backend-defaults": "0.11.1-next.0",
66
+ "@backstage/backend-test-utils": "1.7.0-next.0",
67
+ "@backstage/cli": "0.33.1-next.0",
68
+ "@backstage/plugin-auth-backend": "0.25.1",
69
+ "@backstage/plugin-auth-backend-module-guest-provider": "0.2.9",
70
+ "@backstage/plugin-events-backend": "0.5.3",
71
+ "@backstage/plugin-signals-backend": "0.3.5",
72
72
  "@types/express": "^4.17.6",
73
73
  "@types/supertest": "^2.0.8",
74
74
  "msw": "^1.0.0",