Github user KlausTrainer commented on a diff in the pull request:
https://github.com/apache/couchdb-chttpd/pull/90#discussion_r43658931
--- Diff: src/chttpd_view.erl ---
@@ -94,3 +94,20 @@ handle_view_req(Req, _Db, _DDoc) ->
handle_temp_view_req(Req, _Db) ->
Msg = <<"Temporary views are not supported in CouchDB">>,
chttpd:send_error(Req, 403, forbidden, Msg).
+
+make_etag(Db, DDoc, ViewName, Args) ->
+ DbName = Db#db.name,
+ DDocId = DDoc#doc.id,
+ {ok, ViewGroupInfo} = fabric:get_view_group_info(DbName, DDocId),
--- End diff --
Thanks all for your consideration. I'm closing this in favour of a new pull
request that removes the random ETag.
I like @rnewson's implementation idea, and I'm also happy to help
implementing it.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---