<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Sat May 25 00:44:56 CDT 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.couchbase.com/issues/si/jira.issueviews:issue-xml/MB-4549/MB-4549.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Couchbase</title>
    <link>http://www.couchbase.com/issues</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.4</version>
        <build-number>845</build-number>
        <build-date>26-12-2012</build-date>
    </build-info>

<item>
            <title>[MB-4549] make CAPI CRUD return $flags and $expiration in replies [was: emitting a doc into the view brings $flags and $expiration]</title>
                <link>http://www.couchbase.com/issues/browse/MB-4549</link>
                <project id="10010" key="MB">Couchbase Server</project>
                        <description>(update by alk):&lt;br/&gt;
&lt;br/&gt;
As can be seen in comments we think we should always expose $flags and $expiration in json docs we expose either via CAPI CRUD or view map/reduce. So going to change CAPI CRUD code instead.&lt;br/&gt;
&lt;br/&gt;
was:&lt;br/&gt;
&lt;br/&gt;
(originally reported at &lt;a href=&quot;http://www.couchbase.org/forums/thread/magic-flags-and-expiration-vars-show-view-not-doc)&quot;&gt;http://www.couchbase.org/forums/thread/magic-flags-and-expiration-vars-show-view-not-doc)&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
i noticed that if you query a view that emits the document, you get properties like $flag and $expiration, but if you query the http interface for the document url itself, it only shows _rev and _id, not any of the dollar sign magic variables. is there a reason behind that difference?&lt;br/&gt;
curl &amp;quot;&lt;a href=&quot;http://192.168.96.128:8092/default/_design/test/_view/all?key=%22test%2Fquery-1324052106.5247-11152826%22&quot;&gt;http://192.168.96.128:8092/default/_design/test/_view/all?key=%22test%2Fquery-1324052106.5247-11152826%22&lt;/a&gt;&amp;quot;&lt;br/&gt;
{&amp;quot;total_rows&amp;quot;:39,&amp;quot;rows&amp;quot;:[&lt;br/&gt;
{&amp;quot;id&amp;quot;:&amp;quot;test/query-1324052106.5247-11152826&amp;quot;,&amp;quot;key&amp;quot;:&amp;quot;test/query-1324052106.5247-11152826&amp;quot;,&amp;quot;value&amp;quot;:{&amp;quot;_id&amp;quot;:&amp;quot;test/query-1324052106.5247-11152826&amp;quot;,&amp;quot;_rev&amp;quot;:&amp;quot;1-00009fddf9213ed70000000d00000000&amp;quot;,&amp;quot;$flags&amp;quot;:0,&amp;quot;$expiration&amp;quot;:1324055706,&amp;quot;foo&amp;quot;:&amp;quot;bar&amp;quot;}}&lt;br/&gt;
]}&lt;br/&gt;
curl &amp;quot;&lt;a href=&quot;http://192.168.96.128:8092/default/test%2Fquery-1324052106.5247-11152826&quot;&gt;http://192.168.96.128:8092/default/test%2Fquery-1324052106.5247-11152826&lt;/a&gt;&amp;quot;&lt;br/&gt;
{&amp;quot;_id&amp;quot;:&amp;quot;test/query-1324052106.5247-11152826&amp;quot;,&amp;quot;_rev&amp;quot;:&amp;quot;1-00009fddf9213ed70000000d00000000&amp;quot;,&amp;quot;foo&amp;quot;:&amp;quot;bar&amp;quot;}</description>
                <environment></environment>
            <key id="15714">MB-4549</key>
            <summary>make CAPI CRUD return $flags and $expiration in replies [was: emitting a doc into the view brings $flags and $expiration]</summary>
                <type id="1" iconUrl="http://www.couchbase.com/issues/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="1" iconUrl="http://www.couchbase.com/issues/images/icons/priorities/blocker.png">Blocker</priority>
                    <status id="6" iconUrl="http://www.couchbase.com/issues/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10011">Public</security>
                        <assignee username="alkondratenko">Aleksey Kondratenko</assignee>
                                <reporter username="ingenthr">Matt Ingenthron</reporter>
                        <labels>
                        <label>2.0-dev-preview-4-release-notes</label>
                    </labels>
                <created>Sun, 18 Dec 2011 01:54:02 -0600</created>
                <updated>Thu, 1 Mar 2012 14:23:15 -0600</updated>
                    <resolved>Tue, 24 Jan 2012 21:01:33 -0600</resolved>
                            <version>2.0-developer-preview-3</version>
                                <fixVersion>2.0-developer-preview-4</fixVersion>
                                <component>ns_server</component>
                                <votes>0</votes>
                        <watches>1</watches>
                                                    <comments>
                    <comment id="23057" author="alkondratenko" created="Mon, 19 Dec 2011 01:35:48 -0600"  >Matt, do you think we should instead fix CAPI CRUD to add those fields? It feels more natural, because otherwise this information is not available via couch API.&lt;br/&gt;
</comment>
                    <comment id="23064" author="ingenthr" created="Mon, 19 Dec 2011 02:21:05 -0600"  >That was the other thing I&amp;#39;d considered, yeah.  I do agree that it makes more sense to have it there too (and actually, I thought it was!) so long as it won&amp;#39;t break anything else.</comment>
                    <comment id="23752" author="steve" created="Tue, 24 Jan 2012 19:19:06 -0600"  >alk thinks this might be fixed already / raising to Blocker status on his request, so it appears at the top of his list</comment>
                    <comment id="23758" author="alkondratenko" created="Tue, 24 Jan 2012 21:01:33 -0600"  >double checked</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                        <customfield id="customfield_10180" key="com.atlassian.jira.ext.charting:firstresponsedate">
                <customfieldname>Date of First Response</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>Mon, 19 Dec 2011 01:35:48 -0600</customfieldvalue>

                </customfieldvalues>
            </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10081" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Rank</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>5900</customfieldvalue>
                </customfieldvalues>
            </customfield>
                                                                                                                                                                                        <customfield id="customfield_10181" key="com.atlassian.jira.ext.charting:timeinstatus">
                <customfieldname>Time In Status</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                </customfields>
    </item>
</channel>
</rss>