Skip to content

Conversation

@Artuomka
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings December 16, 2025 12:16
@Artuomka Artuomka enabled auto-merge December 16, 2025 12:16
@Artuomka Artuomka merged commit f8d1c42 into main Dec 16, 2025
24 checks passed
@Artuomka Artuomka deleted the backend_unused_code branch December 16, 2025 12:28
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 removes unused caching infrastructure and database dependencies from the backend package. The changes focus on eliminating code that is no longer referenced, specifically cache methods for Knex connections, tunnels, drivers, and table structures.

  • Removed unused cache constants and methods from the backend caching layer
  • Removed ibm_db optional dependency and node-gyp from backend package
  • Relocated node-gyp dependency to shared-code package where ibm_db is actively used

Reviewed changes

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

Show a summary per file
File Description
backend/package.json Removed ibm_db optional dependency, node-gyp dependency, and packageExtensions configuration that are no longer needed in backend
backend/src/helpers/constants/constants.ts Removed cache configuration constants for tunnels, drivers, and table structures that are no longer used
backend/src/helpers/cache/cacher.ts Removed unused cache instances and methods for Knex, tunnels, drivers, and table structures; simplified clearAllCache method
shared-code/package.json Added node-gyp as direct dependency and updated version in packageExtensions for ibm_db
yarn.lock Reflects the dependency changes from backend and shared-code package updates

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

"mongodb": "^6.20.0",
"mysql2": "^3.15.3",
"nanoid": "^5.1.6",
"node-gyp": "^11.5.0",
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

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

Adding node-gyp as a direct dependency is redundant and may cause version conflicts. The node-gyp dependency is already managed through packageExtensions for ibm_db (lines 6-11), which is the package that actually needs it. Since ibm_db is listed as an optional dependency (line 44), adding node-gyp as a direct dependency creates unnecessary coupling and potential version management issues.

Consider removing this line and relying solely on the packageExtensions configuration to provide node-gyp to ibm_db.

Suggested change
"node-gyp": "^11.5.0",

Copilot uses AI. Check for mistakes.
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