Skip to content

Conversation

JaySoni1
Copy link

@JaySoni1 JaySoni1 commented Aug 16, 2025

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

@gkbishnoi07 gkbishnoi07 self-requested a review August 16, 2025 11:13
Copy link
Collaborator

@gkbishnoi07 gkbishnoi07 left a 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

@gkbishnoi07
Copy link
Collaborator

@JaySoni1 are you still working on this PRs?

@JaySoni1
Copy link
Author

@JaySoni1 are you still working on this PRs?

i'm working on this pr

@JaySoni1 JaySoni1 requested a review from gkbishnoi07 August 26, 2025 11:19
@JaySoni1
Copy link
Author

@gkbishnoi07 I have updated this pr please review.

@gkbishnoi07
Copy link
Collaborator

image getting some errors while creating group

Copy link
Collaborator

@gkbishnoi07 gkbishnoi07 left a 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) });
Copy link
Collaborator

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 });
Copy link
Collaborator

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({
Copy link
Collaborator

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 });
}

@IOhacker
Copy link
Contributor

Do a squash and commit

@JaySoni1
Copy link
Author

Do a squash and commit

@IOhacker ok

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