Skip to content

Set serviceUrl via setClientOptions#473

Merged
Mudaafi merged 5 commits into
masterfrom
set-client-options-service-url
Jul 9, 2026
Merged

Set serviceUrl via setClientOptions#473
Mudaafi merged 5 commits into
masterfrom
set-client-options-service-url

Conversation

@HHHindawy

Copy link
Copy Markdown
Contributor

No description provided.

@HHHindawy HHHindawy requested a review from a team July 9, 2026 15:30
@HHHindawy HHHindawy requested a review from a team as a code owner July 9, 2026 15:30
Copilot AI review requested due to automatic review settings July 9, 2026 15:30

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

Enables updating the API serviceUrl after client instantiation via setClientOptions, keeping URL normalization behavior consistent with the constructor (HTTPS enforcement by default, trailing-slash stripping, and respecting allowHttpServiceUrl).

Changes:

  • Persist allowHttpServiceUrl onto this.options so setClientOptions can normalize serviceUrl consistently.
  • Add serviceUrl support to setClientOptions and extend unit tests to cover update/normalization behavior.
  • Update cspell.json dictionary entries.

Reviewed changes

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

File Description
src/constructorio.js Add serviceUrl handling to setClientOptions and persist allowHttpServiceUrl in runtime options.
spec/src/constructorio.js Add test coverage for updating and normalizing serviceUrl via setClientOptions.
cspell.json Add/adjust dictionary words.

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

Comment thread src/constructorio.js Outdated
constructor-claude-bedrock[bot]

This comment was marked as outdated.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
TarekAlQaddy
TarekAlQaddy previously approved these changes Jul 9, 2026

@TarekAlQaddy TarekAlQaddy 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.

Mudaafi
Mudaafi previously approved these changes Jul 9, 2026

@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.

LGTM

@Mudaafi Mudaafi dismissed stale reviews from TarekAlQaddy and themself via 934cef5 July 9, 2026 17:18
@Mudaafi Mudaafi merged commit 182328e into master Jul 9, 2026
9 of 13 checks passed
@Mudaafi Mudaafi deleted the set-client-options-service-url branch July 9, 2026 17:28
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