1
0
mirror of synced 2026-01-10 09:02:35 -05:00
Commit Graph

468 Commits

Author SHA1 Message Date
James M. Greene
22e8d75c91 RedisAccessor tolerance for GET failures (#18586)
* Update RedisAccessor to allow for graceful GET failures, too
* Add unit tests for allowGetFailures behavior
2021-04-05 16:26:46 +00:00
Sarah Schneider
8fa7b9c4ee add ko-fi.com (#18583) 2021-04-05 09:10:31 -07:00
James M. Greene
92f8f72593 Add a Redis PING every minute to keep the connection alive (#18584)
* Add a Redis PING every minute to keep the connection alive
2021-04-05 15:59:50 +00:00
James M. Greene
920daecd4d Redis hardening: retry strategy (#18565)
* Add an error handler to ensure the Redis server connection is forcibly closed
* Explain unknown errors are usually server idle timeouts
* Add an automatic retry_strategy
* Explicitly set connect_timeout to the default value of 1 hour
2021-04-05 15:49:46 +00:00
github-openapi-bot
10fef4dfad Update OpenAPI Descriptions (#18553)
Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-04-02 15:45:24 -07:00
Sarah Schneider
107b8e5bc0 Move scheduled tasks code into docs repo (#17926)
Co-authored-by: Rachael Sewell <rachmari@github.com> - https://github.com/github/docs-internal/pull/18453
2021-04-02 12:42:41 -07:00
Sarah Vessels
2b21146d23 Add new fields to sample Sponsors webhooks (#18548) 2021-04-02 17:11:58 +00:00
James M. Greene
7cd58b06c7 Redis: prevent offline queuing and retries for commands (#18561)
* Add an error handler to ensure the Redis server connection is forcibly closed
* Disable the Redis offline queue and retries
2021-04-02 15:28:24 +00:00
Sarah Schneider
3cba45358a Merge branch 'main' of github.com:github/docs-internal into support-conditionals-in-sublanding-fm 2021-04-01 14:11:00 -04:00
github-openapi-bot
ed6c6762cf Update OpenAPI Descriptions (#18544) 2021-04-01 16:59:49 +00:00
Sarah Schneider
ee53f96dad support conditionals in sublanding FM props 2021-04-01 10:01:23 -04:00
Sarah Schneider
150696005b Merge branch 'main' into script-to-move-toc-links-into-frontmatter 2021-03-31 12:51:23 -04:00
Sarah Schneider
aa62f45893 Merge branch 'main' into version-product-landing-frontmatter 2021-03-31 12:16:18 -04:00
github-openapi-bot
b192f53d4d Update OpenAPI Descriptions (#18489) 2021-03-31 04:45:13 +00:00
Laura Coursen
3ae481ea7b Add webhook events for discussions (#18442) 2021-03-30 17:38:13 +00:00
Sarah Schneider
088aaf648c add script and helper module 2021-03-29 19:38:29 -04:00
Octomerger Bot
225dd25fca Branch was updated using the 'autoupdate branch' Actions workflow. 2021-03-30 03:34:55 +10:00
James M. Greene
84547e54c7 Use node-redis for page cache (#18421)
* Use [node-]redis as a direct dependency

* Extract Redis client creation to its own module

* Attach extensive logging in the Redis client creation module

* Allow the rate limiter to pass requests when Redis is disconnected

* Update rate-limit-redis

* Default error input to empty object for formatRedisError method

* Provide a name for the rate limiter's Redis client

* Include redis-mock, exclude ioredis/ioredis-mock

* Remove unused RedisAccessor#exists method

* Switch RedisAccessor to use redis/redis-mock

* Provide a name for logging on the Redis page cache

* Remove extraneous trailing space from Redis logging prefix

Our updated use of console.* will already be adding a space after the prefix

* Replace ioredis-mock with redis-mock in tests

* Revert removal of ioredis dependency

* Bind Redis client to async promisified methods

* Extract former RedisAccessor constructor tests to new create-client tests

* Update RedisAccessor tests to work with the callback-based redis client

* Handle formatting Redis errors (or not) with more resiliency
2021-03-29 17:34:22 +00:00
rachmari
03bd6131a2 Action ran graphql script"update-files" 2021-03-29 16:38:56 +00:00
rachmari
ac93c5d2a8 Action ran graphql script"update-files" 2021-03-27 16:38:49 +00:00
github-openapi-bot
ad34fb22bb Update OpenAPI Descriptions (#18447) 2021-03-26 15:59:32 -07:00
Sarah Schneider
754d59a4d1 parse featured links to support Liquid conditionals 2021-03-26 12:25:05 -04:00
Sarah Schneider
b320016ea5 parse some of the landing page frontmatter so we can respect conditionals 2021-03-26 11:24:29 -04:00
James M. Greene
23bcc0bb06 Use node-redis for rate limiter (#18416)
* Use [node-]redis as a direct dependency
* Extract Redis client creation to its own module
* Attach extensive logging in the Redis client creation module
* Allow the rate limiter to pass requests when Redis is disconnected
* Update rate-limit-redis
* Default error input to empty object for formatRedisError method
* Provide a name for the rate limiter's Redis client

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-03-25 23:54:25 +00:00
Rachael Sewell
a9bee89188 Remove sentence case from openapi response (#17872) 2021-03-25 13:47:55 -07:00
rachmari
84a07df6da Action ran graphql script"update-files" 2021-03-25 16:36:30 +00:00
github-actions[bot]
358a5d0f9e Action ran graphql script"update-files" (#18383) 2021-03-24 05:40:03 +00:00
github-openapi-bot
6f2a5bcf45 Update OpenAPI Descriptions (#18379) 2021-03-23 15:45:01 -07:00
github-openapi-bot
26a7e84808 Update OpenAPI Descriptions (#18369) 2021-03-23 14:18:33 -07:00
Rachael Sewell
0df04f99c5 deprecate 2.20 version (#18354) 2021-03-23 19:38:04 +00:00
github-openapi-bot
abaa7999c7 Update OpenAPI Descriptions (#18363)
* Update OpenAPI Descriptions

* Add decorated OpenAPI schema files

* Empty commit for CI

Co-authored-by: github-openapi-bot <github-openapi-bot@users.noreply.github.com>
Co-authored-by: Martin Lopes <martin389@github.com>
2021-03-23 12:31:38 +10:00
Matt Pollard
4ce3cb1fb1 Document enterprise policies for GitHub Advanced Security (#18263) 2021-03-22 16:20:27 +00:00
github-openapi-bot
a3d043f0ea Update OpenAPI Descriptions (#18345) 2021-03-22 12:03:40 +00:00
rachmari
c703590a91 Action ran graphql script"update-files" 2021-03-21 17:17:34 +00:00
James M. Greene
6e20ed7927 Implement app clustering (#17752)
* Install throng for easy cluster management
* Extract the Express app construction into its own file
* Switch server.js to use app clustering for deployed environments
* Worker count is based on the lesser of process.env.WEB_CONCURRENCY and the count of CPUs
* Reading clustered output is difficult, let's prefix the std{out,err} streams

Co-authored-by: Jason Etcovitch <jasonetco@github.com>
2021-03-19 20:07:46 +00:00
rachmari
d8a4b52b28 Action ran graphql script"update-files" 2021-03-19 17:12:28 +00:00
Rachael Sewell
28ff566293 rest api enterprise hostname fix (#18095) 2021-03-18 22:16:14 -07:00
rachmari
3fb2a3e698 Action ran graphql script"update-files" 2021-03-18 17:10:31 +00:00
Octomerger Bot
0c8bf6f64e Branch was updated using the 'autoupdate branch' Actions workflow. 2021-03-18 07:03:19 +10:00
Kevin Heis
2e07070fb9 Add filters params to search endpoint (#18289)
* Add filters params to search endpoint

* Update search.md

* Update middleware/search.js

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

Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-03-17 21:02:47 +00:00
Tyler True
abee1fcf49 Add ChromeOS support in defaultPlatform frontmatter (#4102)
* Add ChromeOS support

Adds CrOS to defaultPlatform frontmatter, as Linux.

* Update schema-event.js

* Update schema-event.js

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2021-03-17 20:42:28 +00:00
Rachael Sewell
02ee72fa25 add topics attribute to search (#18212) 2021-03-17 13:11:29 -07:00
Sarah Schneider
cd2a217a77 do not error if frontmatter includes next GHES release or hardcoded next 2021-03-17 10:29:16 -04:00
github-openapi-bot
8f63a4450c Update OpenAPI Descriptions (#18249) 2021-03-16 09:45:30 -07:00
Octomerger Bot
ebd13e4b65 repo sync (#4487) 2021-03-12 13:53:38 -08:00
Sarah Schneider
2235827554 Merge branch 'main' into feat/add-contributor-frontmatter 2021-03-12 09:38:29 -05:00
mc
677fd3f1d2 Merge branch 'main' into 3814-master-main 2021-03-12 14:13:00 +00:00
Mike McDonald
c154fa7e83 Correcting RVA webhook payload 2021-03-12 12:39:04 +00:00
shati-patel
513453ead6 Update webhook examples 2021-03-12 11:41:29 +00:00
Steve Winton
44d34f5c52 Add support for new contributor frontmatter object 2021-03-10 15:36:02 -06:00