Skip to content

Conversation

bluepal-prasanthi-moparthi
Copy link
Collaborator

This PR includes the following Replication - related endpoints:

  1. GET - /_db/{database-name}/_api/replication/inventory
  2. POST - /_db/{database-name}/_api/replication/batch
  3. DELETE - /_db/{database-name}/_api/replication/batch/{id}
  4. PUT - /_db/{database-name}/_api/replication/batch/{id}
  5. GET - /_db/{database-name}/_api/replication/dump
  6. GET - /_db/{database-name}/_api/replication/revisions/tree
  7. POST - /_db/{database-name}/_api/replication/revisions/tree
  8. PUT - /_db/{database-name}/_api/replication/revisions/ranges
  9. PUT - /_db/{database-name}/_api/replication/revisions/documents
  10. PUT - /_db/{database-name}/_api/replication/sync
  11. GET - /_db/{database-name}/_api/replication/logger-state
  12. GET - /_db/{database-name}/_api/replication/logger-first-tick
  13. GET - /_db/{database-name}/_api/replication/logger-tick-ranges
  14. GET - /_db/{database-name}/_api/replication/applier-config
  15. PUT - /_db/{database-name}/_api/replication/applier-config
  16. PUT - /_db/{database-name}/_api/replication/applier-start
  17. PUT - /_db/{database-name}/_api/replication/applier-stop
  18. GET - /_db/{database-name}/_api/replication/applier-state
  19. PUT - /_db/{database-name}/_api/replication/make-follower
  20. GET - /_db/{database-name}/_api/replication/server-id
  21. GET - /_db/{database-name}/_api/wal/range
  22. GET - /_db/{database-name}/_api/wal/lastTick
  23. GET - /_db/{database-name}/_api/wal/tail

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 replication endpoint support to the ArangoDB Go driver v2, implementing 23 missing replication-related API endpoints. The implementation includes batch management, inventory querying, dump operations, logger state management, applier configuration and control, WAL operations, and revision synchronization.

  • Implements 23 missing replication endpoints covering batch operations, logger management, applier control, and WAL operations
  • Adds comprehensive type definitions for all replication API request/response structures
  • Includes extensive test coverage for all new endpoints with proper server role validation

Reviewed Changes

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

Show a summary per file
File Description
v2/tests/client_replication_test.go Comprehensive test suite covering all new replication endpoints with server role validation
v2/arangodb/client_replication_impl.go Complete implementation of all 23 replication endpoints with proper error handling and role checking
v2/arangodb/client_replication.go Interface definitions and type structures for all replication operations
v2/arangodb/client_impl.go Integration of replication client into main client structure
v2/arangodb/client.go Addition of ClientReplication interface to main Client interface
v2/CHANGELOG.md Documentation of the new replication endpoints feature

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@jwierzbo jwierzbo merged commit 152c3f4 into master Sep 5, 2025
9 checks passed
@jwierzbo jwierzbo deleted the feature/add_mis_endpoints_in_replication branch September 5, 2025 10:26
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