Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema Slowdown Fix #218

Merged
merged 1 commit into from
Jul 6, 2016
Merged

Conversation

akutz
Copy link
Collaborator

@akutz akutz commented Jul 6, 2016

This patch makes schema response validation an optional step that is disabled by default. The key libstorage.schema.responseValidationEnabled can be set to true to enable validation of a response's content against its defined schema.

@akutz akutz added the bug label Jul 6, 2016
@akutz akutz added this to the 0.1.4 milestone Jul 6, 2016
@akutz akutz self-assigned this Jul 6, 2016
@@ -110,4 +110,8 @@ const (

// ConfigDeviceScanType is a config key.
ConfigDeviceScanType = ConfigRoot + ".device.scanType"

// ConfigSchemaResponseValidation is a config key.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment on exported const ConfigSchemaResponseValidationEnabled should be of the form "ConfigSchemaResponseValidationEnabled ..."

This patch makes schema response validation an optional step that is
disabled by default. The key
`libstorage.schema.responseSchemaValidationEnabled` can be set to `true`
to enable validation of a response's content against its defined schema.
@akutz akutz force-pushed the bugfix/schema-slowdowns branch from 2fc4f01 to fc40ea0 Compare July 6, 2016 20:20
@codecov-io
Copy link

codecov-io commented Jul 6, 2016

Current coverage is 32.37%

Merging #218 into master will decrease coverage by 0.05%

@@             master       #218   diff @@
==========================================
  Files            36         36          
  Lines          1909       1909          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits            619        618     -1   
- Misses         1223       1224     +1   
  Partials         67         67          

Powered by Codecov. Last updated by c259cfb...2fc4f01

@akutz akutz merged commit 0b3aed4 into thecodeteam:master Jul 6, 2016
@akutz akutz deleted the bugfix/schema-slowdowns branch July 6, 2016 20:40
@akutz akutz removed the in progress label Jul 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants