1
0
mirror of synced 2026-01-01 09:04:46 -05:00
Commit Graph

163 Commits

Author SHA1 Message Date
Kevin Heis
8590b4aed9 Migrate release notes subject folder (#40361) 2023-08-09 15:19:17 +00:00
Peter Bengtsson
7804c0fe1a Don't redirect to search if on GraphQL Explorer with query (#39871) 2023-07-28 15:42:24 +00:00
Tina Barfield
0e1dc7862a Create & migrate a subject folder for Redirects (#39052) 2023-07-17 13:50:04 +00:00
Peter Bengtsson
2ec905fc77 trailingCommas:all on prettier (#38888) 2023-07-11 11:44:52 +00:00
Sarah Edwards
29db669cc9 Make all REST categories have subcategories (#38559)
Co-authored-by: Rachael Sewell <rachmari@github.com>
2023-06-27 16:22:19 +00:00
Peter Bengtsson
5fc846c0ea Plain text 404 page for non language urls (#37752) 2023-06-12 20:19:48 +00:00
Peter Bengtsson
1e89f42bb0 Don't check path if Referrer was falsy (#37322) 2023-05-31 14:45:55 +00:00
Peter Bengtsson
5ede55ee59 SSR search (#36974) 2023-05-30 11:50:56 +00:00
Peter Bengtsson
b104c6b903 Simplify 404 on /_next/data (#37239) 2023-05-24 11:49:47 +00:00
Steve Ward
0e5268eeaa Provide some additional clarity to various GitHub Desktop articles (#36047)
Co-authored-by: Peter Bengtsson <peterbe@github.com>
Co-authored-by: Isaac Brown <101839405+isaacmbrown@users.noreply.github.com>
2023-05-05 20:14:57 +00:00
Peter Bengtsson
f16c5d60af Don't redirect q= to query= if query= already present (#36892) 2023-05-05 14:39:04 +00:00
Peter Bengtsson
6d3288f704 Exit releasenotes middleware early if page not found (#36497) 2023-04-20 11:43:09 +00:00
Kevin Heis
6c1d512da9 Add H1 headings to footer for a11y (#36216) 2023-04-13 20:56:05 +00:00
Peter Bengtsson
a91ad4f7da Remove legacy keys from wrapped got in end-to-end tests (#36265) 2023-04-07 14:45:25 +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
0c67aadebc Move events into subject folder (#35262) 2023-03-14 15:53:42 +00:00
Sarah Edwards
e9067e2b53 Move article about authentication with OAuth apps to OAuth apps docs (#35329) 2023-03-07 19:03:08 +00:00
Peter Bengtsson
fc63361276 Be gone old api/search/legacy (#34839) 2023-02-16 16:26:13 +00:00
Peter Bengtsson
d05083410a Stop recording redirects in Hydro (#34746) 2023-02-15 15:40:03 +00:00
Grace Park
ef2efb0636 Feature Branch: Global Nav Phase 1 (#33465)
Co-authored-by: Robert Sese <734194+rsese@users.noreply.github.com>
Co-authored-by: Joe Oak <41307427+joeoak@users.noreply.github.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2023-01-31 17:49:50 +00:00
Peter Bengtsson
c49557775e return 404 on /_next.junk (#33770) 2023-01-06 01:12:58 +00:00
Kevin Heis
b7d6ee0853 Cache language redirects (#33028) 2022-12-01 20:01:52 +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
Peter Bengtsson
74103cd650 redirect /search to /api/search/legacy (#31566) 2022-10-10 19:23:54 +00:00
Peter Bengtsson
35e91423d0 404 on any /_next/image request (#31052) 2022-09-22 15:55:30 -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
github-openapi-bot
757066487d Update OpenAPI Descriptions (#30924)
Co-authored-by: github-openapi-bot <github-openapi-bot@users.noreply.github.com>
Co-authored-by: Rachael Sewell <rachmari@github.com>
Co-authored-by: Grace Park <gracepark@github.com>
Co-authored-by: Grace Park <gracepark@Graces-MacBook-Pro-2.local>
Co-authored-by: Hector Alfaro <hectorsector@github.com>
Co-authored-by: Ashwin Jeyaseelan <8gitbrix@github.com>
Co-authored-by: hubwriter <hubwriter@github.com>
Co-authored-by: Sarita Iyer <66540150+saritai@users.noreply.github.com>
2022-09-19 10:28:23 -07:00
Kevin Heis
7523a7c460 Prep for ts-node (#30587) 2022-09-08 15:45:13 +00:00
Peter Bengtsson
90b754fe3c Test JSON API without enabling dedicated search results page (#30542) 2022-09-06 17:05:22 +00:00
Kevin Heis
303d5190db Create a translations test suite (#30000)
* Scaffold files for migration

* Move user-agent into unit suite

* Nothing to move from browser suite

* Migrate tests to translations/content

* Migrate existing translation test to meta

* No graphql tests to migrate

* Migrate lint-translation-reporter

* Migrate lint-translation-reporter

* Remove languages-schema, unused

* Restore languages-schema

* Restore languages-schema

* Migrate rendering

* Migrate routing

* Migrate most of unit

* Remove dead files, comment out tests that aren't expected to work yet

* Migrate from get-redirect

* Migrate page and pages

* Migrate linting code

* Fix lint issues

* Found a few more

* Run prettier

* Move crowdin-config test and helper

* Update crowdin-config.js

* Remove translation linting, crowdin config lint, reduce file count

* Remove test that's been skipped for a year

* Restore linting with note to remove later

* Update lint-translation-reporter.js

* Clean up rendering suite

* Update rendering.js

* Remove excessive describe blocks

* Redirect tests

* Clean up unit

* Remove test that's never called

* Don't compare early access

* Rename test suites

* Update "content" tests

* Update files.js

* Update search.js

* Update files.js

* Update files.js
2022-08-25 12:38:03 -07:00
Peter Bengtsson
c9cc69ca21 Archived enterprise assets should be cached longer (#30165) 2022-08-23 02:02:31 +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
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
Kevin Heis
101e7155c8 userLanguage in browser instead of XHR (#29782)
* userLanguage in browser instead of XHR

* refactors on pr 29782 (#29798)

Co-authored-by: Peter Bengtsson <peterbe@github.com>
2022-08-10 15:28:21 +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
Sarah Schneider
7dc8d11fed reorder imports to be more standard 2022-07-22 12:12:33 -04:00
Sarah Schneider
4cbbf22fbd Merge branch 'main' of github.com:github/docs-internal into versioned-redirects 2022-07-21 09:04:04 -04:00
Peter Bengtsson
9dce4cd96d redirect to language url for ghes 3.0 and 3.1 (#29136)
Co-authored-by: Hector Alfaro <hectorsector@github.com>
2022-07-19 15:22:48 +00:00
Peter Bengtsson
4bff926c7e inject language for legact admin/release-notes URLs (#29082) 2022-07-15 20:28:31 +00:00
Peter Bengtsson
e0a20add31 //en/some/path should redirect to /en/some/path (#29077)
* //en/some/path should redirect to /en/some/path

* remove debugging
2022-07-15 19:16:42 +00:00
Peter Bengtsson
ef5406ae9a rest reference redirects with free-pro-team@latest (#28838) 2022-06-29 20:42:58 +00:00
Peter Bengtsson
ee1f20f4fb jest 28.1.1 (#28797)
* got 28.1.1

* wip

* force upgrade nth-check

* legacyFakeTimers
2022-06-29 11:55:03 +00:00
Sarah Schneider
aed1f595c6 remove no longer needed test 2022-06-24 13:05:00 -04:00
Sarah Schneider
f6f43cd353 make the exceptions redirects function accept filename as a param so we can reuse it 2022-06-24 12:25:37 -04:00
Sarah Schneider
d77727ec7a re-add exceptions redirects file and handler... we can continue to use these for true exceptions 2022-06-24 12:23:58 -04:00
Sarah Schneider
10b7d41e36 fix conflicts 2022-06-24 09:21:18 -04:00
Kevin Heis
f948c81038 Upgrade got (#28617)
* Upgrade got

* Update e2etest.js

* Skip following redirects on redirect tests

* Update deprecated-enterprise-versions.js
2022-06-21 16:23:51 +00:00