1
0
mirror of synced 2025-12-22 03:16:52 -05:00
Commit Graph

15 Commits

Author SHA1 Message Date
Sarah Schneider
c02673241d just return early instead of throwing an error until we rewrite this middleware for the new siteTree structure 2021-04-09 09:36:34 -04:00
James M. Greene
c940dcd98b Middleware overhaul! (#18218)
* Middleware overhaul!

- Remove unnecessary 'async' keywords from middleware functions
- Ensure all middleware functions we create have names
- Wrap the method contents of all async middleware functions in a try-catch+next(error) pattern

* Use asyncMiddleware wrapper instead of try-catch+next(error) pattern

* Remove unnecessary try-catch+next(error) pattern from context middleware
2021-03-11 01:12:41 +00:00
Sarah Schneider
a66268cc83 add helper to middleware/breadcrumbs 2021-01-14 17:07:09 -05:00
Sarah Schneider
b511758057 add remove-fpt helper function 2021-01-14 13:34:32 -05:00
Sarah Schneider
33f93e39c7 remove overloaded helper functions and move code directly where it is used 2021-01-07 13:14:44 -05:00
Chiedo John
9ab71614fc Merge branch 'main' into revert-16952-revert-16947-optimize-sitetree 2020-12-16 15:03:20 -05:00
Chiedo John
5fbd6f2173 Make the breadcrum middleware fail safely (#17009)
Make the breadcrumb middleware fail safely

Co-authored-by: chiedo <chiedo@users.noreply.github.com>
Co-authored-by: Vanessa Yuen <6842965+vanessayuenn@users.noreply.github.com>
Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
2020-12-16 14:42:45 +00:00
Sarah Schneider
dca55a0257 Revert "Revert "sitetree optimizations"" 2020-12-14 20:25:01 -05:00
Sarah Schneider
b38eec9964 Revert "sitetree optimizations" 2020-12-14 16:53:04 -05:00
Sarah Schneider
5c166f084c we can use req.path for maptopic and article lookups now that siteTree paths include the lang code 2020-12-14 15:16:00 -05:00
Sarah Schneider
f5b050dc5e updates now that siteTree paths include language codes 2020-12-14 14:39:45 -05:00
Sarah Schneider
38659b37f4 return an empty breadcrumbs object on the landing page 2020-12-08 09:50:05 -05:00
Sarah Schneider
dc38acdde8 support custom Early Access breadcrumbs 2020-12-07 16:18:03 -05:00
Sarah Schneider
aa5a62d49d Remove versions feature flag code (#15793)
* remove FEATURE_NEW_VERSIONS from feature-flags.json

* remove process.env.FEATURE_NEW_VERSIONS from include files

* remove process.env.FEATURE_NEW_VERSIONS from lib files

* remove process.env.FEATURE_NEW_VERSIONS from middleware files

* remove process.env.FEATURE_NEW_VERSIONS from script files

* remove process.env.FEATURE_NEW_VERSIONS from test files

* update test fixtures to use new versions as canonical fixtures
2020-09-29 13:36:07 -04:00
Vanessa Yuen
3df90fc9b8 Hello git history spelunker!
Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
2020-09-27 14:10:11 +02:00