1
0
mirror of synced 2025-12-25 11:03:37 -05:00
Commit Graph

573 Commits

Author SHA1 Message Date
Peter Bengtsson
ceaa60e384 don't trim searchable text if Elasticsearch (#31383) 2022-10-03 19:55:23 +00:00
Peter Bengtsson
0971a6ebf7 cope with odd 404 errors on /_cat/indices (#31375) 2022-10-03 18:38:32 +00:00
Rachael Sewell
57d7b216ce update script that creates ghes release stubs for graphql (#31329) 2022-09-30 18:58:57 +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
db52a7e8bd dry-run with scraping and elasticsearch (#31201) 2022-09-27 16:59:33 -04:00
Peter Bengtsson
ff533e4ea3 be more explicit about potential alias updates (#31214) 2022-09-27 20:41:21 +00:00
Peter Bengtsson
8112c47fee merge in domwaiter (#31197) 2022-09-27 14:38:12 -04:00
Rachael Sewell
83252085e1 webhooks decorator script (#31066)
Co-authored-by: Robert Sese <734194+rsese@users.noreply.github.com>
2022-09-26 23:46:46 +00:00
Kevin Heis
bc82b990bb Update prevent-translation-commits.js (#31145) 2022-09-26 09:57:17 -07:00
Robert Sese
2b9dfe8ce9 Fix translation batch workflow (#31081) 2022-09-23 12:54:10 -05: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
a96b9ac779 send statsd timers on ES bulk indexing (#31017) 2022-09-21 18:27:36 +00:00
Robert Sese
cc171a2710 tag diffs are always a text diff anyways (#30987) 2022-09-21 11:02:03 -05:00
Sarah Schneider
36248fefbb Remove an old file (#31000) 2022-09-21 09:30:26 -04: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
Peter Bengtsson
921cf5037f dry-run search scrape + index on PRs (#30861) 2022-09-19 14:32:23 +00:00
Peter Bengtsson
a179364cda favor more exact spelling searches (#30741) 2022-09-13 18:59:14 +00:00
Hector Alfaro
25b455c35f Remove unused CrowdIn workflows and scripts (#30234) 2022-09-12 17:59:28 +00:00
Hector Alfaro
478f293116 Sort tokens on localized files before running diff (#30625) 2022-09-09 12:15:05 +00:00
Kevin Heis
7523a7c460 Prep for ts-node (#30587) 2022-09-08 15:45:13 +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
eda38df4c7 fetch external urls better in link checker (#30387) 2022-09-01 11:46:15 +00:00
Peter Bengtsson
05967a9b68 optionally check external URLs in rendered content (#25429) 2022-08-29 20:43:12 +00:00
Rachael Sewell
a9aa911d84 remove some old logging from openapi script (#30317) 2022-08-26 22:37:23 +00: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
Rachael Sewell
83680f30b0 refactor scripts used for openapi (#30309) 2022-08-26 20:28:37 +00:00
Rachael Sewell
59542a4fcc openapi class bugfix for nullable type (#30270) 2022-08-25 21:59:07 +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
Rachael Sewell
28423ba069 simplify openapi schema parsing (#30192) 2022-08-24 22:14:39 +00:00
Sarah Edwards
d2a2113c11 REST new user guidance (#29642) 2022-08-23 19:31:01 +00:00
Peter Bengtsson
420ea91b81 cap check-all-english-links and upload log file (#30092) 2022-08-19 18:11:21 +00:00
Rachael Sewell
961f985cfe Revert "Refactor openapi table func" (#30040) 2022-08-17 17:24:11 -07:00
Rachael Sewell
792f4c626a Refactor openapi table func (#29924) 2022-08-17 13:46:15 -07:00
Hector Alfaro
077195f5ab REST: Script for adding a GHEC key to API operations (#29683)
* add draft of ghec api rewrite script

* fix regex to allow for any location of the githubCloudOnly prop

* add better logging

* account for missing x-github key

* skip and log each time dotcom isn't a version

* log oauth categories

* move script to a better spot

* remove oauth logging, add more clarity to logs
2022-08-16 17:40:31 +00:00
Hector Alfaro
54d996f186 Localization: Clean up Microsoft workflow (#29675)
* remove comments that no longer apply

* remove unused matrix variables

* remove CrowdIn-specific step of resetting broken files

* udpate link to Microsoft-specific log

* bring back reset script still in use

* add acceptable ja translation of TOS to rendering test

* add ability to remove files that have been translated but don't exist (wip)

* document what `languageFiles()` returns

* fix path issues for removed translations

* cleaner script execution

* add removed files to CSV report

* add workflow link to PR body for better troubleshooting

* catch missing regex for reporting file removals

* fix capturing groups in regex for csv reporting

* fix link to CSV file for PR

* fix formatting for PR

* pass in branch name from workflow

* put back helper scripts, make msft-specific copies
2022-08-15 17:17:25 +00:00
Rachael Sewell
b552180c04 remove unused properties from decorated rest schemas (#29881) 2022-08-12 00:09:41 +00:00
Sarah Schneider
9236898431 add support for passing an option to open sections by default 2022-08-11 11:21:20 -04:00
Sarah Schneider
db6f3c8890 change toc filenames to index.html 2022-08-10 15:26:13 -04:00
Sarah Schneider
af50d6e859 re-add the dev toc in script/static form 2022-08-10 15:05:23 -04:00
Rachael Sewell
f6d34d019c atomically update index alias and delete old indexes (#29742) 2022-08-09 01:02:55 +00:00
Peter Bengtsson
a1e3866fa5 don't get available languages from session (#29715)
* don't get available languages from session

* update useSession

* one more fix
2022-08-08 11:13:27 -04: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
2c8e07843b github/github link checker got config (#29617) 2022-08-04 11:27:39 -04:00
Rachael Sewell
3cbd7103da Remove top-level categories on graphql queries page (#29592) 2022-08-03 20:01:38 +00:00
Rachael Sewell
467459af7c Reactify graphql pages (#28547) 2022-08-03 10:51:21 -07:00
Grace Park
b5f8a6089f Fix REST decorator script (#29542)
* fix decorator script

* run on node 16

Co-authored-by: Grace Park <lugraciecy@gmail.com>
2022-08-03 17:35:02 +00:00
github-openapi-bot
2255a2c8f7 Update OpenAPI Descriptions (#29408)
* Update OpenAPI  Descriptions

* Add decorated OpenAPI schema files

* Add new pages override (#29446)

* update decorated files

Co-authored-by: github-openapi-bot <github-openapi-bot@users.noreply.github.com>
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
Co-authored-by: Rachael Sewell <rachmari@github.com>
2022-07-28 13:40:47 -07: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
ad4c835316 only sync search records without lunr and no br compression (#29156)
* refactor sync-search-indices

* tidying

* only sync search records without Lunr and no .br compression

* works

* oops
2022-07-20 18:57:34 +00:00
Peter Bengtsson
b0746325db nicer timestamps in Elasticearch index names (#29155) 2022-07-19 15:35:29 +00:00