1
0
mirror of synced 2025-12-31 15:04:15 -05:00
Commit Graph

159 Commits

Author SHA1 Message Date
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
Peter Bengtsson
9a3adcff9c lazy highlight json examples on Webhooks page (#24785)
* lazy-highlight JSON examples on Webhooks page

* it works

* using intersectionobserver

* explain in  formatAsJsonCodeBlock

* fix tests
2022-01-28 12:20:56 -05:00
Steve Guntrip
11d193bd7f Reorganize support articles 2022-01-18 13:24:02 +00:00
Robert Sese
cc69799558 a11y: landing page headings adjustments (#24295)
* Adjust heading level and only heading with intro text

* Adjust heading level

* Adjust code example and guide card heading levels

* Adjust tests for new heading levels

* Adjust rendering test for new heading levels
2022-01-14 17:23:05 +00:00
Rachael Sewell
0399d5f424 Translation tests (#24164)
* update translations tests

* update tests
2022-01-10 14:16:04 +00:00
Peter Bengtsson
c200f12e57 crash on redirect_from with a trailing slash (#23888) 2022-01-04 18:33:13 +00:00
Matt Pollard
0744800757 Document version picker for GitHub Docs (#23703) 2021-12-17 09:53:30 +00:00
Peter Bengtsson
ed48eab88d check for redirect orphans (#23330)
* check for redirect orphans

Part of #1303

* timeout

* avoid external redirects in redirects_from too

* delete content/admin/advanced-security/viewing-your-github-advanced-security-usage.md

* remove from children: too

* remove some trailing slashes in redirect_froms

* fix a few more trailing slash redirects

* delete orphan pages
2021-12-16 12:54:59 +00:00
Peter Bengtsson
fe5a08ece6 content unit tests shouldn't depend on github.blog (#23578) 2021-12-13 08:57:00 +00:00
docubot
b0cafa65fe New translation batch for ja (#23559)
* Add crowdin translations

* Run script/i18n/homogenize-frontmatter.js

* Run script/i18n/lint-translation-files.js --check parsing

* Run script/i18n/lint-translation-files.js --check rendering

* run script/i18n/reset-files-with-broken-liquid-tags.js --language=ja

* run script/i18n/reset-known-broken-translation-files.js

* Check in ja CSV report

* Skip test to unblock translation batch

See docs-engineering #923

* Remove console log

Co-authored-by: Marcelo Jacobus <marcelo.jacobus@gmail.com>
2021-12-13 02:11:48 +00:00
Jules Parker
2a08f64ad2 out of date branch Merge branch 'main' into jules-4795 2021-11-01 10:25:05 +01:00
Robert Sese
df2e3be178 Small bits of test cleanup 🧹 (#22442)
* Unskip test, ghec graphql version added

* Link to test skip issue

* Stray console.log ✂️
2021-10-27 22:31:41 +00:00
Matt Pollard
5016286f81 Merge branch 'main' into jules-4795 2021-10-22 09:24:18 +02:00