Ghost/ghost/admin/app/routes
Kevin Ansfield 40ee2043e0
Reduced Admin search re-indexes (#20154)
closes https://linear.app/tryghost/issue/MOM-97

The 30s search content expiry didn't really make sense and caused unnecessary delays and server load now that search will be more widely used within the editor.

- replaced concept of time-based expiry with explicit expiry
  - content still fetched on query if not already loaded or marked as stale
  - added `.expireContent()` method on search service to allow explicit expiry
- updated editor to pre-fetch search content when not already loaded or marked as stale
  - removes delay when first using internal linking search inside the editor
- updated post model to expire search content on save
  - expires on published post save or delete
  - expires on publish and unpublish
- updated tag model to expire content on create/save/delete
  - only expires when name or url is changed
- updated user model to expire on save/delete
  - only expires when name or url is changed
  - does not handle creation because that's done server-side via invites
2024-05-07 15:24:20 +01:00
..
collection Added collections CRUD UI 2023-05-23 17:26:47 +07:00
explore Removed usage of did-insert hook and simplified openExploreWindow method 2023-08-11 10:47:47 +01:00
lexical-editor Reduced Admin search re-indexes (#20154) 2024-05-07 15:24:20 +01:00
member Updated members routes/controllers with Octane idioms 2020-05-20 16:39:31 +01:00
members Refactored away CurrentUserSettings mixin (#2200) 2022-01-17 10:05:27 +00:00
offer 🎨 Admin X - Offers (#19520) 2024-01-25 12:41:54 +00:00
posts Added mentions page for a post 2023-02-22 10:48:15 +01:00
setup Fixed setup/done screen showing 500 when not authenticated (#19973) 2024-04-02 16:43:44 +00:00
tag Migrated route objects to native class syntax 2022-01-17 10:06:57 +00:00
activitypub-x.js Added ActivityPub playground (#20081) 2024-04-25 16:44:29 +08:00
admin.js Refactored away CurrentUserSettings mixin (#2200) 2022-01-17 10:05:27 +00:00
application.js Added ResizeObserver loop error to Sentry ignore list (#19440) 2024-01-04 10:50:15 +00:00
authenticated.js 🐛 Fixed redirect to signin modal not shown when logged out (#15522) 2022-10-21 21:03:12 +01:00
collection.js Added /collections/slug/:slug Admin API endpoint 2023-07-24 14:27:17 +08:00
collections.js Added collections CRUD UI 2023-05-23 17:26:47 +07:00
dashboard.js Moving over the new Dashboard to replace the old (#2389) 2022-05-17 09:34:34 +02:00
demo-x.js Created a skeleton AdminX demo app (#19005) 2023-11-20 13:30:15 +00:00
designsandbox.js Fixed hosting management screen not loading after sign-in process (#15763) 2022-11-03 11:14:36 +00:00
error404.js Fixed posts list hrefs showing "mobiledoc-editor" and added "editor-beta" redirects 2023-10-04 14:37:12 +01:00
explore.js Improved URL syncing between Admin and Explore (#15640) 2022-10-21 11:48:18 +01:00
home.js Reverted "Fixed PostHog toolbar in admin (#19675)" (#19680) 2024-02-08 16:58:46 -08:00
lexical-editor.js Cleaned up old re-auth code in editor route/template (#18605) 2023-10-13 09:13:52 +00:00
member.js 🐛 Fixed members breadcrumbs when not coming from analytics 2023-05-04 11:20:33 +02:00
members-activity.js Updated activity feed to use full width 2022-08-23 14:36:48 +02:00
members.js 🐛 Fixed members breadcrumbs when not coming from analytics 2023-05-04 11:20:33 +02:00
mentions.js Added quotes to NQL filters with ids (#18958) 2023-11-13 12:00:20 +01:00
migrate.js 🎉 Moved Substack migrator app to GA under beta features 2023-05-19 09:58:41 -04:00
offer.js 🎨 Admin X - Offers (#19520) 2024-01-25 12:41:54 +00:00
offers.js 🎨 Admin X - Offers (#19520) 2024-01-25 12:41:54 +00:00
pages.js Better matching up the pages table with the posts table 2022-09-28 14:17:12 +01:00
posts.js Updated post context menu to take permissions into account 2023-04-11 16:33:39 +02:00
pro.js Updated <GHBillingIframe> to not leak event listeners 2022-11-07 11:59:14 +00:00
reset.js Migrated route objects to native class syntax 2022-01-17 10:06:57 +00:00
settings-x.js AdminX: reroute settings-x to settings (#18360) 2023-10-09 08:12:46 +01:00
setup.js Fixed hosting management screen not loading after sign-in process (#15763) 2022-11-03 11:14:36 +00:00
signin.js Refactored signin controller to Octane patterns 2022-11-01 14:12:23 +00:00
signout.js Migrated route objects to native class syntax 2022-01-17 10:06:57 +00:00
signup.js Fixed hosting management screen not loading after sign-in process (#15763) 2022-11-03 11:14:36 +00:00
site.js Fixed hosting management screen not loading after sign-in process (#15763) 2022-11-03 11:14:36 +00:00
tag.js Switched tag unsaved changes modal to new modal pattern 2022-09-09 17:44:11 +01:00
tags.js Migrated route objects to native class syntax 2022-01-17 10:06:57 +00:00
unauthenticated.js Removed usage of deprecated EmberSimpleAuth mixins (#1910) 2021-04-12 13:21:57 +01:00
websockets.js AdminX: reroute settings-x to settings (#18360) 2023-10-09 08:12:46 +01:00
whatsnew.js Migrated route objects to native class syntax 2022-01-17 10:06:57 +00:00