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

923 Коммитов

Автор SHA1 Сообщение Дата
Kevin Heis 7523a7c460
Prep for ts-node (#30587) 2022-09-08 15:45:13 +00:00
Hector Alfaro d21afee935
Temporarily skip some translation tests (#30557) 2022-09-07 19:58:14 +00:00
Hector Alfaro ada4d3ca31
Ignore search files for translation tests (#30590) 2022-09-07 19:49:38 +00:00
Peter Bengtsson 90b754fe3c
Test JSON API without enabling dedicated search results page (#30542) 2022-09-06 17:05:22 +00:00
Laura Coursen fd8ebcd1ce
Enterprise policy for project visibility changes (#30482) 2022-09-06 14:03:24 +00:00
hubwriter dc311ee2ec
Update repository-references.js 2022-09-01 15:18:24 +01:00
Kevin Heis 56df4863f3
Open up status codes more on translation file test (#30293)
Update files.js
2022-08-26 14:51:05 +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
Grace Park df6b782b11
Update navlist for MiniTocs (#30167)
* update navlist

* fix tests

* update to component

* update platform

* update key

* fix platform tool picker issue

* add key

* remove unnecessary key

* fix test

* update styling

* fix indented test

* Update components/ui/MiniTocs/MiniTocs.tsx

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

* remove null

Co-authored-by: Peter Bengtsson <peterbe@github.com>
2022-08-25 09:33:08 -07:00
Sarah Edwards d2a2113c11
REST new user guidance (#29642) 2022-08-23 19:31:01 +00:00
Chris Westra b90f86e80a
Add ssh commit verification content (#29819) 2022-08-23 17:31:31 +00:00
Peter Bengtsson c9cc69ca21
Archived enterprise assets should be cached longer (#30165) 2022-08-23 02:02:31 +00: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 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
Sarah Schneider 7956d9e30c
Allow .git extension in public repo names (#30053)
accommodate .git in repo names
2022-08-18 17:17:16 +00:00
Peter Bengtsson d38b8351a8
Revert "Update to NavList for minitocs" (#30051)
Revert "Update to NavList for minitocs (#29885)"

This reverts commit b5ea7bbcc5.
2022-08-18 09:44:23 -04:00
Sophie 2880fe6d8a
Merge branch 'main' into sophietheking-landingpage 2022-08-16 15:47:24 +02:00
Robert Sese 59d1f3ea9a
Update translation header tests since contact link has been removed (#29978)
Contact link has been removed
2022-08-16 11:29:01 +00:00
Kevin Heis c8ae2081b7
Remove feature flags (#29968) 2022-08-16 11:23:02 +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
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
Grace Park b5ea7bbcc5
Update to NavList for minitocs (#29885)
* update to NavList for minitocs

* fix minitoc tests
2022-08-11 18:40:02 -07:00
hubwriter 2d41221554
Update repository-references.js
Add `gh-net` and alpha sort
2022-08-11 13:54:53 +01: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 04f38e4779
Parse color_mode cookie in browser (#29738)
* Parse color_mode cookie in browser

* Update useTheme.ts

* Update use-theme.js

* Update use-theme.js

* Add support for dark_high_contrast

Per https://primer.style/css/support/theming

I also checked all the color mode options, this is the only additional working with Primer 20 so far

* Remove gray bg

* Remove  type

* Use defaults instead of types for fn args

* Thicker types
2022-08-09 16:48:18 +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
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
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
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
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
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
Kevin Heis bee3b5c9f3
Enable up to one minute of HTML caching (#29572)
* Enable up to one minute of HTML caching

* Skip a test that isn't the level of cache control we now want
2022-08-03 16:26:53 +00:00
Kevin Heis f8d2395960
Remove theme from HTML (#29560)
* Remove theme from HTML

* update for linting error

* Fix for overriding default color modes

Co-authored-by: Grace Park <lugraciecy@gmail.com>
Co-authored-by: Grace Park <gracepark@github.com>
2022-08-02 17:06:54 -07:00
Kevin Heis a16aeac936
Prepare render-page for re-enabling HTML caching (#29473)
* Prepare render-page for re-enabling HTML caching

* Prepare render-page for re-enabling HTML caching

* Prepare render-page for re-enabling HTML caching

* Update healthz.js

* Pre calculate cache control directives

* Update render-page.js
2022-07-29 19:49:36 +00:00
Kevin Heis 64ac0f3a7b Fix browser tests 2022-07-28 12:35:09 -07:00
Kevin Heis e46b4d155f
Call /api/session less (#29440) 2022-07-28 19:18:41 +00:00
Octomerger Bot ff2f9a0b14
Merge branch 'main' into repo-sync 2022-07-28 15:00:31 -04:00
Kevin Heis 0886faddac
Move language context to browser/session (#29433) 2022-07-28 18:50:46 +00:00
Nick McCurdy f028bd7a21 Merge branch 'main' into fix-links-to-feedback-discussions 2022-07-27 17:57:13 -04:00
Nick McCurdy d6a886b6d0 Rename github-community to community 2022-07-27 17:36:23 -04:00
Courtney Wilson 3d00c55071
Merge branch 'main' into SmolParascythe-update-test-README 2022-07-27 12:44:33 -05:00
Kevin Heis f79e1d2cb7
Fetch CSRF token over XHR (browser-side) (#29337)
* Client side csrf token grab

* Update get-session.ts

* Update get-session.ts

* Update get-session.ts

* Remove test refs to meta tag

* Update get-session.ts

* Update get-session.ts

* Update get-session.ts

* Update get-session.ts

* Fix some type issues

* Simplify api

* Update components/lib/get-session.ts

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

Co-authored-by: Rachael Sewell <rachmari@github.com>
2022-07-27 16:18:07 +00:00
Courtney Wilson cb4d43be47
Merge branch 'main' into SmolParascythe-update-test-README 2022-07-26 19:31:10 -05:00
Courtney Wilson be95e8e56d
Merge branch 'main' into fix-links-to-feedback-discussions 2022-07-26 15:56:10 -04:00
Kevin Heis bb3cb78dd1
Move events under api (#29298) 2022-07-26 18:00:58 +00:00