Skip to content

feat(graphql): removed deprecated get config by key (PR6) - #597

Merged
petruki merged 2 commits into
masterfrom
staging
Nov 27, 2026
Merged

petruki merged 2 commits into
masterfrom
staging

Conversation

@petruki

@petruki petruki commented Nov 27, 2026

Copy link
Copy Markdown
Member

This pull request removes the legacy REST endpoint for fetching configuration by key and domain (GET /config/key/:key) and its related code, tests, and documentation. The preferred way to fetch configuration by key is now via the GraphQL endpoint (/adm-graphql). Additionally, related OpenAPI documentation and test coverage have been cleaned up, and unused imports were removed.

API Endpoint Removal and Migration:

  • Removed the GET /config/key/:key REST API endpoint and its route handler from src/routers/config.js, as well as the associated service logic in src/services/config.js. This endpoint is now fully replaced by the GraphQL configuration query on /adm-graphql. [1] [2]
  • Updated the Postman collection to include a new GraphQL request example for configuration queries, guiding users toward the new approach.

Documentation and Schema Cleanup:

  • Removed the OpenAPI documentation for the deleted endpoint from src/api-docs/paths/path-oauth.js and cleaned up the related schema definition in src/api-docs/schemas/oauth.js. [1] [2]

Test Suite Updates:

  • Deleted all test cases for the removed endpoint from tests/config.test.js and tests/oauth.test.js, ensuring the test suite only covers supported API surfaces. [1] [2]

Codebase Maintenance:

  • Cleaned up unused imports in several files, including src/routers/config.js, src/services/config.js, and src/api-docs/schemas/oauth.js, to keep the codebase tidy. [1] [2] [3]

@petruki petruki added this to the v1.4.1 milestone Nov 27, 2026
@petruki petruki self-assigned this Nov 27, 2026
@petruki petruki added the ai-generated Indicates that AI tools were used to generate this change label Nov 27, 2026
@sonarqubecloud

Copy link
Copy Markdown

@petruki
petruki merged commit 200f530 into master Nov 27, 2026
5 checks passed
@petruki
petruki deleted the staging branch November 27, 2026 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-generated Indicates that AI tools were used to generate this change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant