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

feat(osp): endpoint to get onboarding osp companies details #866

Conversation

AnuragNagpure
Copy link
Contributor

@AnuragNagpure AnuragNagpure commented Jul 24, 2024

Description

  GET endpoint should be accessible at /api/administration/registration/network/companies.
  Paginated response with max 20 records per page along with sorting, filtering and authorisation is required.

Why

Need this api to retrieve a list of all Onboarded OSP (Onboarding Service Provider) companies along with their current ### status

Issue

#808

Checklist

Please delete options that are not relevant.

  • I have followed the contributing guidelines
  • I have performed a self-review of my own code
  • I have successfully tested my changes locally
  • I have added tests that prove my changes work
  • I have checked that new and existing tests pass locally with my changes
  • I have commented my code, particularly in hard-to-understand areas

Copy link
Contributor

@evegufy evegufy left a comment

Choose a reason for hiding this comment

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

#808 is flagged with milestone 2.1.0 (24.08), if that one is still valid directing the pull request to main is wrong, and it should go to the release branch, could you please clarify?

@AnuragNagpure
Copy link
Contributor Author

#808 is flagged with milestone 2.1.0 (24.08), if that one is still valid directing the pull request to main is wrong, and it should go to the release branch, could you please clarify?

sure will directing to release branch

@AnuragNagpure AnuragNagpure changed the base branch from main to release/v2.1.0-RC2 July 24, 2024 11:08
@Phil91
Copy link
Member

Phil91 commented Jul 24, 2024

@AnuragNagpure please rebase to release/v2.1.0-RC2 and make sure you synched to the latest version before. it seems like there are 8 commits in that shouldn't be in

@jjeroch jjeroch added the priority PR needs to prioritized at review label Jul 25, 2024
@AnuragNagpure AnuragNagpure force-pushed the feature/808-get-endpoint-for-onboarding-osp-details branch from e7e5f8a to 26d3f35 Compare July 25, 2024 04:55
@ntruchsess ntruchsess force-pushed the feature/808-get-endpoint-for-onboarding-osp-details branch from 26d3f35 to 0c576f6 Compare July 25, 2024 10:19
@ntruchsess
Copy link
Contributor

I just removed the unwanted commits by doing an interactive rebase

@ntruchsess ntruchsess force-pushed the feature/808-get-endpoint-for-onboarding-osp-details branch from c66e151 to 4c1cde0 Compare July 25, 2024 13:05
ntruchsess
ntruchsess previously approved these changes Jul 25, 2024
@ntruchsess ntruchsess requested a review from evegufy July 25, 2024 13:14
@ntruchsess
Copy link
Contributor

I did fix all of my review-findings

Copy link
Contributor

@evegufy evegufy left a comment

Choose a reason for hiding this comment

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

testing for 24.08 ends officially in less than 24h, please don't merge without me confirming but the change will very likely not go into the 2.1.0 release anymore, I'll let you know tomorrow

Phil91
Phil91 previously approved these changes Jul 26, 2024
@evegufy
Copy link
Contributor

evegufy commented Jul 29, 2024

confirmed: v.2.1.0 is closed, please change to main

@evegufy evegufy changed the base branch from release/v2.1.0-RC2 to main July 29, 2024 11:45
@evegufy evegufy dismissed stale reviews from Phil91 and ntruchsess July 29, 2024 11:45

The base branch was changed.

Copy link
Member

@Phil91 Phil91 left a comment

Choose a reason for hiding this comment

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

One minor finding

application.Company.CompanyAssignedRoles.Select(companyAssignedRoles => companyAssignedRoles.CompanyRoleId),
application.Company.IdentityProviders.Select(x => new IdentityProvidersDetails(x.Id, x.IamIdentityProvider!.IamIdpAlias)),
application.Company.BusinessPartnerNumber,
application.Company.Identities.Where(x => x.CompanyUser!.Identity!.UserStatusId != UserStatusId.DELETED).Count()))
Copy link
Member

Choose a reason for hiding this comment

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

This can be changed to

Suggested change
application.Company.Identities.Where(x => x.CompanyUser!.Identity!.UserStatusId != UserStatusId.DELETED).Count()))
application.Company.Identities.Count(x => x.CompanyUser!.Identity!.UserStatusId != UserStatusId.DELETED)))

@AnuragNagpure AnuragNagpure force-pushed the feature/808-get-endpoint-for-onboarding-osp-details branch from 21106a6 to 919203f Compare July 30, 2024 10:24
Copy link

sonarcloud bot commented Jul 30, 2024

@Phil91 Phil91 requested a review from evegufy July 31, 2024 06:19
@MaximilianHauer
Copy link

@evegufy can you please approve that we can merge.

@evegufy evegufy merged commit 294eea9 into eclipse-tractusx:main Aug 5, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority PR needs to prioritized at review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sig#809: GET Endpoint for Retrieving Onboarded OSP Companies and Their Statuses
6 participants