1
0
mirror of synced 2025-12-30 03:01:36 -05:00
Commit Graph

632 Commits

Author SHA1 Message Date
Peter Bengtsson
46764a165d api/search/v1 should always return a string for breadcrumbs (#31953) 2022-10-21 16:41:39 +00:00
Peter Bengtsson
3ce69524dc set requestTimeout to 500ms for ES queries (#31929) 2022-10-20 20:31:23 +00:00
Kevin Heis
d6e1a66519 Fix code scanning alert (#31914) 2022-10-20 17:21:29 +00:00
Peter Bengtsson
a557b80460 Speed up /categories.json (#31831) 2022-10-18 20:55:58 +00:00
Peter Bengtsson
bf870f2960 render a slim 404 message on /api/* (#31818) 2022-10-18 17:19:06 +00:00
Peter Bengtsson
c265c7d258 don't bother memoizing something that's CDN cached (#31795) 2022-10-17 21:17:09 +00:00
Peter Bengtsson
d3fe424810 only include productGroups in main context on homepage (#31640) 2022-10-17 20:27:19 +00:00
Peter Bengtsson
85e2f62a69 also send surrogate-control:no-store,private,max-age=0 on / (#31661) 2022-10-12 22:39:47 +00:00
Evan Bonsignori
b1a36fb7ff Revert "set max-age=0 when you want no cache (#31657)"
This reverts commit 5dfca10bba.
2022-10-12 13:10:34 -07:00
Peter Bengtsson
5dfca10bba set max-age=0 when you want no cache (#31657) 2022-10-12 19:54:28 +00:00
Sarah Schneider
6c51c13392 Support deep links on homepage (#31172)
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2022-10-12 12:58:46 +00:00
Peter Bengtsson
77d2ca5955 include URL in middleware error handling to FailBot (#31617) 2022-10-12 11:17:23 +00:00
Peter Bengtsson
098fb105b2 support filters in api/search/legacy (#31616) 2022-10-12 00:26:18 +00:00
Peter Bengtsson
74103cd650 redirect /search to /api/search/legacy (#31566) 2022-10-10 19:23:54 +00:00
Peter Bengtsson
cfe8b3a139 record timings from within getSearchResults (#31448) 2022-10-05 17:27:59 +00:00
Peter Bengtsson
ef5b9d5f07 proxy /api/search/* to docs.github.com (#31281) 2022-09-29 21:50:38 +00:00
Peter Bengtsson
70f750c8dd create new error if es fails in any way (#31232) 2022-09-28 16:53:07 +00:00
Peter Bengtsson
c3beb974d3 failed to Failbot send on /api/search/legacy (#31047) 2022-09-22 16:09:20 -04:00
Peter Bengtsson
35e91423d0 404 on any /_next/image request (#31052) 2022-09-22 15:55:30 -04:00
Peter Bengtsson
b97fa9d2b9 fix TypeError in /api/search/legacy (#31049)
Co-authored-by: Rachael Sewell <rachmari@github.com>
2022-09-22 19:38:29 +00:00
Peter Bengtsson
dcba53d185 include indexName in api.search statsd timer (#31037) 2022-09-22 13:03:21 -04:00
Sarah Schneider
b7f48ea2c1 Support GHAE internal-only semantic versioning (#29178)
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
2022-09-22 08:26:58 +02:00
Peter Bengtsson
d7d6d3c9a8 send statd timers on ES searches (#31008) 2022-09-21 14:19:39 -04:00
Sarah Schneider
fe35b38d8e Merge branch 'main' into fix-bug-on-read-from-disk 2022-09-15 12:53:59 -04:00
Robert Sese
8d60c08173 Fix featured video links versioning (#30788) 2022-09-15 16:51:14 +00:00
Sarah Schneider
370e8e8a85 fix bug so versioned homepages do not 404 2022-09-15 08:45:29 -04:00
Peter Bengtsson
a179364cda favor more exact spelling searches (#30741) 2022-09-13 18:59:14 +00:00
Peter Bengtsson
edc25dd421 re-read content on every request (#30646) 2022-09-13 13:06:33 +00:00
Peter Bengtsson
5f4672549e simplify find-page middleware (#30642) 2022-09-12 12:12:07 +00:00
Kevin Heis
7523a7c460 Prep for ts-node (#30587) 2022-09-08 15:45:13 +00:00
Peter Bengtsson
2a10a8b4cd don't fail in FailBot in search API if nothing to report (#30546) 2022-09-06 20:27:18 +00:00
Peter Bengtsson
90b754fe3c Test JSON API without enabling dedicated search results page (#30542) 2022-09-06 17:05:22 +00:00
Peter Bengtsson
8fbb3d0cb1 don't let 4xx errors propagate up from es-search (#30495) 2022-09-06 12:00:31 +00:00
Peter Bengtsson
54991f70c9 connect to ES 7.11 (#30462)
Co-authored-by: Rachael Sewell <rachmari@github.com>
2022-09-06 11:50:40 +00:00
Peter Bengtsson
2c968e9e40 remove old hack from NextJS v11 days (#30421) 2022-08-31 18:34:18 +00:00
Sarah Schneider
12a7506d71 Merge branch 'main' into early-access-product-breadcrumbs 2022-08-29 12:41:34 -04:00
Peter Bengtsson
d977d39536 use prefix for ES indexes for tests (#30288)
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2022-08-26 21:10:30 +00:00
Sarah Schneider
dfd1041ddf add another early access breadcrumb exception 2022-08-26 13:17:54 -04:00
Sarah Schneider
25590259f8 Merge branch 'main' into optional-toc-for-early-access-products 2022-08-23 10:45:56 -04:00
Peter Bengtsson
c9cc69ca21 Archived enterprise assets should be cached longer (#30165) 2022-08-23 02:02:31 +00:00
Sarah Schneider
f84ae785fc support earlyAccessToc frontmatter 2022-08-22 17:39:54 -04:00
Peter Bengtsson
ec302a668d simplify and improve default cache-control headers (#30162)
simply and perfect cache-control headers
2022-08-22 19:57:42 +00:00
Peter Bengtsson
8eb7898827 send errors to Failbot in SSR rendering (#30153)
* send errors to failbot in SSR rendering

* wip

* progress

* tidying up

* no point awaiting something that doens't return a promise
2022-08-22 16:50:18 +00:00
Peter Bengtsson
2ca86bcaa5 longer timeout on archived enterprise versions (#30149) 2022-08-22 13:41:12 +00:00
Peter Bengtsson
fe80f4ae4d suppress es-search if ELASTICSEARCH_URL isn't configured (#30096)
* suppress es-search if ELASTICSEARCH_URL isn't configured

* simplify

* simple 500 error instead
2022-08-19 20:54:37 +00:00
Peter Bengtsson
c260d9f04d only redirect to /$locale/search if ES is set (#30104)
* only redirect to /$locale/search if ES is set

* only redirect to /$locale/search if ES is set
2022-08-19 18:57:07 +00:00
Peter Bengtsson
8765c628ff dedicated search results page (redux) (#29902)
* dedicated search results page (redux)

* Update SearchResults.tsx

* adding pagination

* fix pagination

* say something on NoQuery

* better Flash

* tidying link

* small fixes for results

* debug info

* l18n the meta info

* inDebugMode

* basic jest rendering of the skeleton page

* basic jest rendering test

* fix content tests

* better document title

* fix tests

* quote query in page title

* use home page sidebar

* something when nothing is found

* parseInt no longer needs the 10

* fix linting tests

* fix test

* prettier

* Update pages/search.tsx

Co-authored-by: Rachael Sewell <rachmari@github.com>

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
Co-authored-by: Rachael Sewell <rachmari@github.com>
2022-08-19 13:36:55 +00:00
Kevin Heis
c8ae2081b7 Remove feature flags (#29968) 2022-08-16 11:23:02 +00:00
Kevin Heis
3cb36aa99f Remove airgap mode (#29964) 2022-08-15 21:05:21 +00:00
Kevin Heis
688a274f1f Remove CSRF check (#29910)
* Use color_mode for gating "sign up" button

* Remove csrf check

* Add `res.removeHeader('set-cookie')` to cache-control

* Update static-assets.js

* Remove package

* Remove tough-cookie

* Update cache-control.js

* Update cache-control.js

* Update cache-control.js
2022-08-15 19:28:42 +00:00