backend-manager 5.9.16 → 5.9.17
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/package.json +1 -1
- package/src/manager/events/cron/daily/blog-auto-publisher.js +1 -0
- package/src/manager/libraries/content/ghostii.js +2 -1
- package/src/manager/routes/admin/post/post.js +1 -0
- package/src/manager/routes/admin/post/templates/post.html +1 -0
- package/src/manager/routes/content/post/get.js +1 -0
- package/src/test/fixtures/firebase-project/.temp/test-mode.json +1 -1
- package/src/test/fixtures/firebase-project/database-debug.log +8 -8
- package/src/test/fixtures/firebase-project/firestore-debug.log +56 -56
- package/src/test/fixtures/firebase-project/pubsub-debug.log +3 -3
package/package.json
CHANGED
|
@@ -222,6 +222,7 @@ async function harvest(assistant, entry, admin, provider, Manager) {
|
|
|
222
222
|
id: postId++,
|
|
223
223
|
author: entry.author,
|
|
224
224
|
postPath: entry.postPath,
|
|
225
|
+
source: resolved.trackingData?.url || null,
|
|
225
226
|
}).catch((e) => e);
|
|
226
227
|
if (uploadedPost instanceof Error) {
|
|
227
228
|
assistant.error('harvest(): Error uploading post to blog', uploadedPost);
|
|
@@ -130,7 +130,7 @@ function blocksToPost(json) {
|
|
|
130
130
|
* @param {string} [args.postPath='ghostii'] - Sub-folder under _posts/{year}/
|
|
131
131
|
* @returns {Promise<object>} { post, url, slug, path } — `url` is the public blog URL
|
|
132
132
|
*/
|
|
133
|
-
async function publishArticle(assistant, { brand, article, id, author, postPath }) {
|
|
133
|
+
async function publishArticle(assistant, { brand, article, id, author, postPath, source }) {
|
|
134
134
|
const baseUrl = (brand.brand.url || '').replace(/^https?:\/\//, '').replace(/\/$/, '');
|
|
135
135
|
const apiUrl = `https://api.${baseUrl}`;
|
|
136
136
|
|
|
@@ -159,6 +159,7 @@ async function publishArticle(assistant, { brand, article, id, author, postPath
|
|
|
159
159
|
categories: article.categories,
|
|
160
160
|
tags: article.keywords,
|
|
161
161
|
postPath: postPath || 'ghostii',
|
|
162
|
+
source: source || null,
|
|
162
163
|
githubUser: brand.github.user,
|
|
163
164
|
githubRepo: brand.github.repo,
|
|
164
165
|
},
|
|
@@ -87,6 +87,7 @@ module.exports = async ({ assistant, Manager, user, settings, analytics }) => {
|
|
|
87
87
|
settings.tags = settings.tags;
|
|
88
88
|
settings.categories = settings.categories;
|
|
89
89
|
settings.layout = settings.layout;
|
|
90
|
+
settings.source = settings.source || null;
|
|
90
91
|
settings.date = moment(settings.date || now).subtract(1, 'days').format('YYYY-MM-DD');
|
|
91
92
|
settings.id = settings.id || Math.round(new Date(now).getTime() / 1000);
|
|
92
93
|
settings.directory = `src/_posts/${moment(now).format('YYYY')}/${settings.postPath}`;
|
|
@@ -100,6 +100,7 @@ module.exports = async ({ assistant, Manager, settings, analytics }) => {
|
|
|
100
100
|
id: parsed.post.id,
|
|
101
101
|
tags: parsed.post.tags,
|
|
102
102
|
categories: parsed.post.categories,
|
|
103
|
+
source: parsed.post.source || null,
|
|
103
104
|
|
|
104
105
|
// Derived
|
|
105
106
|
headerImageURL: `${url.origin}/assets/images/blog/post-${parsed.post.id}/${filename}.jpg`,
|
|
@@ -2,11 +2,11 @@ WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
|
|
2
2
|
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by akka.util.Unsafe (file:/Users/ian/.cache/firebase/emulators/firebase-database-emulator-v4.11.2.jar)
|
|
3
3
|
WARNING: Please consider reporting this to the maintainers of class akka.util.Unsafe
|
|
4
4
|
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
17:05:48.613 [NamespaceSystem-akka.actor.default-dispatcher-4] INFO akka.event.slf4j.Slf4jLogger - Slf4jLogger started
|
|
6
|
+
17:05:48.710 [main] INFO com.firebase.server.forge.App$ - Listening at 127.0.0.1:9000
|
|
7
|
+
17:05:58.279 [NamespaceSystem-akka.actor.default-dispatcher-4] INFO com.firebase.core.namespace.NamespaceActor - demo-backend-manager-default-rtdb successfully activated FBKV (SurveyIdle(0)) wait: 70ms, init: 0ms
|
|
8
|
+
17:05:58.314 [NamespaceSystem-blocking-namespace-operation-dispatcher-6] INFO com.firebase.core.namespace.StateManager - Namespace demo-backend-manager-default-rtdb status Active to Active
|
|
9
|
+
17:06:10.472 [Thread-0] INFO com.firebase.server.forge.App$ - Attempting graceful shutdown.
|
|
10
|
+
17:06:10.477 [NamespaceSystem-akka.actor.default-dispatcher-4] INFO com.firebase.core.namespace.Terminator$Terminator - 1 actors left to terminate: demo-backend-manager-default-rtdb
|
|
11
|
+
17:06:10.480 [NamespaceSystem-akka.actor.default-dispatcher-4] INFO com.firebase.core.namespace.NamespaceActor - stopped namespace actor for demo-backend-manager-default-rtdb
|
|
12
|
+
17:06:10.483 [Thread-0] INFO com.firebase.server.forge.App$ - Graceful shutdown complete.
|
|
@@ -2,7 +2,7 @@ WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
|
|
2
2
|
WARNING: sun.misc.Unsafe::allocateMemory has been called by io.netty.util.internal.PlatformDependent0$2 (file:/Users/ian/.cache/firebase/emulators/cloud-firestore-emulator-v1.21.0.jar)
|
|
3
3
|
WARNING: Please consider reporting this to the maintainers of class io.netty.util.internal.PlatformDependent0$2
|
|
4
4
|
WARNING: sun.misc.Unsafe::allocateMemory will be removed in a future release
|
|
5
|
-
Jun
|
|
5
|
+
Jun 26, 2026 5:05:47 PM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketServer start
|
|
6
6
|
INFO: Started WebSocket server on ws://127.0.0.1:9150
|
|
7
7
|
|
|
8
8
|
API endpoint: http://127.0.0.1:8080
|
|
@@ -20,115 +20,115 @@ If you are running a Firestore in Datastore Mode project, run:
|
|
|
20
20
|
Note: Support for Datastore Mode is in preview. If you encounter any bugs please file at https://github.com/firebase/firebase-tools/issues.
|
|
21
21
|
Dev App Server is now running.
|
|
22
22
|
|
|
23
|
-
Jun
|
|
23
|
+
Jun 26, 2026 5:05:57 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
24
24
|
INFO: Detected non-HTTP/2 connection.
|
|
25
|
-
Jun
|
|
25
|
+
Jun 26, 2026 5:05:57 PM io.grpc.netty.TcpMetrics loadEpollInfo
|
|
26
26
|
INFO: Epoll available during static init of TcpMetrics:false
|
|
27
|
-
Jun
|
|
27
|
+
Jun 26, 2026 5:05:57 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
28
28
|
INFO: Detected HTTP/2 connection.
|
|
29
|
-
Jun
|
|
29
|
+
Jun 26, 2026 5:05:59 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
30
30
|
INFO: Detected HTTP/2 connection.
|
|
31
|
-
Jun
|
|
31
|
+
Jun 26, 2026 5:05:59 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
32
32
|
INFO: Detected HTTP/2 connection.
|
|
33
|
-
Jun
|
|
33
|
+
Jun 26, 2026 5:06:08 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
34
34
|
INFO: Detected HTTP/2 connection.
|
|
35
|
-
Jun
|
|
35
|
+
Jun 26, 2026 5:06:08 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
36
36
|
INFO: Detected HTTP/2 connection.
|
|
37
|
-
Jun
|
|
37
|
+
Jun 26, 2026 5:06:08 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
38
38
|
INFO: Detected HTTP/2 connection.
|
|
39
|
-
Jun
|
|
39
|
+
Jun 26, 2026 5:06:08 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
40
40
|
INFO: Detected HTTP/2 connection.
|
|
41
|
-
Jun
|
|
41
|
+
Jun 26, 2026 5:06:08 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
42
42
|
INFO: Detected HTTP/2 connection.
|
|
43
|
-
Jun
|
|
43
|
+
Jun 26, 2026 5:06:08 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
44
44
|
INFO: Detected HTTP/2 connection.
|
|
45
|
-
Jun
|
|
45
|
+
Jun 26, 2026 5:06:08 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
46
46
|
INFO: Detected HTTP/2 connection.
|
|
47
|
-
Jun
|
|
47
|
+
Jun 26, 2026 5:06:08 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
48
48
|
INFO: Detected HTTP/2 connection.
|
|
49
|
-
Jun
|
|
49
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
50
50
|
INFO: Detected HTTP/2 connection.
|
|
51
|
-
Jun
|
|
51
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
52
52
|
INFO: Detected HTTP/2 connection.
|
|
53
|
-
Jun
|
|
53
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
54
54
|
INFO: Detected HTTP/2 connection.
|
|
55
|
-
Jun
|
|
55
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
56
56
|
INFO: Detected HTTP/2 connection.
|
|
57
|
-
Jun
|
|
57
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
58
58
|
INFO: Detected HTTP/2 connection.
|
|
59
|
-
Jun
|
|
59
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
60
60
|
INFO: Detected HTTP/2 connection.
|
|
61
|
-
Jun
|
|
61
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
62
62
|
INFO: Detected HTTP/2 connection.
|
|
63
|
-
Jun
|
|
63
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
64
64
|
INFO: Detected HTTP/2 connection.
|
|
65
|
-
Jun
|
|
65
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
66
66
|
INFO: Detected HTTP/2 connection.
|
|
67
|
-
Jun
|
|
67
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
68
68
|
INFO: Detected HTTP/2 connection.
|
|
69
|
-
Jun
|
|
69
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
70
70
|
INFO: Detected HTTP/2 connection.
|
|
71
|
-
Jun
|
|
71
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
72
72
|
INFO: Detected HTTP/2 connection.
|
|
73
|
-
Jun
|
|
73
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
74
74
|
INFO: Detected HTTP/2 connection.
|
|
75
|
-
Jun
|
|
75
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
76
76
|
INFO: Detected HTTP/2 connection.
|
|
77
|
-
Jun
|
|
77
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
78
78
|
INFO: Detected HTTP/2 connection.
|
|
79
|
-
Jun
|
|
79
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
80
80
|
INFO: Detected HTTP/2 connection.
|
|
81
|
-
Jun
|
|
81
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
82
82
|
INFO: Detected HTTP/2 connection.
|
|
83
|
-
Jun
|
|
83
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
84
84
|
INFO: Detected HTTP/2 connection.
|
|
85
|
-
Jun
|
|
85
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
86
86
|
INFO: Detected HTTP/2 connection.
|
|
87
|
-
Jun
|
|
87
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
88
88
|
INFO: Detected HTTP/2 connection.
|
|
89
|
-
Jun
|
|
89
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
90
90
|
INFO: Detected HTTP/2 connection.
|
|
91
|
-
Jun
|
|
91
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
92
92
|
INFO: Detected HTTP/2 connection.
|
|
93
|
-
Jun
|
|
93
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
94
94
|
INFO: Detected HTTP/2 connection.
|
|
95
|
-
Jun
|
|
95
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
96
96
|
INFO: Detected HTTP/2 connection.
|
|
97
|
-
Jun
|
|
97
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
98
98
|
INFO: Detected HTTP/2 connection.
|
|
99
|
-
Jun
|
|
99
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
100
100
|
INFO: Detected HTTP/2 connection.
|
|
101
|
-
Jun
|
|
101
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
102
102
|
INFO: Detected HTTP/2 connection.
|
|
103
|
-
Jun
|
|
103
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
104
104
|
INFO: Detected HTTP/2 connection.
|
|
105
|
-
Jun
|
|
105
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
106
106
|
INFO: Detected HTTP/2 connection.
|
|
107
|
-
Jun
|
|
107
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
108
108
|
INFO: Detected HTTP/2 connection.
|
|
109
|
-
Jun
|
|
109
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
110
110
|
INFO: Detected HTTP/2 connection.
|
|
111
|
-
Jun
|
|
111
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
112
112
|
INFO: Detected HTTP/2 connection.
|
|
113
|
-
Jun
|
|
113
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
114
114
|
INFO: Detected HTTP/2 connection.
|
|
115
|
-
Jun
|
|
115
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
116
116
|
INFO: Detected HTTP/2 connection.
|
|
117
|
-
Jun
|
|
117
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
118
118
|
INFO: Detected HTTP/2 connection.
|
|
119
|
-
Jun
|
|
119
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
120
120
|
INFO: Detected HTTP/2 connection.
|
|
121
|
-
Jun
|
|
121
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
122
122
|
INFO: Detected HTTP/2 connection.
|
|
123
|
-
Jun
|
|
123
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
124
124
|
INFO: Detected HTTP/2 connection.
|
|
125
|
-
Jun
|
|
125
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
126
126
|
INFO: Detected HTTP/2 connection.
|
|
127
|
-
Jun
|
|
127
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
128
128
|
INFO: Detected HTTP/2 connection.
|
|
129
|
-
Jun
|
|
129
|
+
Jun 26, 2026 5:06:09 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
130
130
|
INFO: Detected HTTP/2 connection.
|
|
131
|
-
Jun
|
|
131
|
+
Jun 26, 2026 5:06:10 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
132
132
|
INFO: Detected HTTP/2 connection.
|
|
133
133
|
*** shutting down gRPC server since JVM is shutting down
|
|
134
134
|
*** server shut down
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
This is the Google Pub/Sub fake.
|
|
2
2
|
Implementation may be incomplete or differ from the real system.
|
|
3
|
-
Jun
|
|
3
|
+
Jun 26, 2026 5:05:51 PM com.google.cloud.pubsub.testing.v1.Main main
|
|
4
4
|
INFO: IAM integration is disabled. IAM policy methods and ACL checks are not supported
|
|
5
5
|
SLF4J(W): No SLF4J providers were found.
|
|
6
6
|
SLF4J(W): Defaulting to no-operation (NOP) logger implementation
|
|
@@ -9,9 +9,9 @@ WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
|
|
9
9
|
WARNING: sun.misc.Unsafe::allocateMemory has been called by io.netty.util.internal.PlatformDependent0$2 (file:/Users/ian/.cache/firebase/emulators/pubsub-emulator-0.8.33/pubsub-emulator/lib/cloud-pubsub-emulator-0.8.33-all.jar)
|
|
10
10
|
WARNING: Please consider reporting this to the maintainers of class io.netty.util.internal.PlatformDependent0$2
|
|
11
11
|
WARNING: sun.misc.Unsafe::allocateMemory will be removed in a future release
|
|
12
|
-
Jun
|
|
12
|
+
Jun 26, 2026 5:05:52 PM com.google.cloud.pubsub.testing.v1.Main main
|
|
13
13
|
INFO: Server started, listening on 8085
|
|
14
|
-
Jun
|
|
14
|
+
Jun 26, 2026 5:05:58 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead
|
|
15
15
|
INFO: Detected HTTP/2 connection.
|
|
16
16
|
*** shutting down gRPC server since JVM is shutting down
|
|
17
17
|
*** server shut down
|