Skip to content

[CDX-491] Add _dt to recommendations module - #264

Merged
Mudaafi merged 2 commits into
masterfrom
cdx-491-node-sdk-add-_dt-query-param-to-recommendations-requests
Aug 25, 2026
Merged

[CDX-491] Add _dt to recommendations module#264
Mudaafi merged 2 commits into
masterfrom
cdx-491-node-sdk-add-_dt-query-param-to-recommendations-requests

Conversation

@HHHindawy

Copy link
Copy Markdown
Contributor

No description provided.

@HHHindawy
HHHindawy requested a review from a team July 24, 2026 15:08
@HHHindawy
HHHindawy requested a review from a team as a code owner July 24, 2026 15:08
Copilot AI review requested due to automatic review settings July 24, 2026 15:08
Alexey-Pavlov
Alexey-Pavlov previously approved these changes Jul 24, 2026

@Alexey-Pavlov Alexey-Pavlov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

constructor-claude-bedrock[bot]

This comment was marked as outdated.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a cache-busting/timestamp query parameter (_dt) to recommendations requests, aligning the Recommendations module behavior with other request modules in the SDK.

Changes:

  • Append _dt=Date.now() to the recommendations request query params.
  • Extend recommendations module specs to assert _dt is present on requests.

Reviewed changes

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

File Description
src/modules/recommendations.js Adds _dt to the generated recommendations URL query params.
spec/src/modules/recommendations.js Updates tests to verify _dt is included in outgoing recommendations requests.

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

Comment thread src/modules/recommendations.js
Mudaafi
Mudaafi previously approved these changes Aug 25, 2026
@Mudaafi
Mudaafi dismissed stale reviews from Alexey-Pavlov and themself via 1182f6f August 25, 2026 13:47

@constructor-claude-bedrock constructor-claude-bedrock Bot 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.

Code Review

This PR adds the _dt (datetime) timestamp query parameter to the recommendations module, aligning it with search, browse, autocomplete, and quizzes modules, and fixes a capitalization mismatch in a search test fixture.

Inline comments: 2 discussions added

Overall Assessment: ⚠️ Needs Work

Comment thread spec/src/modules/recommendations.js

@Mudaafi Mudaafi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@Mudaafi
Mudaafi merged commit a140a02 into master Aug 25, 2026
5 of 7 checks passed
@Mudaafi
Mudaafi deleted the cdx-491-node-sdk-add-_dt-query-param-to-recommendations-requests branch August 25, 2026 14: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.

4 participants