This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/server/commands
Saumya Pandey 9fccc280d7
fix: Add ability to permanently delete documents in trash (#2192)
* Align false conditions before true

* Update documents.delete endpoint for permanent delete

* Add permanent delete to events table and integrate with socket.io

* Add permanent delete to document menu

* Update parentDocumentId of direct child to null

* Add translation

* Add test for permanent delete

* Add space

* Update app/scenes/DocumentPermanentDelete.js

Co-authored-by: Tom Moor <tom.moor@gmail.com>

* Update app/stores/DocumentsStore.js

Co-authored-by: Tom Moor <tom.moor@gmail.com>

* Update server/commands/documentPermanentDeleter.js

Co-authored-by: Tom Moor <tom.moor@gmail.com>

* Update app/scenes/DocumentPermanentDelete.js

Co-authored-by: Tom Moor <tom.moor@gmail.com>

* Change socket room from team to collection

* Add translation

* Create log func for commands

* Move tests from utils to permanentDeleter command

* Add additional tests

* Set redirect to trash

* Return promise from beforeEach

* Add undeleted documents validation

* Include deleteAt attribute in db query

* Update server/commands/documentPermanentDeleter.js

Co-authored-by: Tom Moor <tom.moor@gmail.com>

* tweak language

Co-authored-by: Tom Moor <tom.moor@gmail.com>
2021-06-25 16:14:40 -07:00
..
accountProvisioner.js fix: Welcome emails should not be sent when inviting a user (#2132) 2021-05-11 18:59:31 -07:00
accountProvisioner.test.js fix: Cause of sporadic test failures in CI, promise not returned for flushdb 2021-06-13 14:52:24 -07:00
attachmentCreator.js fix: uuid import broken by dep bump 🤦‍♂️ 2021-04-25 12:54:06 -07:00
collectionImporter.js fix: uuid import broken by dep bump 🤦‍♂️ 2021-04-25 12:54:06 -07:00
collectionImporter.test.js refactor: documents.batchImport -> collections.import 2020-12-28 18:51:12 -08:00
documentCreator.js Merge main 2021-02-07 12:58:17 -08:00
documentImporter.js fix: Add application/octet-stream as a valid mimetype for docx uploads (#2105) 2021-05-05 18:48:37 -07:00
documentImporter.test.js fix: Add application/octet-stream as a valid mimetype for docx uploads (#2105) 2021-05-05 18:48:37 -07:00
documentMover.js fix: Moving documents between collections does not update attachment permissions (#2136) 2021-05-12 22:38:24 -07:00
documentMover.test.js fix: Moving documents between collections does not update attachment permissions (#2136) 2021-05-12 22:38:24 -07:00
documentPermanentDeleter.js fix: Add ability to permanently delete documents in trash (#2192) 2021-06-25 16:14:40 -07:00
documentPermanentDeleter.test.js fix: Add ability to permanently delete documents in trash (#2192) 2021-06-25 16:14:40 -07:00
teamCreator.js feat: Enforce single team when self-hosted (#1954) 2021-03-18 21:56:24 -07:00
teamCreator.test.js feat: Enforce single team when self-hosted (#1954) 2021-03-18 21:56:24 -07:00
userCreator.js fix: Welcome emails should not be sent when inviting a user (#2132) 2021-05-11 18:59:31 -07:00
userCreator.test.js fix: Welcome emails should not be sent when inviting a user (#2132) 2021-05-11 18:59:31 -07:00
userDestroyer.js fix: Correctly guard against last admin deleting their account (#2069) 2021-04-24 20:52:46 -07:00
userDestroyer.test.js fix: Correctly guard against last admin deleting their account (#2069) 2021-04-24 20:52:46 -07:00
userInviter.js fix: One source of transaction deadlock when invites > pg pool (#1696) 2020-12-01 19:20:20 -08:00
userInviter.test.js fix: Allow selection of embeds (#1562) 2020-09-20 22:27:11 -07:00
userSuspender.js fix: One source of transaction deadlock when invites > pg pool (#1696) 2020-12-01 19:20:20 -08:00
userSuspender.test.js buildUser -> buildAdmin 2021-03-22 20:59:11 -07:00