Tenant's user add panel not showing users

Description

CAPL - Bug default text according to the team DoR (Definition of Ready)

01 - PERSON OF CONTACT (PERSON THAT CAN ANSWER QUESTIONS ABOUT THE PROBLEM):

@Breno Zipoli Monteiro Papa
02 - PROBLEM (WHAT'S THE ISSUE?):

A customer reported that the org admin panel for adding users to tenants is only showing names starting with the letter A and not filtering any names.
I tested it on https://totvstechfindev.carol.ai/carol-org/admin/tenants and its really happening.

Endpoint causing the problem (supporting filters on the payload):

curl 'https://totvstechfindev.carol.ai/api/v1/users/usersNotInTenant?indexType=CONFIG&scrollable=false&pageSize=30&offset=0&sortBy=mdmName.raw&sortOrder=ASC' \
  -H 'sec-ch-ua: "Google Chrome";v="119", "Chromium";v="119", "Not?A_Brand";v="24"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'Authorization: $AUTH_TOKEN' \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Referer: https://totvstechfindev.carol.ai/carol-org/admin/tenants' \
  -H 'overRiddenTenantId: adb05a78352945f7bea0248e1c4f66af' \
  -H 'sec-ch-ua-platform: "macOS"' \
  --data-raw '{"mustList":[],"shouldList":[{"mdmKey":"mdmName","mdmFilterType":"MATCH_ALL_TERMS_FILTER","mdmValue":"eduardo.teixeira@totvs.com.br"},{"mdmKey":"mdmName","mdmFilterType":"WILDCARD_FILTER","mdmValue":"eduardo.teixeira@totvs.com.br"},{"mdmKey":"mdmName","mdmFilterType":"TERM_FILTER","mdmValue":"eduardo.teixeira@totvs.com.br"},{"mdmKey":"mdmUserLogin","mdmFilterType":"MATCH_ALL_TERMS_FILTER","mdmValue":"eduardo.teixeira@totvs.com.br"},{"mdmKey":"mdmUserLogin","mdmFilterType":"WILDCARD_FILTER","mdmValue":"eduardo.teixeira@totvs.com.br"},{"mdmKey":"mdmUserLogin","mdmFilterType":"TERM_FILTER","mdmValue":"eduardo.teixeira@totvs.com.br"},{"mdmKey":"mdmPhoneNumber","mdmFilterType":"MATCH_ALL_TERMS_FILTER","mdmValue":"eduardo.teixeira@totvs.com.br"},{"mdmKey":"mdmPhoneNumber","mdmFilterType":"WILDCARD_FILTER","mdmValue":"eduardo.teixeira@totvs.com.br"},{"mdmKey":"mdmPhoneNumber","mdmFilterType":"TERM_FILTER","mdmValue":"eduardo.teixeira@totvs.com.br"}]}' \
  --compressed

03 - STEPS TO REPRODUCE (STEP (1...N), VIDEO, SCREENSHOTS, LOGS FOLDER, HEARTBEAT, ETC. – IF IS NOT POSSIBLE TO REPRODUCE EXPLAIN THE REASON):

Open https://totvstechfindev.carol.ai/carol-org/admin/tenants , go to any tenant user page and click “Add user".
04 - LINKS (ADD A LINK TO THE BUG OR TO THE TENANT):
05 - EXPECTED BEHAVIOR (LIST THE EXPECTED BEHAVIORS TO CONSIDER THIS BUG AS DONE):

Users appear and be searched normally.

Activity

Automation for Jira 15 December 2023, 15:49 Jira Internal Users

This issue was automatically transitioned to WAITING DEPLOY, as its PR was just merged into master branch in Github.

Automation for Jira 15 December 2023, 15:39 Jira Internal Users

Github user douglascoimbra has just approved a PR (added as Shard Assignee in this Jira issue).

feat: CAPL-5155 Done New endpoint for getOrgUsersNotInTenant

Automation for Jira 15 December 2023, 15:35 Jira Internal Users

This issue was automatically transitioned to QA REVIEW, as its PR was just approved in Github.

Douglas Coimbra Lopes 15 December 2023, 15:21 Jira Internal Users

@Rodrigo Bechtold Card validated by the QA team. It is pending only the code review. cc @Gabriel DAmore Marciano @Andre Pasold @Ingo Wagner

Douglas Coimbra Lopes 15 December 2023, 15:18 Jira Internal Users

  • NEW USER ADDED

SQL PROCESSING REGISTERED NEW USERS

Automation for Jira 15 December 2023, 01:58 Jira Internal Users

This issue was automatically transitioned to REVIEW, as its PR (not DRAFT and not WIP) was just created in Github.

feat: CAPL-5155 Done New endpoint for getOrgUsersNotInTenant

Automation for Jira 11 December 2023, 20:32 Jira Internal Users

@Robson Thanael Poffo ,
@Pedro Buzzi ,
@Geny Isam Hamud Herrera ,
This issue was planned to be delivered until 2024-01-01. You can check that by consulting the issue in the Due Date field.

Dates already planned for this issue: 2024-01-01

If External Issue Link field is filled, customer was also informed on JIRA TOTVS.

Automation for Jira 7 December 2023, 20:15 Jira Internal Users

Message thread link on #red-phone channel:

https://totvscarol.slack.com/archives/C03NT4US9J9/p1701976551667319