expose setup_product_id_map() query as an api service

RESOLVED FIXED

Status

RESOLVED FIXED
2 years ago
a year ago

People

(Reporter: lonnen, Assigned: lonnen)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

2 years ago
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
Created attachment 8929945 [details] [review]
pr 4210: fixes bug 1346996 - adds new product_id_map api endpoint

Comment 2

a year ago
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

Updated

a year ago
Status: ASSIGNED → RESOLVED
Last Resolved: a year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.