<!-- 
RSS generated by JIRA (1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d) at Thu Feb 08 22:22:16 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>[MODUIMP-62] Mod-user-import throws an error if users are assigned a department that is not part of the first ten departments in a /departments API call</title>
                <link>https://folio-org.atlassian.net/browse/MODUIMP-62</link>
                <project id="10211" key="MODUIMP">mod-user-import</project>
                    <description>&lt;p&gt;&lt;b&gt;Overview:&lt;/b&gt;&lt;br/&gt;
&lt;b&gt;Steps to Reproduce:&lt;/b&gt;&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Log into a FOLIO tenant with more than 10 departments set up in the configuration&lt;/li&gt;
	&lt;li&gt;Make an API call to /departments?limit=100&lt;/li&gt;
	&lt;li&gt;Take the name from the 11th department in the list&lt;/li&gt;
	&lt;li&gt;Post a user with this department to the mod-user-import API&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;&lt;b&gt;Expected Results:&lt;/b&gt;  &lt;br/&gt;
The user goes in &lt;br/&gt;
&lt;b&gt;Actual Results:&lt;/b&gt;   &lt;br/&gt;
 &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;62668_thumb&quot; href=&quot;/rest/api/3/attachment/content/62668&quot; title=&quot;image-2022-02-03-08-47-01-401.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;62668&quot; file-preview-title=&quot;image-2022-02-03-08-47-01-401.png&quot;&gt;&lt;jira-attachment-thumbnail url=&quot;https://folio-org.atlassian.net/rest/api/3/attachment/thumbnail/62668?default=false&quot; jira-url=&quot;https://folio-org.atlassian.net/rest/api/3/attachment/thumbnail/62668&quot; filename=&quot;image-2022-02-03-08-47-01-401.png&quot;&gt;&lt;img src=&quot;https://folio-org.atlassian.net/rest/api/3/attachment/thumbnail/62668&quot; data-attachment-name=&quot;image-2022-02-03-08-47-01-401.png&quot; data-attachment-type=&quot;thumbnail&quot; data-media-services-id=&quot;b637f8d6-87be-4b7f-a4cd-7484e499dfee&quot; data-media-services-type=&quot;file&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/jira-attachment-thumbnail&gt;&lt;/a&gt;&lt;/span&gt; &lt;br/&gt;
&lt;b&gt;Additional Information:&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Interested parties:&lt;/b&gt;  &lt;/p&gt;

&lt;p&gt;User that was posted into Kiwi bugfest the first time:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
{
    &lt;span class=&quot;code-quote&quot;&gt;&quot;users&quot;&lt;/span&gt;: [
        {
            &lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;object&quot;&lt;/span&gt;,
            &lt;span class=&quot;code-quote&quot;&gt;&quot;personal&quot;&lt;/span&gt;: {
                &lt;span class=&quot;code-quote&quot;&gt;&quot;lastName&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;Kuragin&quot;&lt;/span&gt;,
                &lt;span class=&quot;code-quote&quot;&gt;&quot;firstName&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;Anatole&quot;&lt;/span&gt;,
                &lt;span class=&quot;code-quote&quot;&gt;&quot;email&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;anatole@kuragin.ru&quot;&lt;/span&gt;,
                &lt;span class=&quot;code-quote&quot;&gt;&quot;phone&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;111&quot;&lt;/span&gt;,
                &lt;span class=&quot;code-quote&quot;&gt;&quot;mobilePhone&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;22222&quot;&lt;/span&gt;,
                &lt;span class=&quot;code-quote&quot;&gt;&quot;dateOfBirth&quot;&lt;/span&gt;: &quot;&quot;,
                &lt;span class=&quot;code-quote&quot;&gt;&quot;preferredContactTypeId&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;Email&quot;&lt;/span&gt;
            },
            &lt;span class=&quot;code-quote&quot;&gt;&quot;username&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;antole123&quot;&lt;/span&gt;,
            &lt;span class=&quot;code-quote&quot;&gt;&quot;externalSystemId&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;antole123&quot;&lt;/span&gt;,
            &lt;span class=&quot;code-quote&quot;&gt;&quot;barcode&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;antole123&quot;&lt;/span&gt;,
            &lt;span class=&quot;code-quote&quot;&gt;&quot;patronGroup&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;Non-UC User, Indefinite&quot;&lt;/span&gt;,
            &lt;span class=&quot;code-quote&quot;&gt;&quot;departments&quot;&lt;/span&gt;: [&lt;span class=&quot;code-quote&quot;&gt;&quot;Heraldry&quot;&lt;/span&gt;],
            &lt;span class=&quot;code-quote&quot;&gt;&quot;expirationDate&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;2014-09-10T00:00:00&quot;&lt;/span&gt;,
            &lt;span class=&quot;code-quote&quot;&gt;&quot;active&quot;&lt;/span&gt;: &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;,
            &lt;span class=&quot;code-quote&quot;&gt;&quot;requestPreference&quot;&lt;/span&gt;: {
                &lt;span class=&quot;code-quote&quot;&gt;&quot;userId&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;0ecf76c1-7c4b-421d-b4fe-ce1bb773fe66&quot;&lt;/span&gt;,
                &lt;span class=&quot;code-quote&quot;&gt;&quot;holdShelf&quot;&lt;/span&gt;: &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;,
                &lt;span class=&quot;code-quote&quot;&gt;&quot;delivery&quot;&lt;/span&gt;: &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;
            }
        }
    ],
    &lt;span class=&quot;code-quote&quot;&gt;&quot;totalRecords&quot;&lt;/span&gt;: 1
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The Departments in Kiwi-bugfest:&lt;br/&gt;
  &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;62667_thumb&quot; href=&quot;/rest/api/3/attachment/content/62667&quot; title=&quot;image-2022-02-03-08-45-23-211.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;62667&quot; file-preview-title=&quot;image-2022-02-03-08-45-23-211.png&quot;&gt;&lt;jira-attachment-thumbnail url=&quot;https://folio-org.atlassian.net/rest/api/3/attachment/thumbnail/62667?default=false&quot; jira-url=&quot;https://folio-org.atlassian.net/rest/api/3/attachment/thumbnail/62667&quot; filename=&quot;image-2022-02-03-08-45-23-211.png&quot;&gt;&lt;img src=&quot;https://folio-org.atlassian.net/rest/api/3/attachment/thumbnail/62667&quot; data-attachment-name=&quot;image-2022-02-03-08-45-23-211.png&quot; data-attachment-type=&quot;thumbnail&quot; data-media-services-id=&quot;e73c0caf-9de2-4965-9884-ca2e6a7b6c64&quot; data-media-services-type=&quot;file&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/jira-attachment-thumbnail&gt;&lt;/a&gt;&lt;/span&gt; &lt;br/&gt;
User that was successfully posted:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
{
    &lt;span class=&quot;code-quote&quot;&gt;&quot;users&quot;&lt;/span&gt;: [
        {
            &lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;object&quot;&lt;/span&gt;,
            &lt;span class=&quot;code-quote&quot;&gt;&quot;personal&quot;&lt;/span&gt;: {
                &lt;span class=&quot;code-quote&quot;&gt;&quot;lastName&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;Kuragin&quot;&lt;/span&gt;,
                &lt;span class=&quot;code-quote&quot;&gt;&quot;firstName&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;Anatole&quot;&lt;/span&gt;,
                &lt;span class=&quot;code-quote&quot;&gt;&quot;email&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;anatole@kuragin.ru&quot;&lt;/span&gt;,
                &lt;span class=&quot;code-quote&quot;&gt;&quot;phone&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;111&quot;&lt;/span&gt;,
                &lt;span class=&quot;code-quote&quot;&gt;&quot;mobilePhone&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;22222&quot;&lt;/span&gt;,
                &lt;span class=&quot;code-quote&quot;&gt;&quot;dateOfBirth&quot;&lt;/span&gt;: &quot;&quot;,
                &lt;span class=&quot;code-quote&quot;&gt;&quot;preferredContactTypeId&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;Email&quot;&lt;/span&gt;
            },
            &lt;span class=&quot;code-quote&quot;&gt;&quot;username&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;antole123&quot;&lt;/span&gt;,
            &lt;span class=&quot;code-quote&quot;&gt;&quot;externalSystemId&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;antole123&quot;&lt;/span&gt;,
            &lt;span class=&quot;code-quote&quot;&gt;&quot;barcode&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;antole123&quot;&lt;/span&gt;,
            &lt;span class=&quot;code-quote&quot;&gt;&quot;patronGroup&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;Non-UC User, Indefinite&quot;&lt;/span&gt;,
            &lt;span class=&quot;code-quote&quot;&gt;&quot;departments&quot;&lt;/span&gt;: [&lt;span class=&quot;code-quote&quot;&gt;&quot;Zoology&quot;&lt;/span&gt;],
            &lt;span class=&quot;code-quote&quot;&gt;&quot;expirationDate&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;2014-09-10T00:00:00&quot;&lt;/span&gt;,
            &lt;span class=&quot;code-quote&quot;&gt;&quot;active&quot;&lt;/span&gt;: &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;,
            &lt;span class=&quot;code-quote&quot;&gt;&quot;requestPreference&quot;&lt;/span&gt;: {
                &lt;span class=&quot;code-quote&quot;&gt;&quot;userId&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;0ecf76c1-7c4b-421d-b4fe-ce1bb773fe66&quot;&lt;/span&gt;,
                &lt;span class=&quot;code-quote&quot;&gt;&quot;holdShelf&quot;&lt;/span&gt;: &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;,
                &lt;span class=&quot;code-quote&quot;&gt;&quot;delivery&quot;&lt;/span&gt;: &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;
            }
        }
    ],
    &lt;span class=&quot;code-quote&quot;&gt;&quot;totalRecords&quot;&lt;/span&gt;: 1
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
</description>
                <environment></environment>
        <key id="76978">MODUIMP-62</key>
            <summary>Mod-user-import throws an error if users are assigned a department that is not part of the first ten departments in a /departments API call</summary>
                <type id="10001" iconUrl="https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10303?size=medium">Bug</type>
                                            <priority id="10001" iconUrl="https://dev.folio.org/assets/jira-priority/jira-p2.svg">P2</priority>
                        <status id="6" iconUrl="https://folio-org.atlassian.net/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10003">Done</resolution>
                                                        <assignee accountid="5f8314dfbdef80006f6f572d">Adam Dickmeiss</assignee>
                                                                <reporter accountid="712020:0a02d059-b8b9-48b3-8a58-727ec44d05d2">Theodor Tolstoy (One-Group.se)</reporter>
                                    <labels>
                            <label>support</label>
                    </labels>
                <created>Thu, 3 Feb 2022 07:45:39 +0000</created>
                <updated>Tue, 25 Oct 2022 07:46:23 +0000</updated>
                            <resolved>Tue, 8 Feb 2022 16:33:43 +0000</resolved>
                                    <version>3.6.3</version>
                                    <fixVersion>3.6.4</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                                <comments>
                                                            <comment id="184653" author="712020:0a02d059-b8b9-48b3-8a58-727ec44d05d2" created="Thu, 3 Feb 2022 07:47:04 +0000"  >&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=600c4a3b74c3e200718680d8&quot; class=&quot;user-hover&quot; rel=&quot;600c4a3b74c3e200718680d8&quot; data-account-id=&quot;600c4a3b74c3e200718680d8&quot; accountid=&quot;600c4a3b74c3e200718680d8&quot; rel=&quot;noreferrer&quot;&gt;Kyle Banerjee&lt;/a&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=632e12f7748d1bfcb85875fd&quot; class=&quot;user-hover&quot; rel=&quot;632e12f7748d1bfcb85875fd&quot; data-account-id=&quot;632e12f7748d1bfcb85875fd&quot; accountid=&quot;632e12f7748d1bfcb85875fd&quot; rel=&quot;noreferrer&quot;&gt;Molly Driscoll&lt;/a&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=5d6eeadef989e00d8c7e897b&quot; class=&quot;user-hover&quot; rel=&quot;5d6eeadef989e00d8c7e897b&quot; data-account-id=&quot;5d6eeadef989e00d8c7e897b&quot; accountid=&quot;5d6eeadef989e00d8c7e897b&quot; rel=&quot;noreferrer&quot;&gt;Anya&lt;/a&gt;&lt;/p&gt;</comment>
                                                            <comment id="184654" author="712020:0a02d059-b8b9-48b3-8a58-727ec44d05d2" created="Thu, 3 Feb 2022 13:35:19 +0000"  >&lt;p&gt;Here is a comparison between how the data is fetched from FOLIO in the Java code:&lt;br/&gt;
Patron groups:&lt;br/&gt;
 &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;62671_thumb&quot; href=&quot;/rest/api/3/attachment/content/62671&quot; title=&quot;screenshot-2.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;62671&quot; file-preview-title=&quot;screenshot-2.png&quot;&gt;&lt;jira-attachment-thumbnail url=&quot;https://folio-org.atlassian.net/rest/api/3/attachment/thumbnail/62671?default=false&quot; jira-url=&quot;https://folio-org.atlassian.net/rest/api/3/attachment/thumbnail/62671&quot; filename=&quot;screenshot-2.png&quot;&gt;&lt;img src=&quot;https://folio-org.atlassian.net/rest/api/3/attachment/thumbnail/62671&quot; data-attachment-name=&quot;screenshot-2.png&quot; data-attachment-type=&quot;thumbnail&quot; data-media-services-id=&quot;9dbbc6d8-9e45-46f4-b1cc-059b9d8b7dc5&quot; data-media-services-type=&quot;file&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/jira-attachment-thumbnail&gt;&lt;/a&gt;&lt;/span&gt; &lt;/p&gt;

&lt;p&gt;Departments:&lt;br/&gt;
 &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;62670_thumb&quot; href=&quot;/rest/api/3/attachment/content/62670&quot; title=&quot;screenshot-1.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;62670&quot; file-preview-title=&quot;screenshot-1.png&quot;&gt;&lt;jira-attachment-thumbnail url=&quot;https://folio-org.atlassian.net/rest/api/3/attachment/thumbnail/62670?default=false&quot; jira-url=&quot;https://folio-org.atlassian.net/rest/api/3/attachment/thumbnail/62670&quot; filename=&quot;screenshot-1.png&quot;&gt;&lt;img src=&quot;https://folio-org.atlassian.net/rest/api/3/attachment/thumbnail/62670&quot; data-attachment-name=&quot;screenshot-1.png&quot; data-attachment-type=&quot;thumbnail&quot; data-media-services-id=&quot;91e39881-4a86-4304-8d02-7787b184b595&quot; data-media-services-type=&quot;file&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/jira-attachment-thumbnail&gt;&lt;/a&gt;&lt;/span&gt; &lt;/p&gt;


&lt;p&gt;mod-user-import can handle 2147483637 more groups than departments...&lt;/p&gt;</comment>
                                                            <comment id="184655" author="557058:a957226f-df85-4fc8-97f4-8b27a26029ed" created="Thu, 3 Feb 2022 19:04:25 +0000"  >&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=712020%3A0a02d059-b8b9-48b3-8a58-727ec44d05d2&quot; class=&quot;user-hover&quot; rel=&quot;712020:0a02d059-b8b9-48b3-8a58-727ec44d05d2&quot; data-account-id=&quot;712020:0a02d059-b8b9-48b3-8a58-727ec44d05d2&quot; accountid=&quot;712020:0a02d059-b8b9-48b3-8a58-727ec44d05d2&quot; rel=&quot;noreferrer&quot;&gt;Theodor Tolstoy (One-Group.se)&lt;/a&gt;:  Does this need to be a hot fix to Kiwi?  Thanks...&lt;/p&gt;</comment>
                                                            <comment id="184656" author="615afd1cd9820f0070a09ef0" created="Thu, 3 Feb 2022 19:12:19 +0000"  >&lt;p&gt;Is it possible to pre-parse the input file to find the unique patron group values so we can (a) count them and (b) feed that uniq&apos;ed list to a query that will retrieve them all? We&apos;ve done things like this in ui-users to correctly set the scope of queries for loan policies given a list of a user&apos;s loans. &lt;/p&gt;

&lt;p&gt;Or do we just buckle and take the cheap fix, throwing &lt;tt&gt;limit=1000&lt;/tt&gt; on the patron-groups query and hope that&apos;s big enough to get all the patron groups and small enough that nothing blows a gasket?&lt;/p&gt;</comment>
                                                            <comment id="184657" author="632e12f7748d1bfcb85875fd" created="Fri, 4 Feb 2022 13:16:46 +0000"  >&lt;p&gt;This bug also impacts the departments filter in the Users app. Do we need a separate Jira for this or will that be fixed as soon as this bug is fixed? I would push for this to be included in a Kiwi hotfix because we have several libraries we are implementing planning to use departments both as part of initial migration and for ongoing user loading.&lt;/p&gt;</comment>
                                                            <comment id="184658" author="70121:f1213da6-7b29-4ca4-bbe6-c32db1da25d3" created="Fri, 4 Feb 2022 14:58:06 +0000"  >&lt;p&gt;The mod-user-import endpoint is defined in mod-user-import, not mod-users.  Moving issue to correct module.&lt;/p&gt;

&lt;p&gt;further edit:  have also confirmed that this issue does not exist in mod-users.  That is, creating and altering user records in mod-users does not fail when a department ID past the first ten are used.  This bug seems confined to mod-user-import.&lt;/p&gt;</comment>
                                                            <comment id="184659" author="70121:f1213da6-7b29-4ca4-bbe6-c32db1da25d3" created="Fri, 4 Feb 2022 17:24:33 +0000"  >&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=615afd1cd9820f0070a09ef0&quot; class=&quot;user-hover&quot; rel=&quot;615afd1cd9820f0070a09ef0&quot; data-account-id=&quot;615afd1cd9820f0070a09ef0&quot; accountid=&quot;615afd1cd9820f0070a09ef0&quot; rel=&quot;noreferrer&quot;&gt;Zak Burke&lt;/a&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=63e2a2771b13d42998e4e706&quot; class=&quot;user-hover&quot; rel=&quot;63e2a2771b13d42998e4e706&quot; data-account-id=&quot;63e2a2771b13d42998e4e706&quot; accountid=&quot;63e2a2771b13d42998e4e706&quot; rel=&quot;noreferrer&quot;&gt;Marc Johnson&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After looking at the code for a bit, Im pretty sure that Zak is right about what&apos;s causing this-when the module pulls the list of departments to check the import data against, it does not specify a limit-so by default, it only gets the first ten records.  I also suspect (though I have not yet checked) that other parts of the code that validate things like patron groups have the same problem.  I can see three potential solutions here, some of which Zak has already outlined:&lt;/p&gt;

&lt;p&gt;1.  Set a limit for the search that&apos;s super-high and hope that it&apos;s high enough to get all entries and low enough that it does not crash anything.  Obviously, this is super-easy to implement.  It&apos;s also hack-y and may lead to more problems in the future.&lt;/p&gt;

&lt;p&gt;2. Examine the totalRecords field in the returned list of departments, and if it&apos;s higher than ten, do another call that sets the limit to that number so as to get them all.  This will make the code more inefficient since it may have to do more than one call to the endpoint to get all records, and I&apos;ve also heard that the counts in these result sets may not be reliable.&lt;/p&gt;

&lt;p&gt;3.  Rework or create a new endpoint in mod-users that will return all department records without needing a limiter.  I believe Zak has already suggested this. Obviously, this is more work, and involves changing code in (potentially) two separate modules.  If we are going to do this for departments, then we should also do it for other endpoints that are being queried, like patron groups, which makes this even more work.&lt;/p&gt;

&lt;p&gt;If time is a factor here (and it seems like it is) then I&apos;d recommend fix #1, with us slating some issues to more permanently address this problem later.  &lt;/p&gt;</comment>
                                                            <comment id="184660" author="70121:f1213da6-7b29-4ca4-bbe6-c32db1da25d3" created="Fri, 4 Feb 2022 17:34:04 +0000"  >&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=632e12f7748d1bfcb85875fd&quot; class=&quot;user-hover&quot; rel=&quot;632e12f7748d1bfcb85875fd&quot; data-account-id=&quot;632e12f7748d1bfcb85875fd&quot; accountid=&quot;632e12f7748d1bfcb85875fd&quot; rel=&quot;noreferrer&quot;&gt;Molly Driscoll&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I cannot answer your question without more details on the specific behavior you are referencing.  As I pointed out earlier, this issue is not in the users module-user data import is located in it&apos;s own module. &lt;/p&gt;</comment>
                                                            <comment id="184661" author="70121:f1213da6-7b29-4ca4-bbe6-c32db1da25d3" created="Fri, 4 Feb 2022 17:37:25 +0000"  >&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=63e2a2771b13d42998e4e706&quot; class=&quot;user-hover&quot; rel=&quot;63e2a2771b13d42998e4e706&quot; data-account-id=&quot;63e2a2771b13d42998e4e706&quot; accountid=&quot;63e2a2771b13d42998e4e706&quot; rel=&quot;noreferrer&quot;&gt;Marc Johnson&lt;/a&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=615afd1cd9820f0070a09ef0&quot; class=&quot;user-hover&quot; rel=&quot;615afd1cd9820f0070a09ef0&quot; data-account-id=&quot;615afd1cd9820f0070a09ef0&quot; accountid=&quot;615afd1cd9820f0070a09ef0&quot; rel=&quot;noreferrer&quot;&gt;Zak Burke&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;okay, this is fun:  the code that fetches patron groups is getting around this by setting an explicit limit of 2147483647 records.  I laughed out loud when I saw it.&lt;/p&gt;</comment>
                                                            <comment id="184662" author="5c48911b54e1e6466b11f38c" created="Fri, 4 Feb 2022 18:22:08 +0000"  >&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=70121%3Af1213da6-7b29-4ca4-bbe6-c32db1da25d3&quot; class=&quot;user-hover&quot; rel=&quot;70121:f1213da6-7b29-4ca4-bbe6-c32db1da25d3&quot; data-account-id=&quot;70121:f1213da6-7b29-4ca4-bbe6-c32db1da25d3&quot; accountid=&quot;70121:f1213da6-7b29-4ca4-bbe6-c32db1da25d3&quot; rel=&quot;noreferrer&quot;&gt;Kyle Felker&lt;/a&gt; oh. oh no. &lt;img class=&quot;emoticon&quot; src=&quot;/images/icons/emoticons/error.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;img class=&quot;emoticon&quot; src=&quot;/images/icons/emoticons/error.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;img class=&quot;emoticon&quot; src=&quot;/images/icons/emoticons/error.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;img class=&quot;emoticon&quot; src=&quot;/images/icons/emoticons/error.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;img class=&quot;emoticon&quot; src=&quot;/images/icons/emoticons/error.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;img class=&quot;emoticon&quot; src=&quot;/images/icons/emoticons/error.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;img class=&quot;emoticon&quot; src=&quot;/images/icons/emoticons/error.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;img class=&quot;emoticon&quot; src=&quot;/images/icons/emoticons/error.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;img class=&quot;emoticon&quot; src=&quot;/images/icons/emoticons/error.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;img class=&quot;emoticon&quot; src=&quot;/images/icons/emoticons/error.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;img class=&quot;emoticon&quot; src=&quot;/images/icons/emoticons/error.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                                                            <comment id="184663" author="5c48911b54e1e6466b11f38c" created="Fri, 4 Feb 2022 18:27:55 +0000"  >&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=632e12f7748d1bfcb85875fd&quot; class=&quot;user-hover&quot; rel=&quot;632e12f7748d1bfcb85875fd&quot; data-account-id=&quot;632e12f7748d1bfcb85875fd&quot; accountid=&quot;632e12f7748d1bfcb85875fd&quot; rel=&quot;noreferrer&quot;&gt;Molly Driscoll&lt;/a&gt; the UI fetch for the department field on the user edit screen is querying with a limit of 10,000 so you can definitely have long lists of departments there. And the UI filter on the user search is the multiselect that&apos;s used in places like locations, so I think it works fine. I just put 11 departments on Snapshot and was able to see all of them there. So unless someone has recently changed that code, this may just be limited to the mod-user-import tool (which is one of the orphaned modules, without a primary dev team for a while)&lt;/p&gt;

&lt;p&gt; &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;a id=&quot;62669_thumb&quot; href=&quot;/rest/api/3/attachment/content/62669&quot; title=&quot;image-2022-02-04-13-28-43-520.png&quot; file-preview-type=&quot;image&quot; file-preview-id=&quot;62669&quot; file-preview-title=&quot;image-2022-02-04-13-28-43-520.png&quot;&gt;&lt;jira-attachment-thumbnail url=&quot;https://folio-org.atlassian.net/rest/api/3/attachment/thumbnail/62669?default=false&quot; jira-url=&quot;https://folio-org.atlassian.net/rest/api/3/attachment/thumbnail/62669&quot; filename=&quot;image-2022-02-04-13-28-43-520.png&quot;&gt;&lt;img src=&quot;https://folio-org.atlassian.net/rest/api/3/attachment/thumbnail/62669&quot; data-attachment-name=&quot;image-2022-02-04-13-28-43-520.png&quot; data-attachment-type=&quot;thumbnail&quot; data-media-services-id=&quot;3c836fe6-7c26-4506-a424-2991f6e09124&quot; data-media-services-type=&quot;file&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/jira-attachment-thumbnail&gt;&lt;/a&gt;&lt;/span&gt; &lt;/p&gt;</comment>
                                                            <comment id="184664" author="632e12f7748d1bfcb85875fd" created="Fri, 4 Feb 2022 21:02:46 +0000"  >&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=5c48911b54e1e6466b11f38c&quot; class=&quot;user-hover&quot; rel=&quot;5c48911b54e1e6466b11f38c&quot; data-account-id=&quot;5c48911b54e1e6466b11f38c&quot; accountid=&quot;5c48911b54e1e6466b11f38c&quot; rel=&quot;noreferrer&quot;&gt;Erin Nettifee&lt;/a&gt;, thanks! I think it was changed Juniper to Kiwi because the library we discovered this with is on Juniper and the issue is there. I was multitasking so much that I didn&apos;t even think to test Bugfest.&#160;&lt;/p&gt;</comment>
                                                            <comment id="184665" author="63e2a2771b13d42998e4e706" created="Mon, 7 Feb 2022 11:10:01 +0000"  >&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=615afd1cd9820f0070a09ef0&quot; class=&quot;user-hover&quot; rel=&quot;615afd1cd9820f0070a09ef0&quot; data-account-id=&quot;615afd1cd9820f0070a09ef0&quot; accountid=&quot;615afd1cd9820f0070a09ef0&quot; rel=&quot;noreferrer&quot;&gt;Zak Burke&lt;/a&gt; &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=70121%3Af1213da6-7b29-4ca4-bbe6-c32db1da25d3&quot; class=&quot;user-hover&quot; rel=&quot;70121:f1213da6-7b29-4ca4-bbe6-c32db1da25d3&quot; data-account-id=&quot;70121:f1213da6-7b29-4ca4-bbe6-c32db1da25d3&quot; accountid=&quot;70121:f1213da6-7b29-4ca4-bbe6-c32db1da25d3&quot; rel=&quot;noreferrer&quot;&gt;Kyle Felker&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Firstly, the Prokopovych team does not own this module. At the very least, I think it could be worth involving the folks that do in this conversation.&lt;/p&gt;

&lt;p&gt;This topic was &lt;a href=&quot;https://folio-project.slack.com/archives/CAQ7L02PP/p1643895913600199&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;discussed&lt;/a&gt; in the TC channel on Slack.&lt;/p&gt;

&lt;p&gt;There doesn&apos;t seem to be a conclusion to those conversations beyond asking developers to think about this stuff.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;1. Set a limit for the search that&apos;s super-high and hope that it&apos;s high enough to get all entries and low enough that it does not crash anything. Obviously, this is super-easy to implement. It&apos;s also hack-y and may lead to more problems in the future.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I agree with all of the concerns here.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;2. Examine the totalRecords field in the returned list of departments, and if it&apos;s higher than ten, do another call that sets the limit to that number so as to get them all. This will make the code more inefficient since it may have to do more than one call to the endpoint to get all records, and I&apos;ve also heard that the counts in these result sets may not be reliable.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I wouldn&apos;t trust the total records count for this logic. Instead, fetch pages until an empty page is fetched.&lt;/p&gt;

&lt;p&gt;This approach potentially makes the memory usage more manageable than a high arbitrary limit. We really don&apos;t have the tooling to make these decisions well in the technical space alone.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;3. Rework or create a new endpoint in mod-users that will return all department records without needing a limiter. I believe Zak has already suggested this. Obviously, this is more work, and involves changing code in (potentially) two separate modules. If we are going to do this for departments, then we should also do it for other endpoints that are being queried, like patron groups, which makes this even more work.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I think &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=615afd1cd9820f0070a09ef0&quot; class=&quot;user-hover&quot; rel=&quot;615afd1cd9820f0070a09ef0&quot; data-account-id=&quot;615afd1cd9820f0070a09ef0&quot; accountid=&quot;615afd1cd9820f0070a09ef0&quot; rel=&quot;noreferrer&quot;&gt;Zak Burke&lt;/a&gt; raised that this approach is highly dependent upon there being a stable expectation for the number of departments in an organisation.&lt;/p&gt;

&lt;p&gt;As usual, this is the kind of thing that we need both the product folks involved in (to figure out those expected department counts) and the technical folks (to have a consistent way of doing this across the project).&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;If time is a factor here (and it seems like it is) then I&apos;d recommend fix #1, with us slating some issues to more permanently address this problem later.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I agree the easiest fix (and the one often chose in other areas) is the larger arbitrary limit.&lt;/p&gt;

&lt;p&gt;Maybe we could add something that checks if the count of departments is the same as the limit and logs / includes a warning in the response that this likely means departments are missing due to how they are fetched.&lt;/p&gt;

&lt;p&gt;As we don&apos;t own this module, we include them in the decision to defer a different solution.&lt;/p&gt;</comment>
                                                            <comment id="184666" author="557058:1f093336-57f7-4359-9b28-6e72640645af" created="Mon, 7 Feb 2022 15:12:53 +0000"  >&lt;p&gt;From SUPPORT SIG: &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=5d794c218ce6b60c3810eb8a&quot; class=&quot;user-hover&quot; rel=&quot;5d794c218ce6b60c3810eb8a&quot; data-account-id=&quot;5d794c218ce6b60c3810eb8a&quot; accountid=&quot;5d794c218ce6b60c3810eb8a&quot; rel=&quot;noreferrer&quot;&gt;Stephanie Buck&lt;/a&gt;&#160;This ticket has been moved to Vega&lt;/p&gt;</comment>
                                                            <comment id="184667" author="5d794c218ce6b60c3810eb8a" created="Mon, 7 Feb 2022 17:10:33 +0000"  >&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A1f093336-57f7-4359-9b28-6e72640645af&quot; class=&quot;user-hover&quot; rel=&quot;557058:1f093336-57f7-4359-9b28-6e72640645af&quot; data-account-id=&quot;557058:1f093336-57f7-4359-9b28-6e72640645af&quot; accountid=&quot;557058:1f093336-57f7-4359-9b28-6e72640645af&quot; rel=&quot;noreferrer&quot;&gt;Debra Howell&lt;/a&gt;&#160;and all, mod-user-import belongs to Core Platform. I have reassigned.&#160;&lt;/p&gt;

&lt;p&gt;cc: &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Ab8e64633-1f7c-402d-9caf-9959a5ba5d0d&quot; class=&quot;user-hover&quot; rel=&quot;557058:b8e64633-1f7c-402d-9caf-9959a5ba5d0d&quot; data-account-id=&quot;557058:b8e64633-1f7c-402d-9caf-9959a5ba5d0d&quot; accountid=&quot;557058:b8e64633-1f7c-402d-9caf-9959a5ba5d0d&quot; rel=&quot;noreferrer&quot;&gt;Jakub Skoczen&lt;/a&gt;&#160;and &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=5f8314dfbdef80006f6f572d&quot; class=&quot;user-hover&quot; rel=&quot;5f8314dfbdef80006f6f572d&quot; data-account-id=&quot;5f8314dfbdef80006f6f572d&quot; accountid=&quot;5f8314dfbdef80006f6f572d&quot; rel=&quot;noreferrer&quot;&gt;Adam Dickmeiss&lt;/a&gt;&lt;/p&gt;</comment>
                                                            <comment id="184668" author="632e12f7748d1bfcb85875fd" created="Tue, 8 Feb 2022 19:54:03 +0000"  >&lt;p&gt;I see this is now listed as closed, which is fantastic - thanks so much! May I ask if this will appear in a Kiwi hotfix or will the fix first be available in Lotus?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="43626">UIU-2520</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="62666" name="image-2022-02-03-08-44-48-009.png" size="36733" author="712020:0a02d059-b8b9-48b3-8a58-727ec44d05d2" created="Thu, 3 Feb 2022 07:42:42 +0000"/>
                            <attachment id="62667" name="image-2022-02-03-08-45-23-211.png" size="52498" author="712020:0a02d059-b8b9-48b3-8a58-727ec44d05d2" created="Thu, 3 Feb 2022 07:43:17 +0000"/>
                            <attachment id="62668" name="image-2022-02-03-08-47-01-401.png" size="22028" author="712020:0a02d059-b8b9-48b3-8a58-727ec44d05d2" created="Thu, 3 Feb 2022 07:44:55 +0000"/>
                            <attachment id="62669" name="image-2022-02-04-13-28-43-520.png" size="75082" author="5c48911b54e1e6466b11f38c" created="Fri, 4 Feb 2022 18:28:44 +0000"/>
                            <attachment id="62670" name="screenshot-1.png" size="64548" author="712020:0a02d059-b8b9-48b3-8a58-727ec44d05d2" created="Thu, 3 Feb 2022 13:34:05 +0000"/>
                            <attachment id="62671" name="screenshot-2.png" size="95256" author="712020:0a02d059-b8b9-48b3-8a58-727ec44d05d2" created="Thu, 3 Feb 2022 13:34:27 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                        <customfield id="customfield_10107" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Affected Institution</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10388"><![CDATA[!!!ALL!!!]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <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_10063" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>PO Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10106" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>RCA Group</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10367"><![CDATA[TBD]]></customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10020" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="467">CP: sprint 133</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10044" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10024" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>[CHART] Date of First Response</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 3 Feb 2022 19:04:25 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10025" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>[CHART] Time in Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>