-
Notifications
You must be signed in to change notification settings - Fork 70
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(entity-archival): add package for entity level archival #2137
base: master
Are you sure you want to change the base?
Conversation
Quality Gate passedIssues Measures |
private options: ArchivalComponentOptions = DEFAULT_ARCHIVAL_OPTIONS, | ||
) { | ||
this.providers = {}; | ||
this.application.component(CoreComponent); |
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.
why do we have this dependency ?
|
||
## Overview | ||
|
||
`@sourceloop/entity-archival` package is a powerful LoopBack 4 extension designed to seamlessly |
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.
after reading this, I feel this should be part of soft delete package
name: 'filter_inquired', | ||
type: 'object', | ||
}) | ||
filterInquired: Object; |
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.
just keep name as filter
strict: false, | ||
}, | ||
}) | ||
export class JobDetails extends CoreEntity<JobDetails> { |
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.
retrieval_jobs
import {GetJobDetailsFn, JobResponse, JobStatus} from '../types'; | ||
|
||
@injectable({scope: BindingScope.TRANSIENT}) | ||
export class GetJobDetailsProvider implements Provider<GetJobDetailsFn> { |
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.
RetrieveArchivedDataProvider
import {ProcessImportedData} from '../types'; | ||
|
||
@injectable({scope: BindingScope.TRANSIENT}) | ||
export class ProcessImportedDataProvider |
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.
ProcessRetrievedDataProvider
* return the json data to user | ||
*/ | ||
|
||
async import(jobId: string) { |
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.
Entire flow for retrieval should be in this service file
data.push(...fileContent); | ||
} | ||
|
||
const dsName = 'db'; |
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.
refactor this code. ensure connection is closed gracefully
gh-1778
Description
Added a new package for entity level archival
Fixes #1778
Type of change
Please delete options that are not relevant.
Checklist: