Skip to content

feat: B2C Subscription Inclusion Flag for Program Algolia Reindex#65

Merged
skumargupta83 merged 1 commit into
masterfrom
SUBS/ENHA-820-4
Jul 24, 2026
Merged

feat: B2C Subscription Inclusion Flag for Program Algolia Reindex#65
skumargupta83 merged 1 commit into
masterfrom
SUBS/ENHA-820-4

Conversation

@skumargupta83

Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings July 24, 2026 14:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Algolia “product” indexing layer so the b2c_subscription_inclusion attribute is populated via an explicit product_* delegate field, ensuring the value comes from the underlying Course/Program being wrapped during reindexing.

Changes:

  • Swap b2c_subscription_inclusion index field references to product_b2c_subscription_inclusion (aliased back to b2c_subscription_inclusion) in both English and Spanish product indices.
  • Extend Algolia proxy delegation to include product_b2c_subscription_inclusion, and add the corresponding accessor on the shared proxy mixin.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
course_discovery/apps/course_metadata/index.py Updates index field mappings so Algolia records store b2c_subscription_inclusion sourced from product_b2c_subscription_inclusion.
course_discovery/apps/course_metadata/algolia_models.py Adds delegated field support and a product_b2c_subscription_inclusion property to expose the underlying model value.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +190 to +193
@property
def product_b2c_subscription_inclusion(self):
return self.b2c_subscription_inclusion

@skumargupta83
skumargupta83 merged commit edcac7a into master Jul 24, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants