Closed Bug 1460447 Opened 8 years ago Closed 8 years ago

replace tree_get with glom in signature generation code

Categories

(Socorro :: Processor, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: willkg, Assigned: willkg)

References

Details

(Whiteboard: [good first bug])

Attachments

(2 files)

In bug #1383113, I ended up writing the beginnings of a tree manipulation library in socorro.lib.treelib. It had a tree_get function which let you access a specific thing in a deeply nested Python data structure where the branches may not exist. I think glom (https://glom.readthedocs.io/en/latest/) is more flexible and a good replacement for that nascent tree manipulation library. Replacing our tree_get() calls with glom() calls will let us dump some code we are maintaining and also let us do some other things we can't currently do. This bug covers adding glom as a dependency, removing socorro/lib/treelib.py and its tests in socorro/unittest/lib/test_treelib.py, and replacing uses of tree_get with glom.
Whiteboard: [good first bug]
Summary: drop tree_get for glom.glom in signature generation code → drop tree_get for glom in signature generation code
Summary: drop tree_get for glom in signature generation code → replace tree_get with glom in signature generation code
can I take this bug?
Videet: Do you have a local development environment set up? If not, read through: https://socorro.readthedocs.io/en/latest/gettingstarted.html to get one working. You'll need a local development environment working in order to work on Socorro changes.
Hi Will, Could I work on this issue?
Flags: needinfo?(willkg)
I actually just did this in relation to some other work I was doing. Sorry about that! I'll grab it, extract my changes, and push them now.
Assignee: nobody → willkg
Status: NEW → ASSIGNED
Flags: needinfo?(willkg)
Commits pushed to master at https://github.com/mozilla-services/socorro https://github.com/mozilla-services/socorro/commit/4547e422ec566829a98a59c598ecdf439fbc06de fix bug 1460447: switch to glom This drops our homegrown treelib for glom for manipulating complex Python data structures. https://github.com/mozilla-services/socorro/commit/960beb851940fce482f3f43ecd20a0562ebaebb8 Merge pull request #4496 from willkg/1460447-glom fix bug 1460447: switch to glom
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Commits pushed to master at https://github.com/mozilla-services/socorro https://github.com/mozilla-services/socorro/commit/840f57cfe736c5bc1a759927a8af26a4903b69ae bug 1460447: fix errant glom call This fixes a bug created when I switched the code from tree_get to glom. glom requires the default to be a keyword argument. https://github.com/mozilla-services/socorro/commit/472632aa57009165422df633940536ca6ddbf8e1 Merge pull request #4502 from willkg/1460447-fix-glom bug 1460447: fix errant glom call
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: