-
Notifications
You must be signed in to change notification settings - Fork 717
WEB-256 replace custom api of groups.service.ts #2586
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
base: openapi-integration
Are you sure you want to change the base?
WEB-256 replace custom api of groups.service.ts #2586
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.
Screen.Recording.2025-08-16.175808.mp4
@JaySoni1 are you still working on this PRs? |
i'm working on this pr |
@gkbishnoi07 I have updated this pr please review. |
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.
please recheck
@@ -30,17 +36,21 @@ export class GroupActionsResolver { | |||
case 'Attendance': | |||
case 'Manage Members': | |||
case 'Transfer Clients': | |||
return this.groupsService.getGroupData(groupId); | |||
return this.groupsService.delete11({ groupId: Number(groupId) }); |
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.
delete11 is wrong the correct operationId is retrieveOne15
const groupId = route.paramMap.get('groupId'); | ||
return this.groupsService.getGroupData(groupId, 'true'); | ||
const groupId = Number(route.paramMap.get('groupId')); | ||
return this.groupsService.delete11({ groupId: groupId }); |
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.
there should be get operationID not delete
@@ -25,6 +25,11 @@ export class GroupSummaryResolver { | |||
*/ | |||
resolve(route: ActivatedRouteSnapshot): Observable<any> { | |||
const groupId = route.parent.paramMap.get('groupId'); | |||
return this.groupsService.getGroupSummary(groupId); | |||
// Use runReport1 with reportName and query params | |||
return this.selfRunReportService.runReport1({ |
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.
for now, don't use runreport endpoint add this endpoint in customApis.ts file
getGroupSummary(groupId: string): Observable<any> {
const httpParams = new HttpParams().set('R_groupId', groupId).set('genericResultSet', 'false');
return this.http.get(`/runreports/GroupSummaryCounts`, { params: httpParams });
}
Do a squash and commit |
@IOhacker ok |
Description
Replaced custom methods in *.ts files that were previously using Groupsservice with their corresponding auto-generated methods from the OpenAPI-based @fineract/client package.
Related issues and discussion
WEB-256