Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.1
    • Fix Version/s: None
    • Component/s: Database Core
    • Labels:
      None
    • Skill Level:
      New Contributors Level (Easy)

      Description

      Add functionality to transform _changes with list functions, for example:

      http://somehost:5984/_design/name/_list/list-name/_changes?feed=longpoll

        Issue Links

          Activity

          Hide
          Benoit Chesneau added a comment - - edited

          I think

          http://host/db/_changes?feed=longpoll&transform=dname/funname

          would be more appropriate. So we can handle specific code to manage continuous replication or just render a change.

          Show
          Benoit Chesneau added a comment - - edited I think http://host/db/_changes?feed=longpoll&transform=dname/funname would be more appropriate. So we can handle specific code to manage continuous replication or just render a change.
          Hide
          Fedor Indutny added a comment -

          I think, I can do it.

          Show
          Fedor Indutny added a comment - I think, I can do it.
          Hide
          Robert Newson added a comment -

          -1 on a new API (transform=) to support an existing feature (list functions) on an existing feature (_changes).

          Show
          Robert Newson added a comment - -1 on a new API (transform=) to support an existing feature (list functions) on an existing feature (_changes).
          Hide
          Fedor Indutny added a comment -

          BTW, I think that _show function would be more useful, because if _changes was asked with ?feed=continuous option - ddocs will be rendered one by one.
          To my mind, this shouldn't be an exception.

          Show
          Fedor Indutny added a comment - BTW, I think that _show function would be more useful, because if _changes was asked with ?feed=continuous option - ddocs will be rendered one by one. To my mind, this shouldn't be an exception.
          Hide
          Benoit Chesneau added a comment -

          This is not an existing features. Changes are sending a different response than a lists or a views, so it will require different handling in the handler.

          Also API is more consistent like this, we are speaking to transform the _change resource not the _view resource.

          • Benoit.
          Show
          Benoit Chesneau added a comment - This is not an existing features. Changes are sending a different response than a lists or a views, so it will require different handling in the handler. Also API is more consistent like this, we are speaking to transform the _change resource not the _view resource. Benoit.
          Hide
          Fedor Indutny added a comment -

          Sorry, I was wrong - that's impossible

          Show
          Fedor Indutny added a comment - Sorry, I was wrong - that's impossible
          Hide
          Benoit Chesneau added a comment - - edited

          @rnewson api points don't stop to reuse the code anyway.

          Show
          Benoit Chesneau added a comment - - edited @rnewson api points don't stop to reuse the code anyway.
          Hide
          Jan Lehnardt added a comment -

          What would be a practical use case for this? Would this use case work with all ?feed= options?

          Show
          Jan Lehnardt added a comment - What would be a practical use case for this? Would this use case work with all ?feed= options?
          Hide
          Fedor Indutny added a comment -

          Yep, with all.

          That can be useful if one will want to transfer part of documents on _changes, especially when full versions are big.

          Show
          Fedor Indutny added a comment - Yep, with all. That can be useful if one will want to transfer part of documents on _changes, especially when full versions are big.

            People

            • Assignee:
              Unassigned
              Reporter:
              Fedor Indutny
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development