You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by eiri <gi...@git.apache.org> on 2016/02/29 21:14:34 UTC

[GitHub] couchdb-fabric pull request: Extend fetch ddoc logic for view filt...

GitHub user eiri opened a pull request:

    https://github.com/apache/couchdb-fabric/pull/40

    Extend fetch ddoc logic for view filtered changes feeds

    This extends a change introduced in PR #37 to be used with filtered by view replication
    
    Companion PR [apache/couchdb-couch#148](https://github.com/apache/couchdb-couch/pull/148)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cloudant/couchdb-fabric 57286-extend-fetch-ddoc-to-view-filtered-changes

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/couchdb-fabric/pull/40.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #40
    
----
commit defa76fd1d44254e04f8e30001b80ab10f2de830
Author: Eric Avdey <ei...@eiri.ca>
Date:   2016-02-29T20:07:09Z

    Extent fetch ddoc logic for view filtered changes feeds

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-fabric pull request: Extend fetch ddoc logic for view filt...

Posted by chewbranca <gi...@git.apache.org>.
Github user chewbranca commented on the pull request:

    https://github.com/apache/couchdb-fabric/pull/40#issuecomment-191469401
  
    +1 for this PR, with or without the suggestion I made; I'm fine with either approach.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-fabric pull request: Extend fetch ddoc logic for view filt...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/couchdb-fabric/pull/40


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-fabric pull request: Extend fetch ddoc logic for view filt...

Posted by chewbranca <gi...@git.apache.org>.
Github user chewbranca commented on a diff in the pull request:

    https://github.com/apache/couchdb-fabric/pull/40#discussion_r54804058
  
    --- Diff: src/fabric_rpc.erl ---
    @@ -50,10 +50,15 @@ changes(DbName, Options, StartVector, DbOptions) ->
         Args0 = lists:keyfind(changes_args, 1, Options),
         #changes_args{dir=Dir, filter_fun=Filter} = Args0,
         Args = case Filter of
    -        {fetch, Style, Req, {DDocId, Rev}, FName} ->
    +        {fetch, FilterType, Style, Req, {DDocId, Rev}, FName} ->
                 {ok, DDoc} = ddoc_cache:open_doc(mem3:dbname(DbName), DDocId, Rev),
                 Args0#changes_args{
    -                filter_fun={custom, Style, Req, DDoc, FName}
    +                filter_fun={FilterType, Style, Req, DDoc, FName}
    +            };
    --- End diff --
    
    What do you think of making `FilterType` explicit here and match on `custom`? It's a little bit more awkward in the lower case given you can have `view` or `fast_view`, but I think it would make this it a bit more clear as to what the different cases are handling. I'm not attached to the idea though.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---