Граф коммитов

485 Коммитов

Автор SHA1 Сообщение Дата
Peter Bengtsson 54c4cdd3ab
cheerio-to-text@0.2.0 (#31590) 2022-10-11 11:41:39 +00:00
Peter Bengtsson 994c09dc06
use cheerio-to-text (#31479) 2022-10-10 23:25:51 +00:00
Peter Bengtsson f0e2d931be
jest@29.1.2 (#31496) 2022-10-06 18:06:59 +00:00
Peter Bengtsson ef5b9d5f07
proxy /api/search/* to docs.github.com (#31281) 2022-09-29 21:50:38 +00:00
dependabot[bot] e4c7a0f353
Bump slash from 4.0.0 to 5.0.0 (#31219)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2022-09-28 08:37:05 -07:00
Peter Bengtsson db52a7e8bd
dry-run with scraping and elasticsearch (#31201) 2022-09-27 16:59:33 -04:00
dependabot[bot] 7601c70c72
Bump @octokit/rest from 18.12.0 to 19.0.4 (#31060)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Evan Bonsignori <evanabonsignori@gmail.com>
2022-09-27 11:43:15 -07:00
Peter Bengtsson 8112c47fee
merge in domwaiter (#31197) 2022-09-27 14:38:12 -04:00
Kevin Heis 652bd429ec
Update domwaiter (#31170) 2022-09-26 16:12:10 -07:00
Peter Bengtsson 2d1f1f4c24
jest@29.0.3 (#31168) 2022-09-26 14:55:17 -07:00
Peter Bengtsson 32db795f5e
upgrade eslint 8.24.0 (#31141) 2022-09-26 13:42:15 -04:00
Peter Bengtsson d6ea35cc51
nodemon@2.0.20 (#30836) 2022-09-16 17:54:11 +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
dependabot[bot] 629fc283c3
Bump jest-fail-on-console from 2.4.2 to 3.0.1 (#30400)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Grace Park <gracepark@github.com>
2022-08-31 11:05:30 -07: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
Peter Bengtsson 283bcf54a5
upgrade to jest@29.0.0 (#30285) 2022-08-26 16:00:45 +00:00
Peter Bengtsson 0b59c835a6
downgrade next@12.2.4 (#30283) 2022-08-26 15:28:19 +00:00
Peter Bengtsson 84c5c95410
linkinator@4.0.2 (#30091) 2022-08-19 20:13:08 +00:00
dependabot[bot] 96108dfc5d
Bump @actions/core from 1.9.0 to 1.9.1 (#30072)
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2022-08-18 20:23:01 +00:00
Peter Bengtsson ceab27d205
next@12.2.5 (#30004) 2022-08-16 19:40:51 +00:00
Peter Bengtsson 5fe4e9eabf
upgrade all eslint related dev packages (eslint@8.22.0) (#29967) 2022-08-15 19:55:11 +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 ce42aa2dfd
upgrade eslint dev packages (#29818) 2022-08-11 11:14:03 +00:00
Peter Bengtsson 16fcaa7869
next@12.2.4 (#29731)
* next@12.2.4

* suppress 'Large Page Data'

* Update next.config.js

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

Co-authored-by: Rachael Sewell <rachmari@github.com>
2022-08-09 10:58:08 +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 7c98f65c57
Remove all mention of DISABLE_RENDERING_CACHE (#29658) 2022-08-05 19:19:02 +00:00
Peter Bengtsson 67c1ff3441
Remove overload protection (#29659) 2022-08-05 15:04:33 +00:00
Kevin Heis 56aa9ea094
Move use session to its own hook file (#29641)
* Move use session to its own hook file

* Trying useSWR

* Try one hour html cache

* blah blah lint

* Update to include loading state

* Update components/hooks/useSession.ts

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

Co-authored-by: Peter Bengtsson <peterbe@github.com>
2022-08-05 14:47:10 +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
Peter Bengtsson de23a080f5
always DISABLE_RENDERING_CACHE=true when doing npm run dev (#29279)
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
Co-authored-by: Robert Sese <734194+rsese@users.noreply.github.com>
2022-07-27 12:34:34 -05:00
Kevin Heis 2182ff28f3
Next12 now supports ESM (#29295)
* Next12 now supports ESM

* No more michael jackson script extensions

* Fix test running

* Update jest-puppeteer.config.cjs

* Update package.json
2022-07-26 17:53:23 +00:00
Peter Bengtsson ac2cce4aef
upgrade all eslint related dev dependencies (#29277) 2022-07-22 12:12:13 -04:00
Peter Bengtsson 7b5e6f102d
upgrade jest@28.1.3 (#29275) 2022-07-22 11:31:09 -04:00
Peter Bengtsson 46d9cddff0
upgrade nodemon@2.0.19 (#29244) 2022-07-21 19:19:27 +00:00
dependabot[bot] 570be6dcaa
Bump @primer/css from 19.8.2 to 20.2.4 (#29175)
Bumps [@primer/css](https://github.com/primer/css) from 19.8.2 to 20.2.4.
- [Release notes](https://github.com/primer/css/releases)
- [Changelog](https://github.com/primer/css/blob/main/CHANGELOG.md)
- [Commits](https://github.com/primer/css/compare/v19.8.2...v20.2.4)

---
updated-dependencies:
- dependency-name: "@primer/css"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2022-07-21 08:12:53 -07:00
Peter Bengtsson 44a91fdec5
refactor sync-search-indices (#29152)
* refactor sync-search-indices

* tidying
2022-07-19 15:13:34 +00:00
Peter Bengtsson 88f0b1686f
delete script/content-migrations/deduplicate-enterprise-assets.js (#29011)
* delete script/content-migrations/deduplicate-enterprise-assets.js

* update package-lock
2022-07-13 20:48:09 +00:00
Peter Bengtsson 721e68f4ab
Index records into Elasticsearch (#27819)
* indexing records into Elasticsearch

* @elastic/elasticsearch@8.2.0

* mv

* fix the code

* pipe

* lfs

* use sha

* change how index names work

* better snowballing

* improvements and upgrade

* index more explicitly

* wip

* no need to save space with elasticsearch

* update package-lock

* Revert "no need to save space with elasticsearch"

This reverts commit 9cdd4d8f4fa7be822bdef3976091c3c640519dec.

* adding a comment

* better comment

* a better comment

* feedbacked

* more comment
2022-07-13 20:32:22 +00:00
Grace Park 822fe2926b
Megabranch: Upgrade primer/react (#28458)
* upgrade primer/react

* upgrade

* using deprecated

* remove lib"

* Upgrade primer/react: Upgrade Label (#28502)

update Label to primer/react 35.2.2

* fix merge conflicts

* primer/react v35: update ActionList (#28467)

* Update to v35 ActionList for LearningTrack

* Update to v35 ActionList for ArticleList

* Update to v35 ActionList for ProductArticleList

* Update to v35 ActionList for TableOfContents

* Update to v35 ActionList for ProductCollapsibleSection

* Update to v35 ActionList for RestCollapsibleSection

* Update to v35 ActionList for SidebarHomepage

* Update to v35 ActionList for MiniTocs

* Update to v35 ActionList for Search

* Extra div for rendering test

* One less div for rendering test

* All the style updates for v35 ActionList

* Works without setting as an li which is already the default (didn't before for some reason)

* Use deprecated ItemInput for now

* Picker update for primer/react (#28485)

* update picker

* inline picker for mobile

* set width to auto

* Update components/ui/Picker/Picker.tsx

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>

* update

* Update Picker.tsx

* update onselect

* checking language code

* move language cookie setting to language picker

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>

* Resolve package merge conflicts

* fresh npm install

* Primer update UnderlineNav (#28582)

* update underlinenav for primer/react update

* update tests

* update switches test

* update one last label

* update header test"

* remove href in underlinenav

* update rendering tests

* update cursor

* primer/react v35: update DropDownMenu to ActionMenu (#28576)

* Update to v35 ActionMenu for ArticleCards

* Update to v35 ActionMenu for Search

* Set button to inline-block

* Put the props on the overlay

* Update test for ActionMenu markup

* update package

* update package lock

* primer/react v35: CodeLanguagePicker update from SelectMenu to ActionMenu (#28625)

* Use octicon for menu down arrow

* Update to v35 ActionMenu for CodeLanguagePicker

* update to SubNav

Co-authored-by: Grace Park <gracepark@github.com>

* update package-lock

Co-authored-by: Robert Sese <734194+rsese@users.noreply.github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2022-07-11 11:51:18 -07:00
Peter Bengtsson 5b0e38817d
upgrade all eslint related libs (#28819) 2022-06-29 19:35:39 +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
Peter Bengtsson 703f158662
nodemon@2.0.18 (#28796) 2022-06-29 11:44:33 +00:00
Peter Bengtsson 74c324df46
remove 'styled-jsx' dependency (#28787) 2022-06-28 11:37:22 -04:00
Peter Bengtsson c1f0030e3a
NextJS 12.1.6 (#26102)
* nextjs 12.1.0

* no idea what's going on

* desperate attempts

* wip

* lots of data is necessary for 'npm run build' now

* tidying up

* update package lock
2022-06-28 12:57:38 +00: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
Kevin Heis 05fe4c60cb
Upgrade commander (#28613)
* Upgrade commander

* Change import
2022-06-17 16:43:02 +00:00
Kevin Heis 03e2cf22e6
Upgrade cheerio (#28614) 2022-06-17 16:34:56 +00:00
Peter Bengtsson a39614fdcf
remove supertest dependency (#28572)
* remove supertest dependency

* remove bad test
2022-06-16 15:56:41 +00:00
Peter Bengtsson 0186424847
use SSRProvider from @primer/react to avoid warnings (#28546) 2022-06-15 16:51:58 -05:00
Kevin Heis 8f83f60766
Remove pa11y (#28532)
* Remove pa11y

* Lock types/react
2022-06-15 20:55:27 +00:00