---
# System prepended metadata

title: Untitled

---

## Problems:
1. RP Details: outlet-selector 
      * Need to figure out the API contract to support intersection/union operations on included/excluded tags.
2. RP list filter
     1. The limit on number of unique tags (aggregation query)
     2. Fetch all generic_internal tags, and aggt at MPS
     3. Maintain "merchants" (merchant_id, tags[]) table 
         1. Are these published to kafka? Updates?
         2. We need to setup a consumer
 3. Auth
     * We continue to call Saudagar




RP list flow (2):
1. FE makes a query with /recommended-packages
2. Auth => get a list of merchant_ids (returns at most 1000 merchant_ids)
3. Fetch generic_internal tags for all merchant_ids from #2 
    1. max 500 feasible, possibly pagination
5. Aggregate and filter

RP list flow (3):
1. Setup "merchants" table (merchant_id, tags[])
2. Setup a kafka consumer => "merchants" table
3. query /packages
4. Auth => merchant_id[]
5. Fetch tags for merchant_id in merchants
6. Filter with RPs