-
Notifications
You must be signed in to change notification settings - Fork 81
Feature/add mis endpoints in administration #702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/add mis endpoints in administration #702
Conversation
…mp with microsecond precision
There was a problem hiding this 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 8 missing administration endpoints to the ArangoDB Go driver v2, providing comprehensive administrative functionality. The implementation includes client methods, response structures, and comprehensive test coverage.
Key Changes
- Added 8 new administration endpoints including time, status, support info, configuration, routing, script execution, and database compaction
- Implemented comprehensive response structures for complex data types like server status and deployment information
- Added thorough test coverage with proper error handling for different server configurations
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| v2/arangodb/client_admin.go | Added new method interfaces and extensive response type definitions |
| v2/arangodb/client_admin_impl.go | Implemented the 8 new administration endpoint methods |
| v2/tests/admin_test.go | Added comprehensive test cases for all new endpoints |
| v2/CHANGELOG.md | Updated changelog to document the new administration endpoints |
Comments suppressed due to low confidence (1)
v2/arangodb/client_admin.go:1
- The comment has a grammatical error. 'return' should be 'returns' to match the third-person singular form used in other method comments.
//
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| // GetDeploymentSupportInfo retrieves deployment information for support purposes. | ||
| GetDeploymentSupportInfo(ctx context.Context) (SupportInfoResponse, error) | ||
|
|
||
| // GetStartupConfiguration return the effective configuration of the queried arangod instance. |
Copilot
AI
Sep 22, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing 's' in 'return' - should be 'returns'.
| // GetStartupConfiguration return the effective configuration of the queried arangod instance. | |
| // GetStartupConfiguration returns the effective configuration of the queried arangod instance. |
| type ServerStatusResponse struct { | ||
| // The server type (e.g., "arango") | ||
| Server *string `json:"server,omitempty"` | ||
| // The server version string (e.g,. "3.12.*") |
Copilot
AI
Sep 22, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra comma in 'e.g,.' - should be 'e.g.'.
| // The server version string (e.g,. "3.12.*") | |
| // The server version string (e.g., "3.12.*") |
| } | ||
|
|
||
| type CompactOpts struct { | ||
| //whether or not compacted data should be moved to the minimum possible level. |
Copilot
AI
Sep 22, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space after '//' comment marker - should be '// whether'.
| //whether or not compacted data should be moved to the minimum possible level. | |
| // whether or not compacted data should be moved to the minimum possible level. |
This PR includes the following Administration - related endpoints: