Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional View Access For Discoverable Applications in MyAccount #7399

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

DilshanSenarath
Copy link
Contributor

@DilshanSenarath DilshanSenarath commented Jan 25, 2025

Purpose

TODO

Related Issues

  • N/A

Related PRs

  • N/A

Checklist

  • e2e cypress tests locally verified. (for internal contributers)
  • Manual test round performed and verified.
  • UX/UI review done on the final implementation.
  • Documentation provided. (Add links if there are any)
  • Relevant backend changes deployed and verified
  • Unit tests provided. (Add links if there are any)
  • Integration tests provided. (Add links if there are any)

Security checks

UI

image

Copy link

codecov bot commented Jan 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 41.85%. Comparing base (36ddeaa) to head (8f3beb2).
Report is 20 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7399   +/-   ##
=======================================
  Coverage   41.85%   41.85%           
=======================================
  Files          42       42           
  Lines         939      939           
  Branches      217      230   +13     
=======================================
  Hits          393      393           
+ Misses        546      502   -44     
- Partials        0       44   +44     
Flag Coverage Δ
@wso2is/core 41.85% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 12 files with indirect coverage changes

Copy link
Contributor

@pavinduLakshan pavinduLakshan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a screenshot/screencast of the final UI once the PR is ready.

PS: Add changeset too :P

@@ -144,6 +144,10 @@ export const userstores: userstoresNS = {
}
},
fetchUserstores: {
error: {
description: "{{description}}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This placeholder was used to show the error description returned from backend, but we no longer show the errors returned from the backend and always show a end user friendly generic error message from the frontend.

Therefore, let's add such a description here.

@JayaShakthi97 will be able to provide context on this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, there are two types of errors returned from the backend: client errors and server errors. I agree with you that server errors can encompass a wide range of issues (such as SQL-level problems). Therefore, it’s acceptable not to display detailed server errors and instead use a generic error message for all server errors. However, if the error response is a 400, I don’t think we need to handle it on the frontend by rephrasing the message. If the 400 error message isn’t clear, it should be fixed on the backend since all API users would face the same issue. Thus, it’s better to handle 400 errors and server errors differently. WDYT? @pavinduLakshan @JayaShakthi97 @NipuniBhagya @brionmario

@@ -29,6 +29,10 @@ export interface ApplicationsResourceEndpointsInterface {
* Below route is to fetch the dcr configuration from server configurations api.
*/
dcrConfiguration: string;
/**
* Below route is to fetch the group data from the application api.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we highlight the fact that group list is retrieved as metadata in the doc comment too?

eg:

Suggested change
* Below route is to fetch the group data from the application api.
* Below route is to fetch the group list as metadata from the application API.

* under the License.
*/

.application-general-discoverable-groups {
Copy link
Contributor

@pavinduLakshan pavinduLakshan Jan 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a parent class to application general sections and wrap discoverable-groups inside it, so that any other application general tab related styles can go under the parent class

eg:

.application-general-settings {
   .discoverable-groups {
   }

   /* any other styles */
}

@wso2-jenkins-bot
Copy link
Contributor

⚠️ No Changeset found

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go.

If these changes should result in a version bump, you need to add a changeset.

Refer Release Documentation to learn how to add a changeset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants