Openbravo Issue Tracking System - POS2
View Issue Details
0057172POS2POSpublic2024-10-30 14:442024-12-04 09:18
sofidossant 
fofarril 
highmajoralways
closedfixed 
5
24Q3.2 
24Q2.524Q2.5 
approved
Gold
112501
No
0057172: Error when there are more than 300 Sales Representative Users
When we have for example 350 representative users, we cannot search correctly for certain users, because it does not find them by the limit.
1 - Create 350 Sales Representative Users in backoffice.
2 - Search for a user but with names beginning with the last letters of the alphabet.

You can't find the user, but if you check it is loaded in the cache
Code harcode with 300
https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/blob/release/24Q3/web/org.openbravo.mobile.core/app/model/persistence/indexeddb/Criteria.js?ref_type=heads&blame=1 [^]

commit https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/0d54d001c0ca49dfcde55c545030363974e9b694 [^]

(function CriteriaDefinition() {
  const DEFAULT_QUERY_LIMIT = 300;
  /**
   * Allows to create a criteria for searching objects using the IndexedDBController API.
   */
  OB.App.Class.Criteria = class Criteria {
    constructor() {
      this.theLimit = DEFAULT_QUERY_LIMIT;
      this.theOperator = 'and';
      this.order = { properties: [], directions: [] };
      this.properties = [];
      this.selectProperties = [];
    }

No tags attached.
blocks defect 0056938 closed fofarril Error when there are more than 300 Sales Representative Users 
Issue History
2024-11-19 09:44jorgewederagoTypedefect => backport
2024-11-19 09:44jorgewederagoTarget Version => 24Q2.5
2024-11-19 16:39hgbotNote Added: 0172244
2024-11-20 11:00hgbotMerge Request Statusopen => approved
2024-11-20 11:00hgbotNote Added: 0172315
2024-11-20 11:00hgbotResolutionopen => fixed
2024-11-20 11:00hgbotStatusscheduled => closed
2024-11-20 11:00hgbotFixed in Version => 24Q2.5
2024-11-20 11:00hgbotNote Added: 0172320
2024-11-26 15:10hgbotNote Added: 0172622
2024-12-04 09:18hgbotNote Added: 0172947
2024-12-04 09:18hgbotNote Added: 0172948

Notes
(0172244)
hgbot   
2024-11-19 16:39   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3116 [^]
(0172315)
hgbot   
2024-11-20 11:00   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3116 [^]
(0172320)
hgbot   
2024-11-20 11:00   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 1031cd672ebed9274575d54a68e83df39608a883
Author: Francisco Javier Deler O'Farril <francisco.ofarril@doceleguas.com>
Date: 20-11-2024 10:00:17
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/1031cd672ebed9274575d54a68e83df39608a883 [^]

Fixes ISSUE-57172: Error when there are more than 300 Sales Representative Users.

---
M web-jspack/org.openbravo.pos2/src/components/SalesRepSelector/SalesRepSelector.jsx
M web-jspack/org.openbravo.pos2/src/components/SalesRepSelector/SalesRepSelector.scss
M web-jspack/org.openbravo.pos2/src/components/SalesRepSelector/SalesRepSelectorDataSource.js
M web-jspack/org.openbravo.pos2/src/components/SalesRepSelector/SalesRepSelectorDialog/__test__/SalesRepSelectorDialog.test.jsx
M web-jspack/org.openbravo.pos2/src/components/SalesRepSelector/__test__/SalesRepSelector.test.jsx
---
(0172622)
hgbot   
2024-11-26 15:10   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1668 [^]
(0172947)
hgbot   
2024-12-04 09:18   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: ab6e7e9a5c69fc44da437aeb1015e33aaddb06ce
Author: adrian.blasco <adrian.blasco@openbravo.com>
Date: 26-11-2024 09:09:52
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/ab6e7e9a5c69fc44da437aeb1015e33aaddb06ce [^]

Related to ISSUE-57172: ReadOnly Selector in BaseFormSelector not always set

---
M web-jspack/org.openbravo.core2/src/components/BaseFormSelector/BaseFormSelector.jsx
---
(0172948)
hgbot   
2024-12-04 09:18   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1668 [^]