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

171 Коммитов

Автор SHA1 Сообщение Дата
Peter Bengtsson ff12bf6131
stagger the default surrogate-key by language (#33202) 2022-12-06 20:26:06 +00:00
Peter Bengtsson 41ba33a07e
remove loadSiteData from site-data-reference tests (#33090) 2022-12-01 15:25:25 +00:00
Peter Bengtsson b4b9c288d8
remove tests/content/site-data.js (#32729) 2022-11-28 22:32:02 +00:00
Robert Sese 169cccfb0d
Cleanup old webhooks code and payload files (#32738) 2022-11-22 16:56:46 +00:00
Peter Bengtsson f189f9d900
custom Fastly surrogate key for api search (#32536) 2022-11-21 12:34:06 +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 2f66514571
make highlighting fields configurable (#32328) 2022-11-14 12:46:36 +00:00
Peter Bengtsson 401d9696a6
use /api/search/v1 in Search.tsx (#31952) 2022-11-14 12:34:21 +00:00
Peter Bengtsson 64ee6b2f09
optimize the getCurrentProductTree function (#31620) 2022-10-27 20:13:00 +00:00
Rachael Sewell 3e998f61d5
use azure blob storage for archived enterprise versions (#31883)
Co-authored-by: Laura Coursen <lecoursen@github.com>
Co-authored-by: mchammer01 <42146119+mchammer01@users.noreply.github.com>
2022-10-25 12:03:38 -07:00
Peter Bengtsson 46764a165d
api/search/v1 should always return a string for breadcrumbs (#31953) 2022-10-21 16:41:39 +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 b97fa9d2b9
fix TypeError in /api/search/legacy (#31049)
Co-authored-by: Rachael Sewell <rachmari@github.com>
2022-09-22 19:38:29 +00:00
Hector Alfaro 25b455c35f
Remove unused CrowdIn workflows and scripts (#30234) 2022-09-12 17:59:28 +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 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 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
Sophie 2880fe6d8a
Merge branch 'main' into sophietheking-landingpage 2022-08-16 15:47:24 +02:00
Kevin Heis c8ae2081b7
Remove feature flags (#29968) 2022-08-16 11:23:02 +00:00
Sophie f1f87f36d7
Update tests/content/featured-links.js
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2022-08-08 15:30:56 +02: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
Sophie 269699fd8c change test 2022-08-05 14:17:24 +02:00
Evan Bonsignori 324beed950
Merge branch 'main' into ebonsignori/1506/secure-files-tests 2022-08-03 15:08:43 -07:00
Evan Bonsignori 88df2f01f5 add secure-files test 2022-08-03 13:03:15 -07: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
Matt Pollard dc2ba532b4
GitHub Enterprise Server 3.6 release candidate (#28905) 2022-07-26 18:56:17 +02:00
Sarah Schneider 024275bfed update prerendered graphql object tests so they pass 2022-06-23 12:27:49 -04:00
Mike Surowiec b4608a86d8
fix: remove usage of readFileAsync (#28053)
* fix: remove usage of readFileAsync

* fix: use same import style

* fix: update tests

Co-authored-by: Peter Bengtsson <mail@peterbe.com>
2022-06-01 14:49:30 +00:00
Hector Alfaro c7bbfe4efa
Merge branch 'main' into hectorsector/redundant-version 2022-05-17 11:43:25 -04:00
Jules 7b54f85078
Merge branch 'main' into jules-4804 2022-05-16 12:54:46 +02:00
Hector Alfaro 2fc4fb361f
clean up tests 2022-05-13 12:40:07 -04:00
Hector Alfaro dfa9cc1e0c
add test for conditionals with all versions 2022-05-13 12:40:06 -04:00
Hector Alfaro 80ff57ff47
squash bug missing nested conditionals 2022-05-13 12:40:05 -04:00
Vanessa 025332bc10
update packages article test (#27449) 2022-05-04 00:10:13 +00:00
Jules Parker 03b76f1f32 Pages landing page fix errors 2022-04-21 11:40:18 +02:00
Mike Surowiec dce7f676ec
fix(content): apostrophe in title renders incorrectly in production only (#26859)
* fix(content): apostrophe in title renders incorrectly in production only

* fix(ProductArticlesList): use renderedFullTitle to display childNodes

* fix(lint): run prettier
2022-04-11 18:29:08 -05:00
Peter Bengtsson 347a17097a
sitedata per translation (#26496)
* sitedata per translation

* be safer

* remove test that no longer makes sense
2022-03-30 14:51:29 +00:00
Peter Bengtsson 8362602503
do rendering end-to-end tests with a real server (#26169)
* reinstate

* start server manually

* routing tests too

* skip more

* sleep more and fail if not 200

* use e2etest for content/ too

* feedbacked
2022-03-18 17:06:12 -04:00
Peter Bengtsson 67b6d9a60b
don't test graphql type object validation repeatedly (#26197) 2022-03-15 15:48:32 -04:00
Peter Bengtsson 01baeda3c0
sync serialize sitedata to disk (#25749)
* sync serialize sitedata to disk

* use os.tmpdir

* refactor tests

* debugging

* use log

* debugging

* louder about syntax errors

* warn-before-tests

* louder about disk-caching redirects

* less loud

* only in development again
2022-03-09 20:57:40 -05:00
Peter Bengtsson eef77058ab
throw if no value not found in indented_data_reference (#25711)
* throw if no value not found in indented_data_reference

* better comment

* deliberate writer-error saple

* all strings are truthy'ish

* undo

* fix tests
2022-02-28 20:40:06 +00:00
Peter Bengtsson 6bc2600b3b
renable backfills missing translation site data test (#25303)
* renable backfills missing translation site data test

* adding a code comment to explain how finally relates to jest
2022-02-24 13:42:49 +00:00
Robert Sese ef9b6ebd0e
Test that categories all have the same child type (#25392)
* Track category child types

* Test that category children are all of the same type

* Add custom error message

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

Co-authored-by: Grace Park <gracepark@github.com>
2022-02-16 19:02:31 +00:00
Peter Bengtsson 19b246022a
handle search with colon (#25128)
* handle search with colon

* nicer 400 errors

* split up by words first to avoid dangerous regex

* code comment
2022-02-15 21:56:50 +00:00
Peter Bengtsson a1c78717d5
cache the search API (#25068)
* cache the search API

* extend tests
2022-02-09 17:21:49 +00:00
Peter Bengtsson ac30f9297c
basic tests of the search API (#25069)
* basic tests of the search API

* lfs
2022-02-07 17:11:08 +00:00
Peter Bengtsson 7acccdac9b
load webhook versions at runtime instead of import-time (#24788)
* load webhook versions at runtime instead of import-time

* fix tests
2022-01-28 18:27:00 +00:00