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

Document Record Service Continuation In Integration #3203

Open
wants to merge 2 commits into
base: feature-drs-integration
Choose a base branch
from

Conversation

flutistar
Copy link
Collaborator

Issue #:
bcgov/entity#24640

Description of changes:
My name is Brandon Galli from Assets team.
Now we do Document Record Service Continuation In integration as a Proof of Concept.
Technically, Cont In. integration is replacing MinIO with Document Record Service.

  • Added getDownloadUrl function on
  • Replace downloadDocument function with getDownloadUrl function on HomeJurisdictionInformation.vue.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the sbc-auth license (Apache 2.0).

@flutistar flutistar changed the title updated download component Document Record Service Continuation In Integration Jan 10, 2025
@cameron-eyds cameron-eyds requested a review from seeker25 January 10, 2025 17:39
const documentClass = 'CORP'
try {
const docUrl: string = await BusinessService.getDownloadUrl(documentKey, documentClass)
const link = document.createElement('a')
Copy link
Collaborator

Choose a reason for hiding this comment

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

some Duplicated code, already exists in business.services.ts?

image


const url = `${ConfigHelper.getLegalAPIV2Url()}/documents/drs/${documentClass}/${documentKey}`

return axios.get(url).then(response => {
Copy link
Collaborator

@seeker25 seeker25 Jan 10, 2025

Choose a reason for hiding this comment

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

.then(), when we're using try catch async await below - seems weird but that's ok - stuff is fairly mix matched right now

Copy link
Collaborator

@seeker25 seeker25 left a comment

Choose a reason for hiding this comment

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

Looks good to me, check with entities before merging please

just a couple suggestions

@seeker25
Copy link
Collaborator

Question: Is someone taking care of the old documents on MINIO and migrating them over?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants