Skip to content

Conversation

bluepal-prasanthi-moparthi
Copy link
Collaborator

This includes the following Query-related endpoints:

  1. GET - _db/{database-name}/_api/query/properties
  2. PUT - _db/{database-name}/_api/query/properties
  3. GET - _db/{database-name}/_api/query/current
  4. GET - _db/{database-name}/_api/query/slow
  5. DELETE - _db/{database-name}/_api/query/slow
  6. DELETE - _db/{database-name}/_api/query/{query-id}
  7. GET - _db/{database-name}/_api/query/rules
  8. GET - _db/{database-name}/_api/query-plan-cache
  9. DELETE - _db/{database-name}/_api/query-plan-cache
  10. GET - _db/{database-name}/_api/query-cache/entries
  11. DELETE - _db/{database-name}/_api/query-cache
  12. GET - _db/{database-name}/_api/query-cache/properties
  13. PUT - _db/{database-name}/_api/query-cache/properties
  14. POST - _db/{database-name}/_api/aqlfunction
  15. DELETE - _db/{database-name}/_api/aqlfunction/{name}
  16. GET - _db/{database-name}/_api/aqlfunction

@bluepal-prasanthi-moparthi bluepal-prasanthi-moparthi force-pushed the feature/add_mis_endpoints_in_query branch from 02974e4 to f6a6c13 Compare August 6, 2025 11:57
@jwierzbo jwierzbo requested a review from Copilot August 7, 2025 07:14
Copilot

This comment was marked as outdated.

@jwierzbo jwierzbo requested a review from Copilot August 14, 2025 12:02
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 adds comprehensive query-related endpoints to the ArangoDB Go driver v2, implementing 16 missing API endpoints for query management and user-defined functions. The implementation provides full query system control including properties management, query monitoring, caching, optimization rules, and user-defined function operations.

  • Adds query properties management endpoints (GET/PUT)
  • Implements query monitoring and control endpoints (current/slow queries, kill operations)
  • Adds query caching and plan cache management endpoints
  • Includes optimizer rules and user-defined function endpoints

Reviewed Changes

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

Show a summary per file
File Description
v2/utils/type.go Adds ToJSONString utility function for JSON formatting
v2/tests/database_query_test.go Comprehensive test suite for all new query endpoints
v2/arangodb/utils.go Adds RequiredFieldError helper function
v2/arangodb/database_query_impl.go Complete implementation of all 16 query endpoints
v2/arangodb/database_query.go Interface definitions and data structures for query endpoints
v2/CHANGELOG.md Documents the addition of missing query endpoints

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@jwierzbo jwierzbo merged commit 7d8e21b into master Aug 19, 2025
9 checks passed
@jwierzbo jwierzbo deleted the feature/add_mis_endpoints_in_query branch August 19, 2025 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants