Tom Moor
995c6f90b7
fix: Mount _health route before catch-alls
...
closes #2536
2021-09-09 21:08:34 -07:00
Tom Moor
c709e54738
fix: Init dd trace sooner, closes #2528
2021-09-02 23:22:31 -07:00
Tom Moor
d96099b5b8
Move OIDC provider to routes directory
2021-09-02 19:55:06 -07:00
Greg Linklater
4b2bf28531
feat: Generic OAuth2 Authentication ( #2388 )
...
* chore: additional dependency
* feat: OAuth2 authentication provider
* docs: add env vars
* chore: lock file
* feat: add malformed user info error and notice
* feat: configurable scopes
* fix: explicitly enable state and disable pkce
* chore: remove externally supplied username from account provisioner use
* chore: remove upstream error
* chore: add explicit import for fetch
* chore: remove unused env var from sample
* docs: openid connect claims
* fix: forward fetch errors
* feat: configurable team claim name
* docs: move OIDC env vars together
* refactor: change provider name
* refactor: rename error to match provider
* fix: resolve claim using lodash.get
* refactor: remove OIDC_TEAM_CLAIM and hard code team name
2021-09-02 19:50:17 -07:00
Tom Moor
a3df9e868f
fix: Server error when loading documents.info with shareId and user token and child documents shared
...
closes #2527
2021-09-01 23:38:43 -07:00
Tom Moor
476b5e03f9
perf: Move exports to worker service ( #2514 )
...
* first pass
* fixes
* fix: Move export related emails to queue
* i18n
2021-08-31 17:41:57 -07:00
Saumya Pandey
4929fbaccb
fix: Move "public document sharing" to "Permissions" ( #2496 )
...
* Convert to functional component
* Move public sharing to permissions
* Add collections.permission_changed event
* Account for null
* Update server/events.js
Co-authored-by: Tom Moor <tom.moor@gmail.com>
* Add collections.permission_changed event
* Remove name
Co-authored-by: Tom Moor <tom.moor@gmail.com>
2021-08-30 11:43:42 +05:30
Tom Moor
08a8fea69a
chore: Add /_health endpoint to all services
...
closes #2506
2021-08-29 19:44:06 -07:00
Tom Moor
2024c6e64f
chore: Graceful server shutdown, closes #2507
2021-08-29 14:48:12 -07:00
Tom Moor
3dfd336f59
chore: Move all routes under routes directory ( #2513 )
...
closes #2504
2021-08-29 13:25:06 -07:00
Tom Moor
9a875920ac
chore: Remove 'attachments' option from mailer
2021-08-29 12:35:55 -07:00
Saumya Pandey
f389ac6414
fix: Improvements in share feat ( #2502 )
...
* Make request only when popover is visible
* Update policies required for shares.create shares.update
* Create withCollection scope
* Remove team share check from shares.create
* Update tests
2021-08-29 10:44:09 +05:30
Saumya Pandey
e4b7aa6761
fix: Add ability to choose user permission level when inviting ( #2473 )
...
* Select user role while sending invite
* Add tests to check for role
* Update app/scenes/Invite.js
Co-authored-by: Tom Moor <tom.moor@gmail.com>
* Use select
* Use inviteUser policy
* Remove unnecessary code
* Normalize rank/role
Fix text sizing of select input, fix alignment on users invite form
* Move component to root
* cleanup
Co-authored-by: Tom Moor <tom.moor@gmail.com>
2021-08-29 03:05:37 +05:30
Saumya Pandey
00ba65f3ef
fix: Refactor collection exports to not send email attachment ( #2460 )
...
Co-authored-by: Tom Moor <tom.moor@gmail.com>
2021-08-29 02:57:07 +05:30
Tom Moor
28aef82af9
chore: Refactoring event processors and service architecture ( #2495 )
2021-08-27 21:42:13 -07:00
Saumya Pandey
86f008293a
fix: Return memberships of collections ( #2501 )
2021-08-27 20:03:57 -07:00
Saumya Pandey
22ba4d0f48
fix: prevent access to docs in trash from deleted private collections ( #2431 )
...
* Check for collection in deleted document
* Add tests
* Use update policy
* Set paranoid to false when fetching deleted doc
* Update policy
2021-08-26 09:35:59 +05:30
Wesley
a50471959b
feat: Always show share button ( #2469 )
...
This is to enable the share page also for internal team members.
closes #2444
2021-08-22 23:20:29 -07:00
Tom Moor
72da0653cc
Revert "feat: Add hosted domain hint when signing in through Google SSO from subdomain ( #2458 )" ( #2467 )
...
This reverts commit e613ec732b
.
2021-08-21 11:11:01 -07:00
Tom Moor
e613ec732b
feat: Add hosted domain hint when signing in through Google SSO from subdomain ( #2458 )
...
* feat: Add hosted domain hint when signing in through Google SSO from subdomain
closes #2454
2021-08-20 14:03:52 -07:00
Tom Moor
8ba8013c6a
fix: Suppressed notification causes missing notifications for other users on the same team
2021-08-13 09:40:43 -07:00
David Herman
1521d4dbac
fix: Suppress notifications for suspended users ( #2448 )
...
* fix: Supress notifications for suspended users
* spelling
Co-authored-by: Tom Moor <tom.moor@gmail.com>
2021-08-13 09:32:19 -07:00
Saumya Pandey
a1a4fd1baf
fix: Redirect to collection on self-hosted ( #2438 )
2021-08-13 12:32:18 +05:30
Tom Moor
28d32af613
perf: Remove unused database indexes according to a month of data in production ( #2395 )
2021-08-03 20:51:12 -07:00
Tom Moor
f2f550e1d2
fix: Policies missing on documents.viewed endpoint
2021-08-03 20:02:11 -07:00
Tom Moor
5fb5f1e8b5
perf: Remove backup column migration ( #2397 )
...
* perf: Remove no-longer-used 'backup' columns
These were added as part of the move to the v2 editor over a year ago incase any text was not correctly converted. After a year of use no cases of failed conversion have occurred that required the use of this column
* Remove migration, will do in 2-step release
* perf: Remove no-longer-used 'backup' columns
These were added as part of the move to the v2 editor over a year ago incase any text was not correctly converted. After a year of use no cases of failed conversion have occurred that required the use of this column
2021-08-03 18:55:52 -07:00
Tom Moor
21d3b9c7e0
fix: Formatting of welcome docs :rolleyes:
2021-08-01 13:03:21 -07:00
Tom Moor
6665dfff28
Merge branch 'main' of github.com:outline/outline
2021-08-01 12:55:03 -07:00
Tom Moor
cdfe3a7fc3
chore: Add new 'getting started' onboarding document ( #2391 )
...
Remove support document
Remove confusing images
Added onboarding checklist
2021-08-01 12:54:41 -07:00
Tom Moor
401c91f90b
perf: Correctly parallelize count query in users.list
2021-07-30 12:20:19 -04:00
Tom Moor
ed5320507d
perf: Separate slow joins ( #2394 )
2021-07-30 08:50:02 -07:00
Tom Moor
65a1e2630c
perf: Remove no-longer-used 'backup' columns ( #2396 )
...
* perf: Remove no-longer-used 'backup' columns
These were added as part of the move to the v2 editor over a year ago incase any text was not correctly converted. After a year of use no cases of failed conversion have occurred that required the use of this column
* Remove migration, will do in 2-step release
2021-07-30 07:22:17 -07:00
Tom Moor
59de4a7db0
feat: Default to "recently viewed" ( #2390 )
...
* feat: Default user to first collection on first app open
* Default home tab to 'recently viewed'
* fix: Styling of inactive tab
2021-07-30 07:16:03 -07:00
Saumya Pandey
37fd7ec97a
fix: Enable offline access to google accounts ( #2392 )
...
* Enable google offline access
* Prevent overriding prompt parameter
2021-07-29 20:04:57 -07:00
Tom Moor
e53bb8bfbc
fix: Error uploading fallback avatar when name contains characters that need to be escaped ( #2387 )
...
* Todo -> Task to match new langauge elsewhere
* fix: Correctly escape characters in Tiley url
* Move encoding to avatars logic, add test
2021-07-28 11:45:47 -07:00
Tom Moor
f3b09ab56a
test
2021-07-27 21:30:00 -04:00
Tom Moor
6eb51a9cb9
chore: Allow passing of page to revisions backfill script
2021-07-27 18:53:39 -04:00
Tom Moor
84f647674a
Merge branch 'main' of github.com:outline/outline
2021-07-27 10:24:36 -04:00
Saumya Pandey
a81fbd8608
fix: Show tasks completion on document list items ( #2342 )
...
Co-authored-by: Tom Moor <tom.moor@gmail.com>
2021-07-27 11:31:27 +05:30
Tom Moor
8ee018a759
feat: Web concurrency ( #2347 )
...
* feat: Fork multiple processes
* Remove boxen
* comment
* chore: Add support for Heroku DATABASE_CONNECTION_POOL_URL
closes #2306
2021-07-26 15:51:50 -07:00
Tom Moor
6815c940b2
fix: Failure case during account provision that can result in no welcome collection
2021-07-26 13:46:55 -04:00
Tom Moor
48d538b424
fix: Server error when rendering share for deleted document
...
closes #2352
2021-07-23 11:25:11 -04:00
Tom Moor
84ad7c482c
fix: Various editor header and metadata fixes ( #2361 )
...
* fix: Publish button disabled on drafts in read-only mode
fix: Template selector appears on edited documents
* fix: Save button does not immediately come available when selecting a template
* fix: Template menu item alignment
closes #2204
* fixes: Use policy for display of star in document title
closes #2354
* fix: Modified time is sometimes bold when last edited user is current user
closes #2355
* fix: Allow starring of drafts
2021-07-22 15:17:18 -07:00
Tom Moor
6e07ee3f3e
chore: Move animations and globals from shared directory ( #2344 )
2021-07-21 10:34:55 -07:00
Saumya Pandey
0bc609634c
fix: Allow searching of previous document titles ( #2326 )
...
* Add migrations
* Handle previousTitles when titles is updated
* Add necessary test cases
* Use previous title while searching
* Rewrite logic to update previousTitles in beforeSave hook
* Update weights
* Update test to match new rank order
* Add tooltip to inform user on document
* Add code comment
* Remove previous title tooltip
* fix: Remove unused string, add model tests
Co-authored-by: Tom Moor <tom.moor@gmail.com>
2021-07-20 10:35:29 -07:00
Tom Moor
83477de300
fix: Account for revisions.create event being debounced
2021-07-19 17:02:33 -04:00
Tom Moor
1726006858
chore: Pass problematic url to error tracking
...
towards #2319
2021-07-19 16:57:06 -04:00
Tom Moor
3d9eaeeeeb
chore: Add revisions.create backfill script ( #2330 )
...
* chore: Add revisions.create backfill script
* fix: Correct timestamp on revisions.create events
2021-07-19 13:32:03 -07:00
Tom Moor
8f6e956bc5
chore: Add documentId index to events table ( #2331 )
2021-07-19 09:19:26 -07:00
Tom Moor
25907f5c72
chore: Reduce idle CPU usage in development
2021-07-16 09:30:43 -04:00
Tom Moor
8884da8a4b
feat: Add revisionCreator command ( #2321 )
...
add revisions.create event
2021-07-15 12:26:43 -07:00
Saumya Pandey
7ae3addea0
fix: Add space to the valid index characters list ( #2316 )
2021-07-15 00:35:47 +05:30
Tom Moor
9a1c8f07d1
feat: Add documentId filter to events.list ( #2287 )
2021-07-08 10:12:06 -07:00
Saumya Pandey
b037ae5dc1
fix: Improve isChildDocument performance ( #2284 )
2021-07-07 04:53:40 -07:00
Tom Moor
9495ddba25
fix: Restore previous WSS CORS behavior
2021-07-05 23:01:25 -04:00
Tom Moor
c687745263
fix: E-mail signin on incorrect subdomain should allow the process to continue instead of error
...
closes #2276
2021-07-05 19:25:21 -04:00
Tom Moor
1c0c694c22
fix: Email auth should allow same guest user on multiple subdomains ( #2252 )
...
* test: Add email auth tests to establish current state of system
* fix: Update logic to account for dupe emails used between subdomains
* test
* test
2021-07-02 12:07:43 -07:00
Tom Moor
088353d61f
fix: Data loading state not reset when props change to `PaginatedList` ( #2254 )
...
* fix: Data loading state not reset when significant props change to PaginatedList
closes #2251
* test: Add enzyme and component test
2021-06-26 21:49:25 -07:00
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
Tom Moor
c69b4efc34
fix: Aligned images do not load in publicly shared documents ( #2248 )
2021-06-25 10:09:44 -07:00
Tom Moor
3cec6b4903
fix: Allow for offline development
2021-06-21 21:40:28 -07:00
Tom Moor
1a2a0f4264
fix: Long search term causes server error writing query to db ( #2237 )
...
closes #2234
2021-06-17 23:23:35 -07:00
Tom Moor
afff3a6f25
fix: Server error when user cancels OAuth process with Azure ( #2231 )
2021-06-16 21:45:20 -07:00
Tom Moor
317289ac2a
fix: Error in Datadog tracking, if only we had TS :(
2021-06-16 08:52:54 -07:00
Tom Moor
de285f2b63
feat: Add TLS ciphers option ( #2217 )
...
closes #2175
2021-06-15 21:37:41 -07:00
Tom Moor
277c37dae6
fix: Metrics lib to account for multiple server instances
2021-06-15 20:34:46 -07:00
Tom Moor
d85592b5f3
feat: DataDog metrics ( #2228 )
...
* wip
* chore: Change event names, add additional events
* fix: Not counting connect events
2021-06-15 19:10:38 -07:00
Tom Moor
65be808556
fix: Cause of sporadic test failures in CI, promise not returned for flushdb
2021-06-13 14:52:24 -07:00
Tom Moor
89f8df619c
fix: Remove export permission for read-only users ( #2220 )
2021-06-13 14:41:29 -07:00
Nainterceptor
07b1811993
feat: Use SMTP_SECURE environment variable to force secure parameter of smtp configuration ( #2214 )
2021-06-12 11:01:48 -07:00
Saumya Pandey
d71f0ae6bd
fix: Two restore options when an archived document is deleted ( #2194 )
...
* Merge two menu items
* Add deletedAt guard condition in document unarchive policy
* Make the parentDocumentId null
* Update test
2021-06-10 22:52:32 -07:00
Saumya Pandey
6beb6febc4
fix: Use friendly urls for collections ( #2162 )
...
Co-authored-by: Tom Moor <tom.moor@gmail.com>
2021-06-09 17:48:48 -07:00
Saumya Pandey
a6d4d4ea36
fix: Add Portugese, Brazil to language options ( #2164 )
...
* Add Portugese, Brazil to language options
* Upgrade date-fns package
Co-authored-by: Tom Moor <tom.moor@gmail.com>
2021-06-09 17:42:14 -07:00
Tom Moor
a99f6bed42
feat: Return publicly shared document title in SSR HTML ( #2191 )
...
* feat: Return publicly shared document title in SSR HTML
closes #2146
* tests
2021-06-09 17:41:39 -07:00
Tom Moor
d8ca9c6111
fix: Server error if non-array passed to users.invite
2021-06-07 20:28:28 -07:00
Tom Moor
74e0f4dfb3
fix: Parallelize loading attachments in document presenter ( #2184 )
...
closes #2157
2021-06-05 18:40:55 -07:00
Tom Moor
5c7f2cf164
feat: Add optional http logging in production ( #2183 )
...
* feat: Add optional http logging in production
closes #2174
* Update app.js
2021-06-05 15:19:54 -07:00
Tom Moor
6c011eb9b5
fix: Guard empty documentStructure
2021-05-22 21:12:47 -07:00
Tom Moor
44920a25f4
feat: Nested document sharing ( #2075 )
...
* migration
* frontend routing, api permissioning
* feat: apiVersion=2
* feat: re-writing document links to point to share
* poc nested documents on share links
* fix: nested shareId permissions
* ui and language tweaks, comments
* breadcrumbs
* Add icons to reference list items
* refactor: Breadcrumb component
* tweaks
* Add shared parent note
2021-05-22 19:34:05 -07:00
Tom Moor
b0196f0cf0
feat: Rebuilt member admin ( #2139 )
2021-05-19 21:36:10 -07:00
Tom Moor
14d9adefe7
test
2021-05-15 18:22:42 -07:00
Tom Moor
ec3ea09b2d
fix: Return lastActiveAt
2021-05-15 18:14:44 -07:00
Tom Moor
2c0f14f07b
fix: Explicit import of fetch-with-proxy
2021-05-13 17:20:24 -07:00
Tom Moor
a93d034091
fix: Moving documents between collections does not update attachment permissions ( #2136 )
...
* fix: Copy attachments when neccessary and moving between collections
* test: regression
2021-05-12 22:38:24 -07:00
Tom Moor
447371f35a
fix: Add server-side proxy support via fetch-with-proxy ( #2044 )
...
* fix: Add server-side proxy support via fetch-with-proxy
closes #1893
For some fun discussion on why this is required, see this issue: https://github.com/nodejs/node/issues/8381
* lint
2021-05-12 22:37:32 -07:00
Tom Moor
3bd56fff9e
fix: Search query backslash replacement only touched first instance
...
closes #2111
2021-05-12 20:27:14 -07:00
Tom Moor
9d03c89c02
chore: Return new permissions-policy header on app pages
...
closes #2040
2021-05-12 20:16:55 -07:00
Tom Moor
2cb0bab82a
fix: Welcome emails should not be sent when inviting a user ( #2132 )
...
* chore: Bump nodemailer
* fix: Welcome email sent to invites
* test: Add regression test for emails from accountProvisioner
2021-05-11 18:59:31 -07:00
Saumya Pandey
985f0da674
fix: Move collection index validation logic to a context assert function ( #2116 )
...
* Abstract validation logic for readability
* Add index validation in collections.move
* Add tests
2021-05-09 22:30:37 -07:00
Tom Moor
8e1d9f0a7d
fix: Welcome collection should be visible to all by default
2021-05-05 21:12:49 -07:00
Tom Moor
896ee5c20d
feat: Improved viewers popover ( #2106 )
...
* refactoring popover
* feat: DocumentViews popover
* i18n
* fix: tab focus warnings
* test: Add tests around users.info changes
* snapshots
2021-05-05 19:35:23 -07:00
Tom Moor
69802cc985
fix: Add application/octet-stream as a valid mimetype for docx uploads ( #2105 )
...
* fix: Add application/octet-stream as a valid mimetype for docx uploads
* fix: Include application/octet-stream in frontend filter
fix: Add file size and file type guards
* Validate .docx extension in files with application/octet-stream mimetype
* refactor: Move MAXIMUM_IMPORT_SIZE to an optional environment config
fix: Add file size check on server too
Co-authored-by: Saumya Pandey <sp160899@gmail.com>
2021-05-05 18:48:37 -07:00
Saumya Pandey
6ef8d9ddb3
fix: Handle null case ( #2118 )
2021-05-05 18:47:23 -07:00
Tom Moor
aa3cb22703
test: Fix tests around utils.gc
2021-05-03 21:39:01 -07:00
Tom Moor
49ffcda8e0
fix: 'Post to channel' functionality does not work unless Slack SSO used ( #2099 )
...
* fix: 'Post to channel' functionality does not work unless Slack SSO used
* test: And this is why we have tests
2021-05-01 16:35:00 -07:00
Tom Moor
77d6adb73b
feat: Signup query params tracking ( #2098 )
...
* feat: Add tracking of signup query params
* fix: Headers already sent to client
* fix: OAuth error wipes previously written query params cookie
2021-05-01 13:46:08 -07:00
Tom Moor
b89f4c36f4
chore: Rename `Authentication` -> `IntegrationAuthentication` ( #2091 )
2021-04-27 18:42:45 -07:00
Tom Moor
6de793e94e
fix: uuid import broken by dep bump 🤦♂️
2021-04-25 12:54:06 -07:00
Tom Moor
2d22399bbc
fix: Correctly guard against last admin deleting their account ( #2069 )
...
* fix: Correctly guard against last admin deleting their account
* test
2021-04-24 20:52:46 -07:00
Tom Moor
c8055e40bb
fix: Content appearing behind status bar in iOS PWA on some models of phone 🤷
2021-04-23 14:57:38 -07:00