Move document improvements (#927)

* Show all collections in UI

* Introduce command pattern

* Actually remove from previous collection

* Stash

* Fixes: Promises resolved outside of response lifecycle

* 💚

* 💚

* documentMover tests

* Transaction

* Perf. More in transactions
This commit is contained in:
Tom Moor
2019-04-08 21:25:13 -07:00
committed by GitHub
parent 16066c0b24
commit 763f57a3dc
16 changed files with 313 additions and 146 deletions

View File

@ -352,8 +352,7 @@ export default function Pricing() {
<Method method="documents.move" label="Move document in a collection">
<Description>
Move a document into a new location inside the collection. This is
easily done by defining the parent document ID. If no parent
Move a document to a new location or collection. If no parent
document is provided, the document will be moved to the collection
root.
</Description>
@ -364,8 +363,13 @@ export default function Pricing() {
required
/>
<Argument
id="parentDocument"
description="ID of the new parent document (if any)"
id="collectionId"
description="ID of the collection"
required
/>
<Argument
id="parentDocumentId"
description="ID of the new parent document"
/>
</Arguments>
</Method>