-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow configuring errors to cache instead of caching all (#28)
* feat: add tests for caching on error cases and increase test coverage * chore: remove caching of errors and make it a tunable configuration to cache errors * fix: deep merge changes into resolution context and plug/private to avoid overriding things * fix: format unformatted code and fix telemetry tests causing log messages * fix: up coverage requirements for project to 90% * feat: add ability to whitelist specific query names when adding graphql middleware (#29) * feat: add ability to whitelist specific query names when adding graphql middleware * chore: add docs for whitelisting
- Loading branch information
Showing
16 changed files
with
501 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ coverage: | |
status: | ||
project: | ||
default: | ||
target: 75% | ||
target: 90% | ||
threshold: 0% | ||
base: auto | ||
patch: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"skip_files": ["lib/application.ex"], | ||
"skip_files": ["lib/request_cache/application.ex"], | ||
"custom_stop_words": ["defdelegate"], | ||
"terminal_options": {"file_column_width": 80}, | ||
"coverage_options": {"treat_no_relevant_lines_as_covered": true, "minimum_coverage": 85} | ||
"coverage_options": {"treat_no_relevant_lines_as_covered": true, "minimum_coverage": 90} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.