1
0
mirror of synced 2026-01-28 18:03:28 -05:00
Commit Graph

688 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
922c159449 lint 2021-04-01 15:42:59 -04:00
Sarah Schneider
c7f647f68a update references 2021-04-01 15:29:59 -04:00
Sarah Schneider
229549621d update all-products so it reads from the homepage frontmatter 2021-04-01 15:29:31 -04:00
Sarah Schneider
73c67857a3 support the new frontmatter props 2021-04-01 15:27:58 -04: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
341465c83f export separate functions instead of single function from lib/page-data 2021-04-01 12:34:46 -04:00
Sarah Schneider
ee53f96dad support conditionals in sublanding FM props 2021-04-01 10:01:23 -04:00
Sarah Schneider
04460a0165 lint 2021-03-31 13:31:09 -04:00
Sarah Schneider
ad71684901 Merge branch 'main' of github.com:github/docs-internal into refactor-site-tree 2021-03-31 13:29:57 -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
cf2d3a0103 update comments 2021-03-30 12:16:18 -04:00
Sarah Schneider
2c79093832 do not throw error on translations, and also do not add redundant data to siteTree item that is already on the page object 2021-03-30 12:11:13 -04:00
Sarah Schneider
e06574b01b make comments nicer 2021-03-29 20:14:01 -04:00
Sarah Schneider
088aaf648c add script and helper module 2021-03-29 19:38:29 -04:00
Sarah Schneider
b86b681620 Merge branch 'main' of github.com:github/docs-internal into refactor-site-tree 2021-03-29 16:46:46 -04:00
Sarah Schneider
50787186a4 hacky way to pull in the new siteTree 2021-03-29 16:46:36 -04:00
Sarah Schneider
3a236bb128 create a new module page-data and revert lib/pages 2021-03-29 16:46:06 -04:00
Sarah Schneider
07a5435e69 not ready to set this prop yet... 2021-03-29 16:42:25 -04:00
Sarah Schneider
4ffcff3703 add lib modules for refactored siteTree 2021-03-29 14:34:09 -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