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

Service and DAO implementation for organization meta attributes GET API #144

Merged
merged 4 commits into from
Jul 21, 2024

Conversation

HasiniSama
Copy link
Contributor

Purpose

Related to: wso2/product-is#20611

To support the frontend implementation requiring backend API support to filter and return meta attributes belonging to a specific organizational hierarchy level.

Approach

  • API Support Layer Update: Implemented new getOrganizationsMetaAttributes Organization Manager service for filtering and returning meta attributes for specific organizational hierarchy levels. Filtering uses the same expression node tree building as getOrganizations.
  • DAO Layer Update: Added a getOrganizationsMetaAttributes method in DAO implementation for retrieving organization meta attributes.

Release note

Feature: Added a new GET API endpoint /meta-attributes to filter and return meta attributes.
Description: This feature allows users to filter and retrieve meta attributes specific to a certain organizational hierarchy level.

Documentation

Automation tests

  • Unit tests

    Added for both the Service layer and DAO layer.

  • Integration tests

Security checks

Related PRs

wso2/identity-api-server#628

Test environment

JDK version: 11.0.23
Product Version: IS 7.0.1

*
* @param recursive Determines whether records should be retrieved in a recursive manner.
* @param limit The maximum number of records to be returned.
* @param organizationId The super organization ID.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the root org always? or else the org which the request is initiated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is always the root organization of that tenant domain.

AnuradhaSK
AnuradhaSK previously approved these changes Jul 19, 2024
@jenkins-is-staging
Copy link

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/10017465083

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/10017465083
Status: success

Copy link

@jenkins-is-staging jenkins-is-staging left a comment

Choose a reason for hiding this comment

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

Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/10017465083

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.

5 participants