[MB-6167] Unable to edit view map-reduce function Created: 08/Aug/12  Updated: 09/Jan/13  Resolved: 12/Aug/12

Status: Closed
Project: Couchbase Server
Component/s: UI
Affects Version/s: None
Fix Version/s: 2.0-beta
Security Level: Public

Type: Bug Priority: Major
Reporter: Iryna Mironava Assignee: Aleksey Kondratenko
Resolution: Fixed Votes: 0
Labels: c-block
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: build 1554, CentOS 64 bit, 1 node, 1 bucket

Attachments: GZip Archive ns-diag-20120809104924.txt.tar.gz     PNG File View0_edited.png     PNG File view1_save_clicked.png     PNG File view1_try_edit.png    

 Description   
1. Create a bucket and add some documents
2. Create a view
3. Open just created view, edit map-reduce function, save it
4. Function is saved correctly
5. Create one more ddoc and a view in it
6. Open new view, edit map-reduce function, save it
7. Page is reloaded, old map-reduce function appears, new function is not saved

 Comments   
Comment by Farshid Ghods (Inactive) [ 09/Aug/12 ]
Please attach screenshots + diags
Comment by Iryna Mironava [ 09/Aug/12 ]
diags and screens attached
Comment by Farshid Ghods (Inactive) [ 10/Aug/12 ]
looks like a usability bug we want to fix soon
Comment by Aleksey Kondratenko [ 11/Aug/12 ]
Caused by some bug in cells itself. Interesting.
Comment by Aleksey Kondratenko [ 12/Aug/12 ]
Fix merged http://review.couchbase.org/19514
Comment by Thuan Nguyen [ 12/Aug/12 ]
Integrated in github-ns-server-2-0 #431 (See [http://qa.hq.northscale.net/job/github-ns-server-2-0/431/])
    MB-6167: fixed saving map/reduce functions into wrong views (Revision 2221158bc3128e2490a551d2e997bb0a2185351b)

     Result = SUCCESS
Aliaksey Kandratsenka :
Files :
* priv/public/js/views.js
* priv/js-unit-tests/t/cells-test.js
Generated at Tue Jul 29 16:47:11 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.