0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/test/unit/services
Naz 99a2f12cb7 Simplified yaml parser to have fewer dependencies
refs https://linear.app/tryghost/issue/CORE-35/refactor-route-and-redirect-settings
refs 5715aa2155 (diff-48644be82a9b957e5e627bf7b0f2f73cdb1d63851ffad68c7c178c5886495bb8R52-R57)

- Simplified the yaml parser implementation to take in a single parameter, this move will allove to simplify the logic in the route settings + opens a door to unify handling with redirects yaml parsing!
- We loose the "filename" from the error information but that was a generic "routes.yaml" anyway and would be thrown only when somebody uploaded a routes.yaml file (no real added value).
- The debug statement should be moved to contain related filepath+other info to the calling module instead
- An additional error handler was borrowed from the redirects yaml parsing logic that was introduced in a referenced commit - it still makes sense to keep it for routes.yaml configuration
2021-09-30 17:29:43 +02:00
..
apps Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
auth Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
mail 🔒 Fixed remote command injection when using sendmail email transport 2021-09-17 16:46:51 +01:00
mega 🐛 Fixed unsubscribed members receiving email when a post is sent to all members (#13181) 2021-07-26 12:47:03 +01:00
members Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
notifications Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
permissions Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
routing Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
rss Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
settings Simplified yaml parser to have fewer dependencies 2021-09-30 17:29:43 +02:00
sitemap 🐛 Fixed error in sitemap with >50k posts (#13317) 2021-09-17 11:13:42 +01:00
theme-engine Allowed custom theme settings to be passed through preview data 2021-09-30 13:23:39 +01:00
themes Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
url Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
labs.test.js Fixed labs service unit tests 2021-09-14 10:19:26 +01:00
slack.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
xmlrpc.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00