Skip to content

fix: add missing SiteConfig service override typings and definitions#281

Open
vkumar-sonata wants to merge 1 commit into
openedx:mainfrom
vkumar-sonata:fix/site-config-service-overrides
Open

fix: add missing SiteConfig service override typings and definitions#281
vkumar-sonata wants to merge 1 commit into
openedx:mainfrom
vkumar-sonata:fix/site-config-service-overrides

Conversation

@vkumar-sonata

@vkumar-sonata vkumar-sonata commented Jul 21, 2026

Copy link
Copy Markdown

Description

This PR aligns the SiteConfig TypeScript definitions with the existing runtime implementation.

The runtime initialize() function supports overriding the default service implementations through properties defined on SiteConfig:

  • loggingService
  • analyticsService
  • authService

However, these properties are currently not represented in the SiteConfig TypeScript definitions. As a result, consumers receive TypeScript compilation errors when attempting to register supported service overrides through site configuration.

Fix

Add the missing service override definitions to OptionalSiteConfig so that the TypeScript API matches the existing runtime behavior.

Validation

  • TypeScript compilation succeeds
  • No runtime changes introduced

Context

Discovered while attempting to configure a custom logging service.

LLM usage notice

Built with assistance from Copilot.

@diana-villalvazo-wgu
diana-villalvazo-wgu marked this pull request as ready for review July 22, 2026 15:56
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.

1 participant