Skip to content

Conversation

@Harshi-Shah-CS
Copy link
Contributor

fix: suppress error message in non-development environments

@Harshi-Shah-CS Harshi-Shah-CS requested a review from a team as a code owner November 5, 2025 12:47
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 PR upgrades Apollo Client from v3.11.8 to v3.14.0 and implements console suppression for Apollo-related errors and warnings in non-development environments. The changes help reduce noise in production logs by filtering out Apollo Client internal warnings while preserving application-level logging.

  • Upgraded @apollo/client dependency to version 3.14.0
  • Added console suppression logic for Apollo-related messages in non-development environments
  • Introduced withDeprecationsDisabled helper method to handle deprecation warnings during watchQuery operations

Reviewed Changes

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

Show a summary per file
File Description
package.json Updates @apollo/client dependency from ^3.11.8 to ^3.14.0
package-lock.json Reflects the updated @apollo/client version and integrity hash
src/util/apollo-client.ts Adds console suppression logic and exports isNotDevelopment flag
src/util/logs-polling-utilities.ts Implements withDeprecationsDisabled wrapper for watchQuery calls to suppress deprecation warnings
test/unit/util/apollo-client.test.ts Adds comprehensive tests for console suppression behavior

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

dhruvparekh12
dhruvparekh12 previously approved these changes Nov 5, 2025
Copy link
Contributor

@dhruvparekh12 dhruvparekh12 left a comment

Choose a reason for hiding this comment

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

👍

@Harshi-Shah-CS Harshi-Shah-CS merged commit 1125814 into development Nov 5, 2025
6 of 7 checks passed
@Harshi-Shah-CS Harshi-Shah-CS deleted the cl-2079 branch November 5, 2025 13:30
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