Ghost/ghost/admin/mirage/config
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
..
api-keys.js Added initial custom integrations UI (#1051) 2018-10-18 00:18:29 +01:00
authentication.js Renamed passwordreset body object to password_reset 2022-04-28 15:33:09 +01:00
config.js 🎨 Added auto-login to private site when viewing site preview in admin (#1286) 2019-08-12 09:11:10 +01:00
custom-theme-settings.js Added acceptance tests for new design screen 2021-11-01 17:48:49 +00:00
email-preview.js 🎨 Add ability to send test email with chosen newsletter (#15783) 2023-01-09 17:48:30 +04:00
emails.js Fixed tests 2019-11-08 11:14:04 +07:00
integrations.js Dropped ember-cli-moment-shim dependency 2022-09-24 13:28:23 +02:00
invites.js Dropped ember-cli-moment-shim dependency 2022-09-24 13:28:23 +02:00
labels.js Fixed mirage setup for members 2022-02-23 14:21:28 +00:00
members.js 🐛 Fixed members tier filtering (#16212) 2023-02-01 20:33:57 +08:00
mentions.js Added Mentions endpoint to Admin (#16136) 2023-01-17 20:16:18 +08:00
newsletters.js Added newsletter slug generation to mirage 2022-06-02 13:19:52 +02:00
offers.js Renamed products to tiers (#2372) 2022-05-11 22:41:54 +05:30
pages.js Generalised Admin search for use in editor (#20011) 2024-04-11 14:01:39 +00:00
posts.js 🐛 Fixed Admin search sometimes stalling on first query (#20143) 2024-05-06 21:04:13 +00:00
roles.js Clarified staff user roles in Admin (#1874) 2021-04-07 15:20:30 +01:00
settings.js Updated to fetch settings using /settings/?group= instead of ?type= 2020-06-24 14:23:51 +01:00
site.js Updated config service to use new /site/ and /config/ endpoints 2019-02-25 21:47:17 +07:00
slugs.js
snippets.js Implemented first iteration of content snippets 2020-10-15 18:03:35 +01:00
stats.js Moved onboarding display check into new onboarding service (#19938) 2024-03-27 17:37:37 +00:00
tags.js Reduced Admin search re-indexes (#20154) 2024-05-07 15:24:20 +01:00
themes.js Moved onboarding display check into new onboarding service (#19938) 2024-03-27 17:37:37 +00:00
tiers.js 🐛 Fixed error preventing admin area being usable by staff users with Contributor role 2022-10-31 12:01:39 +00:00
uploads.js Updated gh-uploader to work with new /images/upload/ endpoint 2019-02-25 23:01:49 +07:00
users.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00
webhooks.js Resolved ember-cli-mirage import deprecations 2022-03-08 11:32:01 +00:00