Open Bug 1803189 Opened 2 years ago

fix path handling in schema traversal

Categories

(Socorro :: General, task, P3)

Tracking

(Not tracked)

People

(Reporter: willkg, Unassigned)

Details

When I added telemetry_environment to the processed crash schema, I had to fix match_key in validate_processed_crash.py to better handle pattern_property regex keys. Because the path that gets passed around when traversing schemas is a .-delimted string and not a list of strings, when it hits keys that contain ., it fails epically. I did a fix that's ugly.

https://github.com/mozilla-services/socorro/blob/a660fc98b14c89915748e335b99eb86eef1dc680/socorro/schemas/validate_processed_crash.py#L107-L134

This covers fixing path to be a list of strings and redoing all the parts that that touches.

You need to log in before you can comment on or make changes to this bug.