Closed Bug 1294088 Opened 8 years ago Closed 8 years ago

JSON Schema ambiguous types on certain keys

Categories

(Socorro :: General, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: peterbe, Assigned: peterbe)

References

Details

Attachments

(1 file)

We currently have some keys with ambiguous types. Namely that they can be either a string or an integer. This creates challenges for any database that isn't as friendly and accepting as ElasticSearch.

We should change these to be EITHER string OR integer. And, where we decide that it's integer we'll set/save NULL if `int(value)` fails. 

* build
https://github.com/mozilla/socorro/blob/c34bdeb390a7483e26c62618182d0d99d891bd01/schemas/processed_crash.json#L82
* tiny_block_size
https://github.com/mozilla/socorro/blob/c34bdeb390a7483e26c62618182d0d99d891bd01/schemas/processed_crash.json#L247
* write_combine_size
https://github.com/mozilla/socorro/blob/c34bdeb390a7483e26c62618182d0d99d891bd01/schemas/processed_crash.json#L275

(in the 3 keys found, two of them are called something_something_size so they most likely need to integers or null)
Assignee: nobody → peterbe
Commit pushed to master at https://github.com/mozilla/socorro

https://github.com/mozilla/socorro/commit/8f64da46520f83dea660557a73ba7b52e772c86e
fixes bug 1294088 - JSON Schema ambiguous types on certain keys (#3460)
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: