Open BimsaraBodaragama opened 1 month ago
For testing, you can create 17 organizations using the provided .bash script.
<n>
, <Your Auth Token>
, <Your Parent ID>
, <Your Cookies>
, and other relevant session-related parts of the header with your specific values.#!/bin/bash
# Base values
BASE_URL='https://localhost:9443/api/server/v1/organizations'
AUTH_TOKEN='<Your Auth Token>'
PARENT_ID='<Your Parent ID>'
# Loop to create organizations org1 to org17
for i in {1..17}
do
# Organization name
ORG_NAME="org${i}"
# JSON payload
DATA=$(cat <<EOF
{
"name": "${ORG_NAME}",
"parentId": "${PARENT_ID}",
"type": "TENANT"
}
EOF
)
# Make the curl request
curl --location --insecure "$BASE_URL" \
--header 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:129.0) Gecko/20100101 Firefox/129.0' \
--header 'Accept: application/json' \
--header 'Accept-Language: en-US,en;q=0.5' \
--header 'Accept-Encoding: gzip, deflate, br, zstd' \
--header 'Content-Type: application/json' \
--header "Authorization: Bearer $AUTH_TOKEN" \
--header 'Origin: https://localhost:9443' \
--header 'Connection: keep-alive' \
--header 'Cookie: <Your Cookies>' \
--header 'Sec-Fetch-Dest: empty' \
--header 'Sec-Fetch-Mode: cors' \
--header 'Sec-Fetch-Site: same-origin' \
--data "$DATA"
echo "Created organization $ORG_NAME"
done
Describe the issue: When managing organizations within the WSO2 Identity Server, inconsistencies arise in the UI when adding or deleting organizations within a paginated view:
Inconsistent Display of Action Buttons:
Switch
,Edit
, andDelete
buttons that were previously visible may disappear for some organizations. This inconsistency occurs after the addition of a new organization.Pagination Issues After Adding or Deleting Organizations:
These issues can be observed in the attached video (with voice-over) and it can be used as a reference to reproduce the issue.
https://github.com/user-attachments/assets/906fb385-00d3-4d89-83cb-dd0991d9fe52
How to reproduce:
Switch
,Edit
, andDelete
buttons may be missing for some organizations after the addition.Expected behavior:
Switch
,Edit
, andDelete
buttons should consistently remain visible and functional across all pages in the paginated view.