Closed Bug 1346996 Opened 7 years ago Closed 7 years ago

expose setup_product_id_map() query as an api service

Categories

(Socorro :: Webapp, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: lonnen, Assigned: lonnen)

References

Details

Attachments

(1 file)

Expose the setup_product_id_map function as an API endpoint.

    def setup_product_id_map(...)
        ...
        for():
            product_id_map[productid] = {
                'product_name': product_name,
                'rewrite': rewrite
            }
        ...
        return product_id_map


This provides a lookup table in ram for product_productid_map in the ProductRewrite Rule.

This or an equivalent may already exist.
Assignee: nobody → chris.lonnen
Status: NEW → ASSIGNED
Commit pushed to master at https://github.com/mozilla-services/socorro

https://github.com/mozilla-services/socorro/commit/feed782291643b4fbf5bcd1885c6af51b60c890b
Merge pull request #4210 from mozilla-services/1346996-add-product-id-map-api

fixes bug 1346996 - adds new product_id_map api endpoint
Status: ASSIGNED → RESOLVED
Closed: 7 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: