#11: Updating View definition does not update view document on server
Issue revisions
- new by PHPGangsta at 2010-O-21 13:15
- new by kore at 2011-J-05 10:19
| Type | |
|---|---|
| State | |
| Priority | |
| Resolution | |
| Assigned to | Nobody |
| Scheduled for | |
| Affected versions | |
| Affected components | Core |
| Last change | Wednesday 5 January 2011 10:19:02 UTC by kore |
Short description
I just changed my View (added a reduce function) and I wondered why the reduce was not executed. After half an hour I saw that the view was not updated on the server.
Environment
Ubuntu
Steps to reproduce
Create a View, use it, and then change the View.
Perhaps it would be useful to check if the view on the server is the same as the one we want to execute. This has to be added to phpillowView->query() method I think. Some kind of MD5 check perhaps (of the local and the remote view script)?
Expected behavior
The new View should be uploaded and executed.
Actual behavior
The old View is executed and not updated.
kore at Wednesday 5 January 2011 10:19:02 UTC
This is not possible without executing extra requests to verify the view before each request to the view.
Checking this automatically would cost to much performance.
The sane way would be to implement some kind of development mode, which does that, or a verify method which the has to be called manually.