Hey, Author here. The source was our internal system, but the vendor was taking our id, converting it to their own id, and then serving us an ad with the coupon labeled formatted to their system. We were then using the vendor id to translate it back to ours.
The coupons associated with the products were already from our system, so I could skip the entire translation back to our id.
The manual overrides bit can be omitted, it's just how people in product were fighting a loosing battle of manually overriding the bad data.
The hardcoding was in order to replicate the behavior, as it wasn't showing up in lower envs. It wasn't the fix, the fix was to just render data we already had. I didn't go too much into details because 1. I can't due to company policy, and 2. it's actually not the interesting bit. I was more making observation of the process.
The coupons associated with the products were already from our system, so I could skip the entire translation back to our id.
The manual overrides bit can be omitted, it's just how people in product were fighting a loosing battle of manually overriding the bad data.
The hardcoding was in order to replicate the behavior, as it wasn't showing up in lower envs. It wasn't the fix, the fix was to just render data we already had. I didn't go too much into details because 1. I can't due to company policy, and 2. it's actually not the interesting bit. I was more making observation of the process.