-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Priority/HighHigh-priority tasks to be completed soonHigh-priority tasks to be completed soonhacktoberfest-accepted
Description
Handle Empty or Missing Groups in Web App Marketplace
Description
In the Web App Marketplace, when calling the getGroups function and no groups are found, the system does not handle this scenario properly. If no groups exist, the API should return an empty array instead of causing errors.
If groups are mandatory for the app’s process, the UI should handle it gracefully by displaying a proper error message or guidance to the user. The current behavior is not acceptable as it breaks the user flow.
Expected Behavior
getGroupsshould:- Return an empty array (
[]) when no groups are available. - Not throw unhandled errors.
- Return an empty array (
- If groups are mandatory for the app process:
- Display a clear, user-friendly error message in the UI (e.g., “No groups available. Please contact the administrator.”).
- Prevent the user from proceeding until the issue is resolved.
Actual Behavior
- When no groups exist, the form or app process fails unexpectedly instead of handling the scenario gracefully.
Steps to Reproduce
- Navigate to the Web App Marketplace.
- Trigger the process that calls
getGroupswhen no groups exist. - Observe that the system fails or behaves unpredictably.
Notes
- Ensure backend APIs always return a consistent response structure.
- UI should handle empty or error states without breaking the flow.
- Add proper logging and error handling for debugging.
- Please use this approach to handle all states : https://github.com/wso2-open-operations/people-ops-suite/tree/main/apps/visitor-app/webapp
Labels
bug, backend, ui, error-handling, web-app-marketplace

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Priority/HighHigh-priority tasks to be completed soonHigh-priority tasks to be completed soonhacktoberfest-accepted