<!-- 
RSS generated by JIRA (1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d) at Thu Feb 08 23:09:19 UTC 2024

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.
-->
<rss version="0.92" >
<channel>
    <title>FOLIO Jira</title>
    <link>https://folio-org.atlassian.net</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>1001.0.0-SNAPSHOT</version>
        <build-number>100246</build-number>
        <build-date>07-02-2024</build-date>
    </build-info>

<item>
            <title>[FOLIO-923] Sorting on repeated fields in PostgreSQL JSON records</title>
                <link>https://folio-org.atlassian.net/browse/FOLIO-923</link>
                <project id="10290" key="FOLIO">FOLIO</project>
                    <description>&lt;p&gt;This is more of a logical problem than a technical one I guess.&lt;/p&gt;

&lt;p&gt;When we have repeated &apos;creators&apos; or &apos;identifiers&apos; it doesn&apos;t make a lot of sense to try very hard to sort records on all of the elements. &lt;/p&gt;

&lt;p&gt;Do we sort records on the first author in the array? &lt;/p&gt;</description>
                <environment></environment>
        <key id="79369">FOLIO-923</key>
            <summary>Sorting on repeated fields in PostgreSQL JSON records</summary>
                <type id="10004" iconUrl="https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10300?size=medium">Sub-task</type>
                            <parent id="80503">FOLIO-921</parent>
                                    <priority id="10002" iconUrl="https://dev.folio.org/assets/jira-priority/jira-p3.svg">P3</priority>
                        <status id="1" iconUrl="https://folio-org.atlassian.net/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                                        <assignee accountid="-1">Unassigned</assignee>
                                                                <reporter accountid="5bffed5e2434bf3a1a91d37a">Niels Erik Nielsen</reporter>
                                    <labels>
                    </labels>
                <created>Fri, 3 Nov 2017 10:46:35 +0000</created>
                <updated>Fri, 24 May 2019 10:15:07 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                <comments>
                                                            <comment id="191009" author="557058:b8e64633-1f7c-402d-9caf-9959a5ba5d0d" created="Tue, 7 Nov 2017 14:41:14 +0000"  >&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=5ee89462f7aa140abd82d11d&quot; class=&quot;user-hover&quot; rel=&quot;5ee89462f7aa140abd82d11d&quot; data-account-id=&quot;5ee89462f7aa140abd82d11d&quot; accountid=&quot;5ee89462f7aa140abd82d11d&quot; rel=&quot;noreferrer&quot;&gt;Julian Ladisch&lt;/a&gt; &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=712020%3A32bb56ac-50e7-4787-b4af-ed3089d9401c&quot; class=&quot;user-hover&quot; rel=&quot;712020:32bb56ac-50e7-4787-b4af-ed3089d9401c&quot; data-account-id=&quot;712020:32bb56ac-50e7-4787-b4af-ed3089d9401c&quot; accountid=&quot;712020:32bb56ac-50e7-4787-b4af-ed3089d9401c&quot; rel=&quot;noreferrer&quot;&gt;shale99&lt;/a&gt; How does the sort on array values work right now?&lt;/p&gt;</comment>
                                                            <comment id="191012" author="5bffed5e2434bf3a1a91d37a" created="Tue, 7 Nov 2017 14:41:46 +0000"  >&lt;p&gt;select jsonb-&amp;gt;&apos;creators&apos; from diku_mod_inventory_storage.instance order by jsonb-&amp;gt;&apos;creators&apos;&lt;del&gt;&amp;gt;0&lt;/del&gt;&amp;gt;&apos;name&apos;;&lt;/p&gt;

&lt;p&gt;The current request:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://localhost:9130/instance-storage/instances?limit=30&amp;amp;query=cql.allRecords%3D1%20sortby%20creators&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://localhost:9130/instance-storage/instances?limit=30&amp;amp;query=cql.allRecords%3D1%20sortby%20creators&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&quot;creators&quot; : [ &lt;/p&gt;
{
      &quot;name&quot; : &quot;Fielding, Helen&quot;,
      &quot;creatorTypeId&quot; : &quot;2b94c631-fca9-a892-c730-03ee529ffe2a&quot;
    }
&lt;p&gt; ]&lt;/p&gt;</comment>
                                                            <comment id="191013" author="557058:b8e64633-1f7c-402d-9caf-9959a5ba5d0d" created="Tue, 7 Nov 2017 14:52:28 +0000"  >&lt;p&gt;I would expect sort to be expressed in an explicit way like so:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;... sortby creators&lt;span class=&quot;error&quot;&gt;&amp;#91;0&amp;#93;&lt;/span&gt;.name&lt;/tt&gt;&lt;/p&gt;</comment>
                                                            <comment id="191015" author="5ee89462f7aa140abd82d11d" created="Tue, 7 Nov 2017 15:12:27 +0000"  >&lt;p&gt;The current implementation uses postgres&apos; array sort that first sorts by number of array elements and then on the first array element, then on the second array element, etc.: &lt;a href=&quot;http://sqlfiddle.com/#!17/ebbb7/1&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;http://sqlfiddle.com/#!17/ebbb7/1&lt;/a&gt;&lt;br/&gt;
[]&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;a&amp;quot;&amp;#93;&lt;/span&gt;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;b&amp;quot;&amp;#93;&lt;/span&gt;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;c&amp;quot;, &amp;quot;c&amp;quot;&amp;#93;&lt;/span&gt;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;c&amp;quot;, &amp;quot;d&amp;quot;&amp;#93;&lt;/span&gt;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;ca&amp;quot;, &amp;quot;c&amp;quot;&amp;#93;&lt;/span&gt;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;ca&amp;quot;, &amp;quot;d&amp;quot;&amp;#93;&lt;/span&gt;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;b&amp;quot;, &amp;quot;b&amp;quot;, &amp;quot;b&amp;quot;&amp;#93;&lt;/span&gt;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;b&amp;quot;, &amp;quot;b&amp;quot;, &amp;quot;c&amp;quot;&amp;#93;&lt;/span&gt;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;a&amp;quot;, &amp;quot;a&amp;quot;, &amp;quot;a&amp;quot;, &amp;quot;a&amp;quot;&amp;#93;&lt;/span&gt;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;a&amp;quot;, &amp;quot;b&amp;quot;, &amp;quot;c&amp;quot;, &amp;quot;d&amp;quot;&amp;#93;&lt;/span&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="56610">RMB-382</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummarycf">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10057" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Development Team</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10144"><![CDATA[Core: Platform]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10019" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|hzy2dj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10020" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10024" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>[CHART] Date of First Response</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 7 Nov 2017 14:41:14 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                </customfields>
    </item>
</channel>
</rss>