-
Notifications
You must be signed in to change notification settings - Fork 36
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
SB-24793 - Assessment archival Job Implementation #452
base: release-4.4.0
Are you sure you want to change the base?
SB-24793 - Assessment archival Job Implementation #452
Conversation
…entation and testcase
…entation and testcase
…entation and testcase
…b implementation and testcase" This reverts commit 4ca0b4c.
…entation and testcase
…d enabling the code coverage
…atchId or date to archive the data. if the date has not provided and archiveForLastWeek = true then it will by default it will archive the data for the last week records
…atchId or date to archive the data. if the date has not provided and archiveForLastWeek = true then it will by default it will archive the data for the last week records
…oducts into assessment-archival-latest
…te case for s3 to handle.
data-products/src/main/scala/org/sunbird/analytics/exhaust/util/ExhaustUtil.scala
Outdated
Show resolved
Hide resolved
data-products/src/main/scala/org/sunbird/analytics/job/report/AssessmentArchivalJob.scala
Show resolved
Hide resolved
…hanges - Updated the test cases.
…hanges - added the description
val format = fileFormat.getOrElse("csv.gz") | ||
val batchId = filteredBlobFields.getOrElse("batchId", "*") | ||
val year = filteredBlobFields.getOrElse("year", "*") | ||
val weekNumb = filteredBlobFields.getOrElse("weekNum", "*") |
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.
Numb? Keep it Num or Number
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.
Done
val url = store match { | ||
case "local" => | ||
filePath + s"${batchId}/${year}-${weekNumb}-*.${format}" | ||
// $COVERAGE-OFF$ for azure testing | ||
case "azure" => | ||
val key = AppConf.getConfig("azure_storage_key") | ||
val file = s"${filePath}${batchId}/${year}-${weekNumb}-*.${format}" | ||
s"wasb://$bucket@$key.blob.core.windows.net/$file" | ||
case "s3" => | ||
//TODO - Need to support the S3 As well. | ||
throw new Exception("s3 is currently not supported.") | ||
// $COVERAGE-ON$ | ||
} |
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.
Move this to a CommonUtil method and add support for S3 and GCP.
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.
We have added the support for S3. Can we take up GCP support as an enhacement in next release?
Dependent Core PR: https://github.com/project-sunbird/sunbird-analytics-core/pull/116/files
Kudos, SonarCloud Quality Gate passed! |
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Type of change
Please choose appropriate options.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes in the below checkboxes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Checklist: