Skip to content

Conversation

@Alam-2U
Copy link
Contributor

@Alam-2U Alam-2U commented Dec 24, 2025

Description

Add client_id support for AI unit summary tracking

Merge checklist:
Check off if complete or not applicable:

  • Version bumped
  • Changelog record added
  • Documentation updated (not only docstrings)
  • Fixup commits are squashed away
  • Unit tests added/updated
  • Manual testing instructions provided
  • Noted any: Concerns, dependencies, migration issues, deadlines, tickets

Related Ticket
COSMO2-779

Related PR
https://github.com/2uinc/ai-spot/pull/51

@Alam-2U Alam-2U force-pushed the ealam/COSMO2-779 branch 2 times, most recently from 73b66df to 965a750 Compare January 8, 2026 09:31
@Alam-2U Alam-2U marked this pull request as ready for review January 9, 2026 06:55
Copilot AI review requested due to automatic review settings January 9, 2026 06:55
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds client_id support for AI unit summary tracking, allowing the frontend to identify the client making requests to the AI service. The version has been bumped to 3.8.3.

Key changes:

  • Added data-client-id attribute to the summary hook HTML template with value "edx-unit-summaries"
  • Introduced SUMMARY_CLIENT_ID setting with a default fallback value
  • Updated tests to verify the client_id is properly rendered in the HTML output

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
ai_aside/__init__.py Version bumped from 3.8.2 to 3.8.3
ai_aside/block.py Added data-client-id template variable and logic to read from settings with fallback
ai_aside/settings/devstack.py Added SUMMARY_CLIENT_ID setting configured as 'edx-unit-summaries'
tests/test_block.py Updated test to assert the presence of data-client-id attribute in rendered HTML

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

Copilot AI review requested due to automatic review settings February 6, 2026 09:16
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.


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

@Alam-2U Alam-2U merged commit 773ff49 into main Feb 6, 2026
4 checks passed
@Alam-2U Alam-2U deleted the ealam/COSMO2-779 branch February 6, 2026 10:08
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.

2 participants