Ghost/ghost/admin/app/styles/layouts
Simon Backx 923c522778
Implemented email analytics retrying (#16273)
fixes https://github.com/TryGhost/Team/issues/2562

New event fetching loops:
- Reworked the analytics fetching algorithm. Instead of starting again
where we stopped during the last fetching minus 30 minutes, we now just
continue where we stopped. But with ms precision (because no longer
database dependent after first fetch), and we stop at NOW - 1 minute to
reduce chance of missing events.
- Apart from that, a missing fetching loop is introduced. This fetches
events that are older than 30 minutes, and just processes all events a
second time to make sure we didn't skip any because of storage delays in
the Mailgun API.
- A new scheduled fetching loop, that allows us to schedule between a
given start/end date (currently only persisted in memory, so stops after
a reboot)

UI and endpoint changes:
- New UI to show the state of the analytics 'loops'
- New endpoint to request the analytics loop status
- New endpoint to schedule analytics
- New endpoint to cancel scheduled analytics
- Some number formatting improvements, and introduction of 'opened'
count in debug screen
- Live reload of data in the debug screen

Other changes:
- This also improves the support for maxEvents. We can now stop a
fetching loop after x events without worrying about lost events. This is
used to reduce the fetched events in the missing and scheduled event
loop (e.g. when the main one is fetching lots of events, we skip the
other loops).
- Prevents fetching the same events over and over again if no new events
come in (because we always started at the same begin timestamp). The
code increases the begin timestamp with 1 second if it is safe to do so,
to prevent the API from returning the same events over and over again.
- Some optimisations in handing the processing results (less merges to
reduce CPU usage in cases we have lots of events).

Testing:
- You can test with lots of events using the new mailgun mocking server
(Toolbox repo `scripts/mailgun-mock-server`). This can also simulate
events that are only returned after x minutes because of storage delays.
2023-02-20 16:44:13 +01:00
..
apps.css Switched API key regeneration modal to new modal pattern 2022-11-14 09:55:34 +00:00
auth.css Added site brand color to signup button for new staff users 2022-03-09 11:53:54 +00:00
billing.css Fixed browser URL syncronization with embeded iframe state 2020-05-22 14:44:37 +12:00
content.css Added events to Post Analytics page (#15886) 2022-11-28 17:43:35 +04:00
dashboard.css Fixed padding bug on dashboard on mobile 2023-01-30 17:11:10 +01:00
editor.css Updated error status in post list and the editor 2022-10-06 17:37:08 +07:00
error.css Fixup broken error page styles 2015-06-08 12:14:58 +01:00
explore.css Added Ghost Explore in Ghost as iframe app behind feature flag (#15495) 2022-10-07 14:32:54 +01:00
flow.css Deleted unused image files 2022-08-31 15:48:17 +01:00
labs.css Fixed screen flicker in content import modal 2022-11-17 18:11:11 +01:00
main.css Added referrals invite notification (#16187) 2023-01-26 14:42:11 +00:00
member-activity.css Remove member's activity double scrolling (#15897) 2022-11-29 16:08:11 +04:00
members.css 🐛 Fixed subscriptions visible as "Active" within Ghost Admin (#16255) 2023-02-13 13:07:53 +01:00
mentions.css Fixed feature images not showing in mentions feed 2023-01-30 21:49:40 +00:00
offers.css 🐛 Fixed offer links with an archived tier (#15792) 2022-11-11 10:11:34 +01:00
packages.css Getting rid of super-thin font weights 2019-11-22 11:53:57 +01:00
portal-settings.css Portal settings design bugfixes 2023-01-04 18:04:01 +01:00
post-preview.css Fixed minor email preview visual bugs 2023-01-23 10:46:30 +01:00
preview-email.css Fixed minor email preview visual bugs 2023-01-23 10:46:30 +01:00
settings.css Implemented email analytics retrying (#16273) 2023-02-20 16:44:13 +01:00
tags.css Updated empty states for posts, pages, and tags 2022-02-09 09:34:12 +01:00
tiers.css Cleaned up icon styles 2022-09-02 16:56:02 +01:00
user.css Wired email alert settings for staff users on admin (#15313) 2022-08-25 15:47:14 +05:30
users.css Fixed staff page bug when logged in as editor 2023-01-17 14:02:01 +00:00
whatsnew.css Added changelog subscribe button to What's new page 2022-10-27 17:01:27 +01:00