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(check): additional checks for OPERATOR and confirmed status added in document request endpoint #1075

Conversation

AnuragNagpure
Copy link
Contributor

Description

Currently the endpoint GET: /api/registration/documents/{documentId} only response the document for the user which has uploaded the document. This check should be adjusted with adding check of OPERATOR and company application status confirmed.

Why

These additional check required for getting document to particular user satisfies the check condition.

Issue

Link to Github issue.

#1070

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

@Phil91 Phil91 self-assigned this Oct 15, 2024
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.

Please add unit tests for GetDocumentIdWithCompanyUserCheckAsync

@AnuragNagpure AnuragNagpure force-pushed the feature/1070-create-dedicated-endpoints-add-requests-users branch from c1559a4 to efacefb Compare October 15, 2024 11:02
@AnuragNagpure AnuragNagpure added this to the Release 24.12 milestone Oct 15, 2024
@AnuragNagpure AnuragNagpure requested a review from Phil91 October 15, 2024 11:10
@AnuragNagpure AnuragNagpure force-pushed the feature/1070-create-dedicated-endpoints-add-requests-users branch from efacefb to dcbe4ef Compare October 15, 2024 11:15
Copy link

@Phil91 Phil91 merged commit 0067372 into eclipse-tractusx:main Oct 16, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: USER READY
Development

Successfully merging this pull request may close these issues.

2 participants