-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating a design doc view map function does not take effect #1758
Comments
pasin
added a commit
that referenced
this issue
Sep 23, 2017
If view’s properties is not nil, always compare the version (SHA1 hash of the new view’s properties) whether it is the same as the current version or not. If version is not the same, recompile the map/reduce fn and re-register the map/reduce fn. #1758
pasin
added a commit
that referenced
this issue
Sep 23, 2017
If view’s properties is not nil, always compare the version (SHA1 hash of the new view’s properties) whether it is the same as the current version or not. If version is not the same, recompile the map/reduce fn and re-register the map/reduce fn. #1758
pasin
added a commit
that referenced
this issue
Sep 28, 2017
* Fixed bug that doesn’t return NOT_FOUND status when compiling the design doc and there is no design doc or map function defined. Also support the case that there is a native design doc like view defined, then the design doc is queries through the REST API. * Added isDesignDoc flag to bypass design doc compilation process (check existing and version) if the view is not a design doc view. #1758
pasin
added a commit
that referenced
this issue
Sep 28, 2017
* Fixed bug that doesn’t return NOT_FOUND status when compiling the design doc and there is no design doc or map function defined. Also support the case that there is a native design doc like view defined, then the design doc is queries through the REST API. * Added isDesignDoc flag to bypass design doc compilation process (check existing and version) if the view is not a design doc view. #1758
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The issue was originally reported against android:
https://github.com/couchbase/couchbase-lite-android/issues/1139
Test case:
-> Even though design doc is updated to version 2, the second query will use design doc 1 and return 10 docs instead of 5
Steps to reproduce:
pytest -k test_design_doc_update --liteserv-platform=macosx --liteserv-version=1.4.0-3 --liteserv-host=localhost --liteserv-port=59840 --liteserv-storage-engine=SQLite --sync-gateway-version=1.4.2-368 --sync-gateway-mode=cc --server-version=5.0.0-2873 testsuites/listener/shared/client_sg/
The text was updated successfully, but these errors were encountered: