Ghost/ghost/admin/app/utils
Daniel Lockyer f250898a3b Optimized stats aggregation code for Admin dashboard
fix https://linear.app/tryghost/issue/SLO-168/rangeerror-maximum-call-stack-size-exceeded

- this code takes the API output and reduces it down to collect together
  stats per date
- the current code is recursive, and we've seen errors with the
  recursion hitting a `RangeError: Maximum call stack size exceeded`
  error
- as well as that, we're doing a lot of array concat'ing and cloning,
  which burns memory and CPU time
- instead, we can just use `.reduce`
- the new implementation is much faster than the existing one (1ms vs
  85ms) and uses no recursion, so those errors should go away
- I've also verified that the output is the same between the two
  functions
2024-06-26 15:46:39 +02:00
..
analytics.js Added Posthog event sending to trackEvent function (#19716) 2024-02-20 14:32:56 -08:00
bound-one-way.js Switched from ember-cli-shims to new module imports (#779) 2017-08-22 14:53:26 +07:00
caja-sanitizers.js Fixed multiple no-shadow linting errors 2020-06-17 09:35:46 +01:00
copy-text-to-clipboard.js 🐛 Fixed copy-to-clipboard buttons in Chrome + Firefox 2021-10-05 15:32:23 +01:00
ctrl-or-cmd.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
currency.js Fixed typos (#18648) 2023-10-31 15:21:44 +00:00
fetch-koenig-lexical.js Implemented cachebuster for Admin-X Settings and Koenig-Lexical files 2023-10-06 10:41:37 +02:00
flatten-grouped-options.js Brought checkboxes back to publish menu recipient selection (#1972) 2021-05-21 18:22:01 +01:00
get-scroll-parent.js Updated About/What's new? page (#1872) 2021-09-08 14:00:24 +02:00
ghost-paths.js Updated Admin-X bundling process 2023-09-19 11:31:55 +02:00
isNumber.js Update code to match eslint rules 2016-11-14 13:26:00 +00:00
link-component.js Refactored usage of .get('property') with es5 getters 2019-03-06 13:54:14 +00:00
merge-stats-by-date.js Optimized stats aggregation code for Admin dashboard 2024-06-26 15:46:39 +02:00
password-generator.js Fix linting errors 2019-07-22 11:21:24 +01:00
publish-options.js Reduced amount of member count queries when opening the editor (#19474) 2024-01-13 19:13:49 +01:00
route.js Fixed hosting management screen not loading after sign-in process (#15763) 2022-11-03 11:14:36 +00:00
selection-list.js Added bulk edit pages API and admin UI (#16633) 2023-04-14 12:16:15 +02:00
sentry.js Moved error exclusion to correct place 2024-06-26 12:43:55 +02:00
shortcuts.js 🐛 Fixed pasting into the post tags input not working (#1739) 2022-08-03 11:14:12 +01:00
slug-url.js [chore] runs native classes codemod for app/adapters (#2239) 2022-02-02 16:57:22 +00:00
window-proxy.js use windowProxy to avoid mangling URL during team acceptance tests 2017-11-10 14:27:47 +00:00