Skip to content

Conversation

@dwedr
Copy link
Collaborator

@dwedr dwedr commented Nov 25, 2025

I have JIRA issue created

  • branch and/or PR name(s) includes JIRA ID
  • issue has "Fix version" assigned
  • issue "Status" is set to "In review"
  • PR labels are selected
  • FLP integration tests were ran successful

Implementation of services that use the Vault REST API for logging the Central System into Vault as a client to obtain an access token for subsequent calls, renewing that token, signing data using the Transit engine, and creating, updating, or retrieving credentials/secrets from Vault.

dwedr added 30 commits November 6, 2025 10:40
…ub.com:AliceO2Group/WebUi into feature/TKN/OGUI-1715/central-system-structure
}
}

const logger = LogManager.getLogger('Database');

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable logger.

Copilot Autofix

AI 21 days ago

The best way to fix the unused variable logger is to remove its declaration entirely from the code snippet. This is a single-line removal on line 37 of the file Tokenization/backend/central-system/src/lib/database/Database.ts. No other code modifications are required, as there is no evidence that logger is needed for any other logic within the snippet.

Suggested changeset 1
Tokenization/backend/central-system/src/lib/database/Database.ts

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/Tokenization/backend/central-system/src/lib/database/Database.ts b/Tokenization/backend/central-system/src/lib/database/Database.ts
--- a/Tokenization/backend/central-system/src/lib/database/Database.ts
+++ b/Tokenization/backend/central-system/src/lib/database/Database.ts
@@ -34,7 +34,6 @@
   }
 }
 
-const logger = LogManager.getLogger('Database');
 
 export const db = await Database.createDatabase({
   host: process.env.DB_HOST ?? 'database',
EOF
@@ -34,7 +34,6 @@
}
}

const logger = LogManager.getLogger('Database');

export const db = await Database.createDatabase({
host: process.env.DB_HOST ?? 'database',
Copilot is powered by AI and may make mistakes. Always verify output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants