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

chore(BPDM): Set BPDM pool url #472

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tfjanjua
Copy link
Contributor

Description

Set BPDM pool url to call Business Partner Pool

Why

Required for: Set Catena-X Membership in BPDM.

Issue

Ref: #471

eclipse-tractusx/portal-backend#1118

Checklist

  • I have performed a self-review of my changes
  • I have successfully tested my changes
  • I have added comments in the default values.yaml file with helm-docs syntax ('# -- ') if relevant for installation
  • I have commented my changes, particularly in hard-to-understand areas

@tfjanjua tfjanjua requested review from evegufy and Phil91 and removed request for evegufy October 29, 2024 14:07
@tfjanjua tfjanjua self-assigned this Oct 29, 2024
@tfjanjua tfjanjua added the enhancement New feature or request label Oct 29, 2024
Copy link
Contributor

@ntruchsess ntruchsess left a comment

Choose a reason for hiding this comment

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

referenced values are inappropriate (apiPath instead of baseAddress which must be a full url).
respective url also must be added to the respective values.yaml-files

@@ -147,6 +147,8 @@ spec:
value: "{{ .Values.backend.useDimWallet }}"
- name: "APPLICATIONCHECKLIST__BPDM__STARTSHARINGSTATEASREADY"
value: "{{ .Values.backend.processesworker.bpdm.startSharingStateAsReady }}"
- name: "APPLICATIONCHECKLIST__BPDM__BUSINESSPARTNERPOOLBASEADDRESS"
value: "{{ .Values.bpdm.poolAddress }}{{ .Values.bpdm.poolApiPath }}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@tfjanjua tfjanjua Nov 22, 2024

Choose a reason for hiding this comment

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

Config param APPLICATIONCHECKLIST__BPDM__BUSINESSPARTNERPOOLBASEADDRESS has the following value:

https://business-partners-pool.example.com/pool/v6

and rest of the url part (v6/cx-memberships) has already been placed while calling it from httpClient:
https://github.com/eclipse-tractusx/portal-backend/blob/c649d4d243c4d84d1b840d5b1d101ac77750993d/src/externalsystems/Bpdm.Library/BpdmService.cs#L195C42-L195C59

So, its like:
https://business-partners-pool.example.com/pool/v6/v6/cx-memberships

So, I think no full url is expected.

However, since url part (v6/cx-memberships) has already been placed so, I can remove the poolApiPath from the value of config param APPLICATIONCHECKLIST__BPDM__BUSINESSPARTNERPOOLBASEADDRESS

So, then config param APPLICATIONCHECKLIST__BPDM__BUSINESSPARTNERPOOLBASEADDRESS will be:

https://business-partners-pool.example.com/

and rest of the url part (v6/cx-memberships) will make it:

https://business-partners-pool.example.com/v6/cx-memberships

@@ -117,6 +117,8 @@ spec:
value: "{{ .Values.backend.useDimWallet }}"
- name: "APPLICATIONCHECKLIST__BPDM__STARTSHARINGSTATEASREADY"
value: "{{ .Values.backend.processesworker.bpdm.startSharingStateAsReady }}"
- name: "APPLICATIONCHECKLIST__BPDM__BUSINESSPARTNERPOOLBASEADDRESS"
value: "{{ .Values.bpdm.poolAddress }}{{ .Values.bpdm.poolApiPath }}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@tfjanjua tfjanjua Nov 22, 2024

Choose a reason for hiding this comment

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

Config param APPLICATIONCHECKLIST__BPDM__BUSINESSPARTNERPOOLBASEADDRESS has the following value:

https://business-partners-pool.example.com/pool/v6

and rest of the url part (v6/cx-memberships) has already been placed while calling it from httpClient:
https://github.com/eclipse-tractusx/portal-backend/blob/c649d4d243c4d84d1b840d5b1d101ac77750993d/src/externalsystems/Bpdm.Library/BpdmService.cs#L195C42-L195C59

So, its like:
https://business-partners-pool.example.com/pool/v6/v6/cx-memberships

So, I think no full url is expected.

However, since url part (v6/cx-memberships) has already been placed so, I can remove the poolApiPath from the value of config param APPLICATIONCHECKLIST__BPDM__BUSINESSPARTNERPOOLBASEADDRESS

So, then config param APPLICATIONCHECKLIST__BPDM__BUSINESSPARTNERPOOLBASEADDRESS will be:

https://business-partners-pool.example.com/

and rest of the url part (v6/cx-memberships) will make it:

https://business-partners-pool.example.com/v6/cx-memberships

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: IN PROGRESS
Development

Successfully merging this pull request may close these issues.

2 participants