Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.2
    • Component/s: None
    • Labels:
      None
    • Skill Level:
      Regular Contributors Level (Easy to Medium)

      Description

      Add the ability to use map view function to filter changes instead of duplicating the
      effort in writing a filter function that does the same, which is
      apparently done a lot.

      Each time a value could be emitted, a change is returned. The url is :

      http://127.0.0.1:5984/testdb/_changes?filter=_view&view=dname/viewname

      On other advantage is that I can also use this in an external indexer.

      Branch is available on my github repo :

      https://github.com/benoitc/couchdb/tree/view_changes

      diff has been attached.

      1. view_changes.patch
        9 kB
        Benoit Chesneau

        Activity

        Hide
        Filipe Manana added a comment -

        you have my +1 vote.

        regards

        Show
        Filipe Manana added a comment - you have my +1 vote. regards
        Hide
        Benoit Chesneau added a comment -

        Patch is waiting since a while without nothing against it. Commited in trunk.

        Show
        Benoit Chesneau added a comment - Patch is waiting since a while without nothing against it. Commited in trunk.
        Hide
        Michael Reuss added a comment -

        Thanks for this great feature that finally made it to me in 1.2
        I was able to find the tests that explain the usage, but alas, it doesn't work for me as expected: I don't see document deletions any more in the changes feed. Is that on purpose? I suppose, I can't just emit a key in my view for deleted docs. Could we add deleted documents to the _view filter or do I miss something in the intended use?

        Thanks, Micha.

        Show
        Michael Reuss added a comment - Thanks for this great feature that finally made it to me in 1.2 I was able to find the tests that explain the usage, but alas, it doesn't work for me as expected: I don't see document deletions any more in the changes feed. Is that on purpose? I suppose, I can't just emit a key in my view for deleted docs. Could we add deleted documents to the _view filter or do I miss something in the intended use? Thanks, Micha.

          People

          • Assignee:
            Benoit Chesneau
            Reporter:
            Benoit Chesneau
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development