- Notifications
You must be signed in to change notification settings - Fork 34
Support for additional collection endpoints #356
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
Merged
Zyqsempai merged 12 commits into ArangoDB-Community:master from arangodb:feature-3.8/DE-197-support-for-additional-collection-endpoints Apr 12, 2022
Merged
Changes from 1 commit
Commits
Show all changes
12 commits Select commit Hold shift + click to select a range
47df3f1 Initial implementation of additional collection endpoints
tjoubert 5547a38 Actual method implementations
tjoubert ee82a87 Tests
tjoubert 0ec5f97 Updated roadmap doc
tjoubert 3834187 Fixed tests
tjoubert 5d2158b Fixed URL in CompactCollectionDataAsync
tjoubert 2b077b2 Changes based on PR reviews
tjoubert 00e226a Fixed comments on GetChecksumResponse.GloballyUniqueId
tjoubert 134085e Fixes as per reviews
tjoubert f6d1f29 Changes to config.yml
tjoubert cc6ba28 Update to roadmap doc
tjoubert a292e68 Fixed config.yml
tjoubert File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Initial implementation of additional collection endpoints
- Loading branch information
commit 47df3f135c9312c4efab915befdfb75d4dc3730e
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions 9 arangodb-net-standard/CollectionApi/Models/CollectionShardsDetailedResponse.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| using System.Collections.Generic; | ||
| | ||
| namespace ArangoDBNetStandard.CollectionApi.Models | ||
| { | ||
| public class CollectionShardsDetailedResponse : CollectionShardsResponseBase | ||
| { | ||
| public Dictionary<string,List<string>> Shards { get; set; } | ||
| } | ||
| } |
9 changes: 9 additions & 0 deletions 9 arangodb-net-standard/CollectionApi/Models/CollectionShardsKeyOption.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| namespace ArangoDBNetStandard.CollectionApi.Models | ||
| { | ||
| | ||
| public class CollectionShardsKeyOption | ||
| { | ||
| public bool? AllowUserKeys { get; set; } | ||
| public string Type { get; set; } | ||
| } | ||
| } |
9 changes: 9 additions & 0 deletions 9 arangodb-net-standard/CollectionApi/Models/CollectionShardsResponse.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| using System.Collections.Generic; | ||
| | ||
| namespace ArangoDBNetStandard.CollectionApi.Models | ||
| { | ||
| public class CollectionShardsResponse : CollectionShardsResponseBase | ||
| { | ||
| public List<string> Shards { get; set; } | ||
| } | ||
| } |
31 changes: 31 additions & 0 deletions 31 arangodb-net-standard/CollectionApi/Models/CollectionShardsResponseBase.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| using System.Collections.Generic; | ||
| | ||
| namespace ArangoDBNetStandard.CollectionApi.Models | ||
| { | ||
| public class CollectionShardsResponseBase : ResponseBase | ||
| { | ||
| public bool? WaitForSync { get; set; } | ||
| public string ShardingStrategy { get; set; } | ||
| public bool? UsesRevisionsAsDocumentIds { get; set; } | ||
| public object Schema { get; set; } | ||
| public int? WriteConcern { get; set; } | ||
| public bool? SyncByRevision { get; set; } | ||
| public int? ReplicationFactor { get; set; } | ||
| public int? NumberOfShards { get; set; } | ||
| public string Id { get; set; } | ||
| public string Name { get; set; } | ||
| public bool? IsDisjoint { get; set; } | ||
| public int? MinReplicationFactor { get; set; } | ||
| public int? Status { get; set; } | ||
| public int? Type { get; set; } | ||
| public string GloballyUniqueId { get; set; } | ||
| public bool? IsSmart { get; set; } | ||
| public bool? IsSystem { get; set; } | ||
| public int? InternalValidatorType { get; set; } | ||
| public bool? IsSmartChild { get; set; } | ||
| public string StatusString { get; set; } | ||
| public bool? CacheEnabled { get; set; } | ||
| public List<string> ShardKeys { get; set; } | ||
| public CollectionShardsKeyOption KeyOptions { get; set; } | ||
| } | ||
| } |
12 changes: 12 additions & 0 deletions 12 arangodb-net-standard/CollectionApi/Models/CompactCollectionDataResponse.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| namespace ArangoDBNetStandard.CollectionApi.Models | ||
| { | ||
| public class CompactCollectionDataResponse : ResponseBase | ||
| { | ||
| public int? Type { get; set; } | ||
| public int? Status { get; set; } | ||
| public bool? IsSystem { get; set; } | ||
| public string Name { get; set; } | ||
| public string Id { get; set; } | ||
| public string GloballyUniqueId { get; set; } | ||
| } | ||
| } |
10 changes: 10 additions & 0 deletions 10 arangodb-net-standard/CollectionApi/Models/DocumentShardResponse.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| namespace ArangoDBNetStandard.CollectionApi.Models | ||
| { | ||
| public class DocumentShardResponse : ResponseBase | ||
| { | ||
| /// <summary> | ||
| /// The Id of the responsible shard. | ||
| /// </summary> | ||
| public string ShardId { get; set; } | ||
| } | ||
| } |
44 changes: 44 additions & 0 deletions 44 arangodb-net-standard/CollectionApi/Models/GetChecksumQuery.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| using System; | ||
| using System.Collections.Generic; | ||
| using System.Text; | ||
| | ||
| namespace ArangoDBNetStandard.CollectionApi.Models | ||
| { | ||
| /// <summary> | ||
| /// Generates query for <see cref="ICollectionApiClient.GetChecksumAsync(string, GetChecksumQuery)"/> | ||
| /// </summary> | ||
| public class GetChecksumQuery | ||
| { | ||
| /// <summary> | ||
| /// Optional. Indicates whether or not to include document | ||
| /// revision ids in the checksum calculation. | ||
| /// When true, then revision ids (_rev system attributes) | ||
| /// are included in the checksumming. | ||
| /// </summary> | ||
| public bool? WithRevisions { get; set; } | ||
| | ||
| /// <summary> | ||
| /// Optional. Indicates whether or not to include document | ||
| /// body data in the checksum calculation. | ||
| /// When true, the user-defined document attributes will | ||
| /// be included in the calculation too. | ||
| /// Note: Including user-defined attributes will | ||
| /// make the checksumming slower. | ||
| /// </summary> | ||
| public bool? WithData { get; set; } | ||
| | ||
| internal string ToQueryString() | ||
| { | ||
| List<string> query = new List<string>(); | ||
| if (WithRevisions != null) | ||
| { | ||
| query.Add("withRevisions=" + WithRevisions.ToString().ToLower()); | ||
| } | ||
| if (WithData != null) | ||
| { | ||
| query.Add("withData=" + WithData.ToString().ToLower()); | ||
| } | ||
| return string.Join("&", query); | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.