Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-1134

Usability improvements for AtPlus

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Fix
    • Minor
    • backlog-2.0, .backlog
    • .future
    • docs, library
    • None

    Description

      Summary: After working with Jeff, I got AtPlus to work, but it was tricky for me, and would probably be tricky for newbs like me.

      My suggestions mainly revolve around this code:
      {{ config.BucketConfigs = new Dictionary<string, BucketConfiguration> {
      {
      "travel-sample", new BucketConfiguration

      { UseEnhancedDurability = true }

      }
      };}}

      Suggestions:
      1. If you specify a bucket name that doesn't exist in BucketConfigs, no exception is thrown. If I typo the bucket name, I will receive errors downstream when using AtPlus, and it's not clear that they are related.

      2. If I omit the BucketConfigs code, and I later try to use AtPlus, I get an exception "Document does not contain valid MutationToken". It would be nice if the message had additional information like "Make sure to set UseEnhancedDurability to true" or something along those lines.

      3. Setting UseEnhancedDurability to true within a dictionary of buckets on config is not very discoverable. I would suggest perhaps a convenience method on ClientConfiguration itself. Maybe SetUseEnhancedDurability(string bucketName, bool value). Alternatively, make UseEnhancedDurabiltiy default to true?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            matthew.groves Matthew Groves
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty