-
Notifications
You must be signed in to change notification settings - Fork 2
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
scp-story#1359 - Enhancing entity management #77
scp-story#1359 - Enhancing entity management #77
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed on Dec 13 : 15:46 : 2024
@@ -185,9 +211,11 @@ module.exports = class UserProjectsHelper { | |||
/** | |||
* Fetches targeted roles based on the provided entity IDs. | |||
* @param {Array<string>} entityId - An array of entity IDs to filter roles. | |||
* @param {params} pageSize - page pageSize. | |||
* @param {params} pageNo - page no. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adithyadinesh0412 Please ad explanation for paginate param as well
@@ -927,10 +958,12 @@ module.exports = class UserProjectsHelper { | |||
* @method | |||
* @name entityListBasedOnEntityType | |||
* @param {string} type - Type of entity to fetch documents for. | |||
* @param {string} pageNo - pageNo for pagination | |||
* @param {string} pageSize - pageSize for pagination |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adithyadinesh0412 update function signature
@@ -87,13 +87,23 @@ module.exports = class userRoleExtensionHelper { | |||
* Find user role extensions based on the provided query and projection. | |||
* @param {Object} bodyQuery - The query to filter user role extensions. | |||
* @param {Array<String>} projection - The fields to include in the returned documents. | |||
* @param {string} limit - limit for pagination | |||
* @param {string} offset - offset for pagination |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adithyadinesh0412 check and verify all the function signatures once
Changes done -
Added pagination to APIs :
Updated subEntitiesList API to share the parent entities as well in the response.