Commit Graph

611 Commits

Author SHA1 Message Date
Tom Moor
234613580d fix: User updates are not synced between clients (#6490)
* Add Model.changeset method to get minified changes since last update

* fix: Handle arrays

* Add changes column, types

* test
2024-02-04 10:36:43 -08:00
Tom Moor
c2b7d01c7d feat: Add setting to allow users to send invites (#6488) 2024-02-03 17:37:39 -08:00
Tom Moor
69ecda387e test 2024-02-02 09:01:18 -05:00
Tom Moor
391814a54e fix: Improve multi-partial word matching in search 2024-02-02 08:58:51 -05:00
Tom Moor
47d168a29b Add notifications for document and collection access (#6460)
* Add notification for added to document

* Add notifications for document and collection access

* Add notification delay

* fix: Collection notifications not appearing

* Add notification settings
2024-01-31 15:01:27 -08:00
Apoorv Mishra
1490c3a14b Individual document sharing with permissions (#5814)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Tom Moor <tom@getoutline.com>
2024-01-30 17:48:22 -08:00
Tom Moor
0d797d49e3 fix: signupQueryParams default to true, closes OLN-206 2024-01-22 21:30:45 -05:00
Tom Moor
4e8fe75368 fix: Can't un-publish docs with archived children. closes #6408 2024-01-20 21:34:48 -05:00
Apoorv Mishra
3561b79d65 Zod schemas for routes under /plugins (#6378)
* fix: schema for slack routes

* fix: slack.post

* fix: email
2024-01-13 10:55:30 +05:30
Apoorv Mishra
7e61a519f1 Type server models (#6326)
* fix: type server models

* fix: make ParanoidModel generic

* fix: ApiKey

* fix: Attachment

* fix: AuthenticationProvider

* fix: Backlink

* fix: Collection

* fix: Comment

* fix: Document

* fix: FileOperation

* fix: Group

* fix: GroupPermission

* fix: GroupUser

* fix: Integration

* fix: IntegrationAuthentication

* fix: Notification

* fix: Pin

* fix: Revision

* fix: SearchQuery

* fix: Share

* fix: Star

* fix: Subscription

* fix: TypeError

* fix: Imports

* fix: Team

* fix: TeamDomain

* fix: User

* fix: UserAuthentication

* fix: UserPermission

* fix: View

* fix: WebhookDelivery

* fix: WebhookSubscription

* Remove type duplication

---------

Co-authored-by: Tom Moor <tom.moor@gmail.com>
2024-01-12 22:33:05 +05:30
Tom Moor
2505fea103 fix: Prevent duplicate documents in collection structure 2024-01-11 22:18:50 -05:00
Tom Moor
22c52f84c5 fix: Remove try/catch statements without error argument (#6370) 2024-01-10 08:02:44 -08:00
Tom Moor
67a6b3fe43 fix: Cleanup relationships when user is deleted (#6343)
* fix: Cleanup relationships when user is deleted

* Update tests

* Update User.test.ts
2024-01-03 06:14:10 -08:00
Apoorv Mishra
08aacdb302 Handle users.demote event (#6315)
* fix: Handle users.demote event

* fix: fetchAll

* fix: fetch based on total
2023-12-27 08:33:44 +05:30
Tom Moor
1840370e6f Adds content column to documents and revisions as JSON snapshot (#6179) 2023-12-17 07:51:11 -08:00
Tom Moor
a53f304a9e fix: Server error when search term contains double single quotes 2023-12-13 21:17:16 -05:00
Tom Moor
43e538dba7 Add answer column to SearchQuery model 2023-12-11 20:15:33 -05:00
Tom Moor
3f3d7b4978 Add 'Copy as Markdown' action
Remove smart quotes from Markdown export, closes #5303
2023-12-09 15:00:33 -05:00
Tom Moor
cb0d84a803 Add extra trace tagging 2023-12-08 20:15:07 -05:00
Tom Moor
cf64da1050 Add score column to search_queries (#6253)
* Add score column to search_queries

* Allow user to record search score
2023-12-06 05:37:46 -08:00
Tom Moor
5558d5af95 chore: Move from inline-css -> css-inline (#6252) 2023-12-05 17:40:27 -08:00
Tom Moor
a21e1d9fea chore: Expose createDatabaseInstance, createMigrationRunner methods 2023-11-25 13:18:51 -05:00
Tom Moor
13a6f89640 fix: Deleted unpublished drafts in trash 2023-11-23 11:28:11 -05:00
Tom Moor
72c485e0c8 fix: HTML exports have extra empty page, closes #6205 2023-11-23 09:50:58 -05:00
Tom Moor
b18740c989 Always inject ready script 2023-11-23 09:10:16 -05:00
Tom Moor
8b68ee404a fix: Render Mermaid diagrams in HTML export, towards #6205 2023-11-23 09:06:07 -05:00
Apoorv Mishra
ea8ebc3b2a fix: Document.findByPk() with and (#6208) 2023-11-23 18:59:56 +05:30
Tom Moor
1f40b640ac test 2023-11-22 22:05:15 -05:00
Tom Moor
3b01368677 Add suspendedAt column to teams 2023-11-22 21:35:04 -05:00
Apoorv Mishra
a891b6b604 Add column id to user_permissions and group_permissions (#6181)
* fix: add column id to user_permissions and group_permissions

* fix: don't drop ext

* fix: put back default value
2023-11-21 13:16:57 +05:30
Tom Moor
726613bf1d fix: Remove unzipper as it cannot handle zip within zip (#6162) 2023-11-15 16:32:17 -08:00
Tom Moor
48d688c0a5 Store source metadata for imported documents (#6136) 2023-11-11 07:52:29 -08:00
Tom Moor
0964d03a17 More use of isProduction/isDevelopment getters 2023-11-09 19:24:16 -05:00
Tom Moor
7c319c17c6 fix: Correct user on documents in deleted collection (#6116) 2023-11-05 06:43:38 -08:00
Tom Moor
a48d8fac88 Return correct canonical url for share with domain 2023-11-01 23:45:41 -04:00
Tom Moor
2838503273 Backend of public sharing at root (#6103) 2023-11-01 19:10:00 -07:00
Tom Moor
d8b7d14419 fix: Unarchiving a deleted draft adds to collection structure 2023-10-16 22:54:26 -04:00
Tom Moor
03c739032d fix: views.list should not include deleted users 2023-10-16 21:21:03 -04:00
Tom Moor
0bec781695 fix: Improve validation of edge cases with documents.move endpoint. closes #6015 2023-10-16 21:04:39 -04:00
Tom Moor
0b7253bb0c fix: Tighten valiation around URLs in database fields
closes #6012
2023-10-16 19:38:11 -04:00
Tom Moor
faf97401e6 feat: add "Copy document" dialog (#6009) 2023-10-16 16:13:57 -07:00
Tom Moor
1359f44814 fix: Links to attachments do not work in emailed notifications (#5935) 2023-10-04 18:25:07 -07:00
Tom Moor
e7b7032284 feat: Allow deletion of imports (#5907) 2023-10-01 18:24:50 -07:00
Tom Moor
41a6f77998 fix: Types on overridden findByPk methods (#5908) 2023-10-01 12:02:56 -07:00
Tom Moor
bd06e03b1e Added more debugging logs for #5564 2023-09-28 17:36:10 -04:00
Tom Moor
5a89edbcb2 fix: withCollection scopes on UserPermission, GroupPermission 2023-09-27 23:08:06 -04:00
Tom Moor
9e810387c0 Add cache-control headers to attachments.redirect response 2023-09-25 21:30:57 -04:00
Apoorv Mishra
7145f7ef51 UserPermission and GroupPermission models (#5860)
* fix: rename to group_permissions

* fix: delete null collectionId records before setting non null constraint

* fix: use scope with collectionId not null

* fix: update model with documentId

* fix: rename to GroupPermission

* fix: rename collection_users to user_permissions

* fix: teamPermanentDeleter test

* fix: use scope with collectionId not null

* fix: update model with documentId

* fix: rename to UserPermission

* fix: create views upon table rename for zero downtime

* fix: remove comments
2023-09-25 10:51:29 +05:30
Tom Moor
43bdb97639 fix: Aggressive embed conversion on server Markdown -> Ydoc 2023-09-24 23:12:38 -04:00
Tom Moor
42cc991317 fix: files.create permissions (#5877)
* fix: files.create permissions

* test

* new
2023-09-24 12:02:49 -07:00