openedx / course-discovery

Service providing access to consolidated course and program metadata
https://edx-discovery.readthedocs.io/en/latest/
GNU Affero General Public License v3.0
57 stars 173 forks source link

feat: Update populate_exec command to cater to upcoming variant changes #4469

Closed AfaqShuaib09 closed 3 weeks ago

AfaqShuaib09 commented 4 weeks ago

PROD-4206

This PR updates populate_exec command to cater to upcoming variant changes.

Variants data will be split up into multiple keys. The new format is as follows:

{
  product: {
   ...
   variant: { ... },
   custom_persentations: [ { variant }, { variant } ],
   future_variants: [ { variant }, { variant } ]
  }
}