Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-8107

Allow developer to rename a view/design document

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.1.0
    • Component/s: view-engine
    • Security Level: Public
    • Labels:
      None

      Description

      It is not possible today to rename a view, it could be good to allow developer to rename a view from the REST API and the Console.

      When renaming the view we should keep the same index file to avoid rebuilding the full index when it is a simple "typo error" from the developer.

      Note that it is not a critial feature but a nice to have

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

        Activity

        Hide
        FilipeManana Filipe Manana (Inactive) added a comment -

        There's no need for the view engine itself to explicitly do this.

        This is something that can be done by grabbing the ddoc and add it again but with a different ID, and then delete the old one. And this doesn't recreate the index too, see info on design document aliases at:

        http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-views-debugging-aliases.html

        and

        http://hub.internal.couchbase.com/confluence/display/QA/Debugging+view+engine+issues+and+reporting+them#Debuggingviewengineissuesandreportingthem-section8

        Therefore rename can be done via SDKs or some other higher level layer.

        Show
        FilipeManana Filipe Manana (Inactive) added a comment - There's no need for the view engine itself to explicitly do this. This is something that can be done by grabbing the ddoc and add it again but with a different ID, and then delete the old one. And this doesn't recreate the index too, see info on design document aliases at: http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-views-debugging-aliases.html and http://hub.internal.couchbase.com/confluence/display/QA/Debugging+view+engine+issues+and+reporting+them#Debuggingviewengineissuesandreportingthem-section8 Therefore rename can be done via SDKs or some other higher level layer.
        Hide
        maria Maria McDuff (Inactive) added a comment -

        assigning to PM to confirm it's fine to not fix.

        Show
        maria Maria McDuff (Inactive) added a comment - assigning to PM to confirm it's fine to not fix.
        Hide
        maria Maria McDuff (Inactive) added a comment -

        pls re-open if this is necessary.

        Show
        maria Maria McDuff (Inactive) added a comment - pls re-open if this is necessary.

          People

          • Assignee:
            anil Anil Kumar
            Reporter:
            tgrall Tug Grall (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes