-
Notifications
You must be signed in to change notification settings - Fork 323
CM-1099 LiveArt External Adapter #4018
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: main
Are you sure you want to change the base?
Conversation
…d for preparing requests and parsing response
🦋 Changeset detectedLatest commit: e2c52cb The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
…js into feature/CM-1099_liveart_ea_nav
…matted frse files by mistake
*/ | ||
export function parseResponse( | ||
params: TypeFromDefinition<typeof inputParameters.definition>[], | ||
response: AxiosResponse<ResponseSchema>, |
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.
Can this reference to Axios be removed?
Doesn't look like it's being used anywhere (other than a passed in type) and it's adding a bunch of new packages and preventing the checks from succeeding.
required: true, | ||
default: 'https://artwork-price-oracle-api-dev-ms.liveart.ai', | ||
}, | ||
BEARER_TOKEN: { |
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.
Is there an expiry date on this BEARER_TOKEN? Can you double check with the ticket reporter/API provider?
description: 'The API URL for the LiveArt data provider', | ||
type: 'string', | ||
required: true, | ||
default: 'https://artwork-price-oracle-api-dev-ms.liveart.ai', |
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.
this is their prod API?
export const inputParameters = new InputParameters( | ||
{ | ||
artwork_id: { | ||
aliases: ['artworkId'], |
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.
doesn't really need an alias since this is a pretty non-standard use-case.
choose 1 and we'll go with that
total_shares: number | null | ||
nav_per_share: string | null | ||
valuation_price_date: string | null | ||
valuation_price: string | null |
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.
Will these be returned as explicit null
or just missing from the API response ie: undefined
? If just missing you can try replacing the nulls by ?:
}) | ||
} | ||
|
||
return params.map((param: TypeFromDefinition<typeof inputParameters.definition>) => { |
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.
do you need this type defined here?
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.
Find the correct API and get creds. This does not exist against the provided dev environment and we shouldn't merge without testing against prod.
params: [param], | ||
request: { | ||
baseURL: adapterSettings.API_BASE_URL, | ||
url: `/artwork/${param.artwork_id}/price`, |
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.
this endpoint doesn't exist
Closes OPDATA-4029 / CM-1099
Description
LiveArt External Adapter (EA) to fetch art nav_per_share numerical data.
......
Changes
Steps to Test
From root directory
Quality Assurance
infra-k8s
configuration file.adapter-secrets
configuration file or update the soak testing blacklist.test-payload.json
file with relevant requests.feature/x
,chore/x
,release/x
,hotfix/x
,fix/x
) or is created from Jira.