1
0
mirror of synced 2025-12-22 11:26:57 -05:00
Commit Graph

175 Commits

Author SHA1 Message Date
Kevin Heis
18978d29b2 Migrate early access files to src (#38711)
undefined
2023-07-10 12:18:32 -07:00
Tina Barfield
10e02214af Create & migrate a subject folder for learning-tracks (#37890)
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2023-06-15 15:52:47 +00:00
Peter Bengtsson
ca1d7e438c Shielding subject folder (#37690) 2023-06-09 13:02:34 +00:00
Kevin Heis
ac38ab609e Import from the src directory in Node using #src (#37578) 2023-06-05 21:44:20 +00:00
Peter Bengtsson
567b77012a Homepage links (#37432) 2023-06-05 21:03:08 +00:00
Kevin Heis
f520432027 Create and migrate observability directory (#37448) 2023-06-05 15:42:53 +00:00
Kevin Heis
cad57eeca3 Create landings subject folder (#37416) 2023-06-02 17:50:08 +00:00
Peter Bengtsson
cb2091fb34 Present a manifest JSON file with icons (#37292) 2023-05-31 12:05:37 +00:00
Peter Bengtsson
5ede55ee59 SSR search (#36974) 2023-05-30 11:50:56 +00:00
Peter Bengtsson
d562087c45 Redirect all requests with too many query string keys (#37062) 2023-05-16 18:01:12 +00:00
Peter Bengtsson
9301a1eef5 Rate limit in backend by suspicious requests (#36742) 2023-05-09 17:01:02 +00:00
Peter Bengtsson
c6eb4a7fee Render Liquid in each glossary description first (#36827) 2023-05-03 22:33:54 +00:00
Rachael Sewell
e830ddd715 move rest api tests and code to feature folder (#36044) 2023-03-30 21:57:14 +00:00
Zen van Riel
e66e2ab5ac Support Portal & Docs Collaboration: Virtual Assistant in Docs (#35772)
Co-authored-by: Peter Bengtsson <peterbe@github.com>
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
2023-03-29 12:38:47 +00:00
Peter Bengtsson
07a3e2a48c Preview hover cards (#34702)
Co-authored-by: Grace Park <gracepark@github.com>
Co-authored-by: Joe Oak <41307427+joeoak@users.noreply.github.com>
2023-03-21 19:59:49 +00:00
Kevin Heis
fc28580492 Remove req utils (#35695) 2023-03-20 23:57:33 +00:00
Peter Bengtsson
7505613264 Reloading the site tree (#34877) 2023-03-06 19:44:59 +00:00
Sarah Schneider
5ee7bfe4ac Secret scanning structured data (#33117)
Co-authored-by: Rachael Sewell <rachmari@github.com>
2023-03-03 18:20:50 +00:00
Peter Bengtsson
d05083410a Stop recording redirects in Hydro (#34746) 2023-02-15 15:40:03 +00:00
Peter Bengtsson
952ea7cf6d Dynamically serve .webp and .avif from a .png URL (#34412) 2023-02-03 18:19:55 +00:00
Peter Bengtsson
f4555a8db0 speed up /healthz endpoint (#33892) 2023-01-11 21:46:25 +00:00
Peter Bengtsson
0f796df753 contextualize features before computing current product tree (#33793)
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2023-01-06 16:53:00 +00:00
Peter Bengtsson
ff12bf6131 stagger the default surrogate-key by language (#33202) 2022-12-06 20:26:06 +00:00
Kevin Heis
5e6890745d Revert "Add temporary endpoint to check language headers (#33154)" (#33159) 2022-12-01 21:37:35 +00:00
Kevin Heis
b7d6ee0853 Cache language redirects (#33028) 2022-12-01 20:01:52 +00:00
Kevin Heis
8ee9c11a0c Add temporary endpoint to check language headers (#33154) 2022-12-01 19:46:40 +00:00
Robert Sese
169cccfb0d Cleanup old webhooks code and payload files (#32738) 2022-11-22 16:56:46 +00:00
Peter Bengtsson
988e68fa98 JIT data (#32140) 2022-11-17 13:08:49 +00:00
Robert Sese
b2e5d14036 Automate + Reactify webhooks page (#29534)
Co-authored-by: Rachael Sewell <rachmari@github.com>
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
Co-authored-by: Joe Oak <41307427+joeoak@users.noreply.github.com>
Co-authored-by: Sarah Edwards <skedwards88@github.com>
Co-authored-by: Grace Park <gracepark@github.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2022-11-15 22:12:16 +00:00
Peter Bengtsson
fc85041a08 always only use data/features from English (#32529)
Co-authored-by: Robert Sese <734194+rsese@users.noreply.github.com>
2022-11-10 21:05:06 +00:00
Peter Bengtsson
cb8ba20ba8 use contextualizer for glossaries (#32513) 2022-11-10 16:36:02 +00:00
Peter Bengtsson
64ee6b2f09 optimize the getCurrentProductTree function (#31620) 2022-10-27 20:13:00 +00:00
Peter Bengtsson
d3fe424810 only include productGroups in main context on homepage (#31640) 2022-10-17 20:27:19 +00:00
Peter Bengtsson
74103cd650 redirect /search to /api/search/legacy (#31566) 2022-10-10 19:23:54 +00: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
edc25dd421 re-read content on every request (#30646) 2022-09-13 13:06:33 +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
Peter Bengtsson
f8f20605f4 search api with elasticsearch (#29053)
* indexing records into Elasticsearch

* @elastic/elasticsearch@8.2.0

* mv

* fix the code

* pipe

* lfs

* use sha

* change how index names work

* search api with Elasticsearch

* works

* refactor client

* better snowballing

* remove dbg

* wip

* highlights and fuzzy search

* improvements and upgrade

* also upgrade

* wip

* index more explicitly

* better validation

* change max size

* popularity by ordinal ranking instead

* playing

* fix package-lock

* rearranging

* catchMiddlewareError

* fix indexing

* match_phrase_prefix on wrapped search

* refactorings

* escape html in content

* wip

* search by URL

* update lock file

* v1 api

* inroads on jest testing the search

* valid yaml hopefully

* index fixtures into local elasticsearch

* specific versions to index only

* small fixes

* feedbacked

* fix tests

* use the npm script
2022-08-05 19:40:38 +00:00
Peter Bengtsson
67c1ff3441 Remove overload protection (#29659) 2022-08-05 15:04:33 +00:00
Kevin Heis
bb1f30a39b Update HTML cache control to 10 minutes (#29586)
* Update HTML cache control to 10 minutes

* A little clean up

* Remove quick-lru
2022-08-03 20:39:54 +00:00
Rachael Sewell
467459af7c Reactify graphql pages (#28547) 2022-08-03 10:51:21 -07:00
Kevin Heis
bee3b5c9f3 Enable up to one minute of HTML caching (#29572)
* Enable up to one minute of HTML caching

* Skip a test that isn't the level of cache control we now want
2022-08-03 16:26:53 +00:00
Kevin Heis
a16aeac936 Prepare render-page for re-enabling HTML caching (#29473)
* Prepare render-page for re-enabling HTML caching

* Prepare render-page for re-enabling HTML caching

* Prepare render-page for re-enabling HTML caching

* Update healthz.js

* Pre calculate cache control directives

* Update render-page.js
2022-07-29 19:49:36 +00:00
Kevin Heis
bb3cb78dd1 Move events under api (#29298) 2022-07-26 18:00:58 +00:00
Kevin Heis
564e3a5e2a Move CSRF response back to XHR (Node.js prep) (#29179)
* Move CSRF response back to XHR

* Update events.js

* Pass through cookieJar

* Enable session route test

* Skip next x csrf test

* Add other fields to endpoint for future issues

* Remove client side parts

* Revert test skip

* Use nested router pattern

* ugh forgot a file

* Update naming

* Update tests/rendering/session.js

Co-authored-by: Peter Bengtsson <peterbe@github.com>

* Updating to use cache control

* Use req.langauge and req.userLanguage

Co-authored-by: Peter Bengtsson <peterbe@github.com>
2022-07-22 18:17:22 +00:00
Peter Bengtsson
642c971049 morgan logging off by default in tests (#28987) 2022-07-12 20:53:34 +00:00
Kevin Heis
71fedb1f31 Update to helmet 5 (#28488)
* Update to helmet 5

* Disable cross-origin-embedder-policy

* Update helmet.js

* Update helmet.js

* Add CORS on get / options

* Update helmet.js

* Update helmet.js

* Update helmet.js

* Update helmet.js

* Revert "Update helmet.js"

This reverts commit 61ad2fb641ca16a31bf148164c395f2ba91e1734.

* Open up github domains

* Include self

* Update helmet.js

* Update helmet.js
2022-06-14 21:43:25 +00:00
brannon
000a34a1a7 Add explicit config value to enable Fastly testing. 2022-06-03 09:52:02 -06:00
brannon
e7ec9ad487 Merge branch 'main' into brannon-serve-stale-content 2022-06-02 17:33:13 -06:00
brannon
d575b8edd6 Update Fastly test middleware to run in staging ONLY.
Add ability to set more headers to mimic real content responses.
Add ability to inject errors, to help in validating behavior.
2022-06-02 17:19:53 -06:00