Skip to content

Conversation

BernardGatt
Copy link
Collaborator

@BernardGatt BernardGatt requested a review from a team as a code owner February 18, 2025 12:13
Bernard Gatt added 3 commits February 18, 2025 13:15
* develop:
  Bump version to 3.14.0
  Addresses PR feedback.
  Added exitClick handling
@BernardGatt BernardGatt changed the title Added support for Queue V3 (WIP) Added support for Queue V3 Mar 17, 2025
Copy link
Contributor

@matt-frizzell matt-frizzell left a comment

Choose a reason for hiding this comment

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

Non-blocking comment. Looks good.


function setQueueAPIVersion(response) {
if (response && response.headers) {
var queueVersion = response.headers["x-cio-queue-version"];
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a blocker to merge but I was wondering if the "x-cio-queue-version" should be a constant. That was the one hard coded value that made me pause. It isn't in multiple places or anything. I gave it another thought as something that isn't hardcoded thinking it was important and shouldn't change.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If we were using it in many places yeah, but in this case I think its easier to read.

@karngyan karngyan requested a review from Copilot March 17, 2025 10:09
Copy link
Contributor

@Copilot 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 PR updates the network and queue services to support Queue V3. Key changes include reducing the network request timeout, switching API endpoints based on the queue version, and implementing session ID generation/renewal for V3 requests.

Reviewed Changes

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

File Description
src/services/network.js Updated timeout configuration and API endpoint switching for V3.
src/services/queue-service.js Added session ID support and adjusted API request logic to support V3.
src/services/settings.js Introduced GIST_QUEUE_V3_API_ENDPOINT and updated queue version getters/setters.
Comments suppressed due to low confidence (2)

src/services/network.js:9

  • The network timeout has been reduced from 20000ms to 5000ms. If this change is intentional, please update the inline comment or documentation to clarify the new timeout value and its rationale.
timeout: 5000

src/services/queue-service.js:56

  • [nitpick] The function name getSessionId implies a simple retrieval but it also renews the session ID TTL. Consider renaming it (e.g., renewSessionId) or splitting the logic for clarity.
function getSessionId() {

@BernardGatt BernardGatt merged commit a5c095a into develop Mar 17, 2025
1 check passed
@BernardGatt BernardGatt deleted the INAPP-13059 branch March 17, 2025 10:57
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