mirror of
https://github.com/hcengineering/platform.git
synced 2025-03-19 13:18:56 +00:00
Merge remote-tracking branch 'origin/develop'
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
commit
cf53ac25b7
@ -140,12 +140,13 @@ Development mode allows for live reloading and a smoother development process.
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd dev/prod
|
cd dev/prod
|
||||||
|
rush validate
|
||||||
rushx dev-server
|
rushx dev-server
|
||||||
```
|
```
|
||||||
|
|
||||||
Then go to http://localhost:8080
|
Then go to http://localhost:8080
|
||||||
|
|
||||||
Use the following login credentials:
|
Click on "Login with password" link on the bottom of the right panel and use the following login credentials:
|
||||||
|
|
||||||
```plain
|
```plain
|
||||||
Email: user1
|
Email: user1
|
||||||
|
@ -197,8 +197,12 @@ async function processMigrateMarkupFor (
|
|||||||
const blob = await storageAdapter.stat(ctx, workspaceId, documentId)
|
const blob = await storageAdapter.stat(ctx, workspaceId, documentId)
|
||||||
// only for documents not in storage
|
// only for documents not in storage
|
||||||
if (blob === undefined) {
|
if (blob === undefined) {
|
||||||
const ydoc = markupToYDoc(value, attribute.name)
|
try {
|
||||||
await saveCollaborativeDoc(storageAdapter, workspaceId, collaborativeDoc, ydoc, ctx)
|
const ydoc = markupToYDoc(value, attribute.name)
|
||||||
|
await saveCollaborativeDoc(storageAdapter, workspaceId, collaborativeDoc, ydoc, ctx)
|
||||||
|
} catch (err) {
|
||||||
|
console.error('failed to process document', doc._class, doc._id, err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -230,8 +230,12 @@ async function processMigrateContentFor (
|
|||||||
const blob = await storageAdapter.stat(ctx, client.workspaceId, documentId)
|
const blob = await storageAdapter.stat(ctx, client.workspaceId, documentId)
|
||||||
// only for documents not in storage
|
// only for documents not in storage
|
||||||
if (blob === undefined) {
|
if (blob === undefined) {
|
||||||
const ydoc = markupToYDoc(value, attribute.name)
|
try {
|
||||||
await saveCollaborativeDoc(storageAdapter, client.workspaceId, collaborativeDoc, ydoc, ctx)
|
const ydoc = markupToYDoc(value, attribute.name)
|
||||||
|
await saveCollaborativeDoc(storageAdapter, client.workspaceId, collaborativeDoc, ydoc, ctx)
|
||||||
|
} catch (err) {
|
||||||
|
console.error('failed to process document', doc._class, doc._id, err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
update[attributeName] = collaborativeDoc
|
update[attributeName] = collaborativeDoc
|
||||||
|
Loading…
Reference in New Issue
Block a user