From 32c9040bde10894e0e82c3241d17a84500bdfbd7 Mon Sep 17 00:00:00 2001 From: Karthikeyan Rajendran <70887864+karthik-tarento@users.noreply.github.com> Date: Fri, 22 Nov 2024 17:50:09 +0530 Subject: [PATCH] Cbrelease 4.8.18 (#221) * 4.8.18 dev v5 (#146) * commiting for file uploading and downloading cios logs (#142) * commiting for file uploading and downloading cios logs * commiting for deleting temp file directly in download api. * "Resolved Security Hotspots by adding proper logging" (#145) * "Resolved Security Hotspots by adding proper logging" * "Resolved bugs raised by SonarQube" * "Resolved bugs raised by SonarQube" --------- Co-authored-by: pathiktarento1089 <123535830+pathiktarento1089@users.noreply.github.com> Co-authored-by: vikrantbipin <118338417+vikrantbipin@users.noreply.github.com> * 4.8.18 merged (#148) * 4.8.17 dev v5 (#44) * KB-6678 - if assessment is submitted without selecting any option then same questions are repeating in each attempt (in question weightage) 1. Getting NaN if both correct and incorrect are 0 , So added a check. * added api for to show V6 competencies (#40) * added api for to show V6 competencies * worked on code review comments * worked on code review comments * Update application.properties removed spaces between the values --------- Co-authored-by: anilkumar --------- Co-authored-by: SaipradeepR <53404427+SaipradeepR@users.noreply.github.com> Co-authored-by: tarentomaheshvakkund <139739142+tarentomaheshvakkund@users.noreply.github.com> Co-authored-by: anilkumarkammalapalli <121931293+anilkumarkammalapalli@users.noreply.github.com> Co-authored-by: anilkumar * public link generation and calling email sending api * public link generation and calling email sending api (#112) * convertToPng code added * png and email encryption method added (#114) * public link generation and calling email sending api * convertToPng code added * pull from upstream * Cbrelease 4.8.17 (#115) * public link generation and calling email sending api * convertToPng code added * pull from upstream * svg issue resolved * svg issue resolved (#118) * public link generation and calling email sending api * convertToPng code added * pull from upstream * svg issue resolved * 4.8.17 report fix (#107) * Adding impl for report download (#101) * 4.8.17 mdo report fix (#105) * Adding impl for report download * Adding impl for report download * Adding impl for report download (#106) * upload issue resolved * Cbrelease 4.8.17 (#119) * public link generation and calling email sending api * convertToPng code added * pull from upstream * svg issue resolved * upload issue resolved * certificateId hardCode removed * CertificateId hard code removed (#120) * public link generation and calling email sending api * convertToPng code added * pull from upstream * svg issue resolved * upload issue resolved * certificateId hardCode removed * producer code added * producer code added * MAde the impl changes for pdf generator (#122) * Remove unused impl and adding null check (#123) * Remove unused impl and update the check (#124) * Remove unused impl (#125) * Update the property (#126) * Adding the impl changes for pdf issue (#127) * Added the check for the kafka event process * Integerating content progress update along with assessment submit API - KAR-788 (#129) (#133) Co-authored-by: sreerag-tarento * Integerating content progress API with all v4,v5 & v6 version of assessment submit API - KAR-788 (#135) (#139) * Integerating content progress update along with assessment submit API - KAR-788 * Integerating content progress APi with all v4,v5 & v6 version of assessment submit API Co-authored-by: sreerag-tarento * Fixed build issues * Creating v2 API to fetch l1, l2 child from postgres (#147) --------- Co-authored-by: Karthikeyan Rajendran <70887864+karthik-tarento@users.noreply.github.com> Co-authored-by: SaipradeepR <53404427+SaipradeepR@users.noreply.github.com> Co-authored-by: tarentomaheshvakkund <139739142+tarentomaheshvakkund@users.noreply.github.com> Co-authored-by: anilkumarkammalapalli <121931293+anilkumarkammalapalli@users.noreply.github.com> Co-authored-by: anilkumar Co-authored-by: arpithasureshappa Co-authored-by: Sharath Prasad Co-authored-by: sreerag-tarento Co-authored-by: karthik-tarento * For ticket https://karmayogibharat.atlassian.net/browse/KAR-818 (#149) * 4.8.18 merged v1 (#151) * 4.8.17 dev v5 (#44) * KB-6678 - if assessment is submitted without selecting any option then same questions are repeating in each attempt (in question weightage) 1. Getting NaN if both correct and incorrect are 0 , So added a check. * added api for to show V6 competencies (#40) * added api for to show V6 competencies * worked on code review comments * worked on code review comments * Update application.properties removed spaces between the values --------- Co-authored-by: anilkumar --------- Co-authored-by: SaipradeepR <53404427+SaipradeepR@users.noreply.github.com> Co-authored-by: tarentomaheshvakkund <139739142+tarentomaheshvakkund@users.noreply.github.com> Co-authored-by: anilkumarkammalapalli <121931293+anilkumarkammalapalli@users.noreply.github.com> Co-authored-by: anilkumar * public link generation and calling email sending api * public link generation and calling email sending api (#112) * convertToPng code added * png and email encryption method added (#114) * public link generation and calling email sending api * convertToPng code added * pull from upstream * Cbrelease 4.8.17 (#115) * public link generation and calling email sending api * convertToPng code added * pull from upstream * svg issue resolved * svg issue resolved (#118) * public link generation and calling email sending api * convertToPng code added * pull from upstream * svg issue resolved * 4.8.17 report fix (#107) * Adding impl for report download (#101) * 4.8.17 mdo report fix (#105) * Adding impl for report download * Adding impl for report download * Adding impl for report download (#106) * upload issue resolved * Cbrelease 4.8.17 (#119) * public link generation and calling email sending api * convertToPng code added * pull from upstream * svg issue resolved * upload issue resolved * certificateId hardCode removed * CertificateId hard code removed (#120) * public link generation and calling email sending api * convertToPng code added * pull from upstream * svg issue resolved * upload issue resolved * certificateId hardCode removed * producer code added * producer code added * MAde the impl changes for pdf generator (#122) * Remove unused impl and adding null check (#123) * Remove unused impl and update the check (#124) * Remove unused impl (#125) * Update the property (#126) * Adding the impl changes for pdf issue (#127) * Added the check for the kafka event process * Integerating content progress update along with assessment submit API - KAR-788 (#129) (#133) Co-authored-by: sreerag-tarento * Integerating content progress API with all v4,v5 & v6 version of assessment submit API - KAR-788 (#135) (#139) * Integerating content progress update along with assessment submit API - KAR-788 * Integerating content progress APi with all v4,v5 & v6 version of assessment submit API Co-authored-by: sreerag-tarento * Fixed build issues * Creating v2 API to fetch l1, l2 child from postgres (#147) * Adding the check for childrenId's (#150) --------- Co-authored-by: Karthikeyan Rajendran <70887864+karthik-tarento@users.noreply.github.com> Co-authored-by: SaipradeepR <53404427+SaipradeepR@users.noreply.github.com> Co-authored-by: tarentomaheshvakkund <139739142+tarentomaheshvakkund@users.noreply.github.com> Co-authored-by: anilkumarkammalapalli <121931293+anilkumarkammalapalli@users.noreply.github.com> Co-authored-by: anilkumar Co-authored-by: arpithasureshappa Co-authored-by: Sharath Prasad Co-authored-by: sreerag-tarento Co-authored-by: karthik-tarento * 4.8.18 fix bulk upload (#153) * Doing the impl changes for User Bulk Upload csv Impl * Doing the impl changes for User Bulk Upload csv Impl * Update HallOfFameServiceImpl.java Added "XS" to National Learning Week * 4.8.18 dev (#155) * "Public User Event Bulk Onboard Feature" (#152) * "Public user event bulk onboard - Bug Fix" (#154) * "Public user event bulk onboard - Bug Fix" * Review changes --------- Co-authored-by: vikrantbipin <118338417+vikrantbipin@users.noreply.github.com> Co-authored-by: sreerag-tarento * Added default status,progress and comletion percentage for public event bulk onboard (#156) * "Public User Event Bulk Onboard Feature" * "Public User Event Bulk Onboard Feature-bug fix" * "Added default status,progress and comletion percentage for public event bulk onboard" * "Added default status,progress and comletion percentage for public event bulk onboard" * PublicUserEventBulkOnboard: Added claim event karma points, fixed bugs and enhanced code (#157) * "Public User Event Bulk Onboard Feature" * "Public User Event Bulk Onboard Feature-bug fix" * "Added default status,progress and comletion percentage for public event bulk onboard" * "Added default status,progress and comletion percentage for public event bulk onboard" * "PublicUserEventBulkOnboard:Added claim event karma points, fixed bugs and enhanced code" * "Commented karma points event triggering because Karma points are generated inside event-cert generator flink job" * Claim karma point event and corrected ets time (#158) * "Public User Event Bulk Onboard Feature" * "Public User Event Bulk Onboard Feature-bug fix" * "Added default status,progress and comletion percentage for public event bulk onboard" * "Added default status,progress and comletion percentage for public event bulk onboard" * "PublicUserEventBulkOnboard:Added claim event karma points, fixed bugs and enhanced code" * "Commented karma points event triggering because Karma points are generated inside event-cert generator flink job" * "Claim karma point event and corrected ets time" * LearnerLeaderBoard API returning empty when no data instead of not-found (#159) * added lrc_progressdetails for offline event enrolment (#160) * "Public User Event Bulk Onboard Feature" * "Public User Event Bulk Onboard Feature-bug fix" * "Added default status,progress and comletion percentage for public event bulk onboard" * "Added default status,progress and comletion percentage for public event bulk onboard" * "PublicUserEventBulkOnboard:Added claim event karma points, fixed bugs and enhanced code" * "Commented karma points event triggering because Karma points are generated inside event-cert generator flink job" * "Claim karma point event and corrected ets time" * "added lrc_progressdetails" * Fixed class cast exception for event duration (#162) * "Public User Event Bulk Onboard Feature" * "Public User Event Bulk Onboard Feature-bug fix" * "Added default status,progress and comletion percentage for public event bulk onboard" * "Added default status,progress and comletion percentage for public event bulk onboard" * "PublicUserEventBulkOnboard:Added claim event karma points, fixed bugs and enhanced code" * "Commented karma points event triggering because Karma points are generated inside event-cert generator flink job" * "Claim karma point event and corrected ets time" * "added lrc_progressdetails" * "Fixed class cast exception for event duration" * Corrected karma point event format (#163) * "Public User Event Bulk Onboard Feature" * "Public User Event Bulk Onboard Feature-bug fix" * "Added default status,progress and comletion percentage for public event bulk onboard" * "Added default status,progress and comletion percentage for public event bulk onboard" * "PublicUserEventBulkOnboard:Added claim event karma points, fixed bugs and enhanced code" * "Commented karma points event triggering because Karma points are generated inside event-cert generator flink job" * "Claim karma point event and corrected ets time" * "added lrc_progressdetails" * "Fixed class cast exception for event duration" * "Corrected karma point event format" * Added validation for invalid event details (#165) * "Public User Event Bulk Onboard Feature" * "Public User Event Bulk Onboard Feature-bug fix" * "Added default status,progress and comletion percentage for public event bulk onboard" * "Added default status,progress and comletion percentage for public event bulk onboard" * "PublicUserEventBulkOnboard:Added claim event karma points, fixed bugs and enhanced code" * "Commented karma points event triggering because Karma points are generated inside event-cert generator flink job" * "Claim karma point event and corrected ets time" * "added lrc_progressdetails" * "Fixed class cast exception for event duration" * "Corrected karma point event format" * "Added validation for invalid event details" * Added condition to update the existing enrollment and trigger the kafka event (#166) * "Public User Event Bulk Onboard Feature" * "Public User Event Bulk Onboard Feature-bug fix" * "Added default status,progress and comletion percentage for public event bulk onboard" * "Added default status,progress and comletion percentage for public event bulk onboard" * "PublicUserEventBulkOnboard:Added claim event karma points, fixed bugs and enhanced code" * "Commented karma points event triggering because Karma points are generated inside event-cert generator flink job" * "Claim karma point event and corrected ets time" * "added lrc_progressdetails" * "Fixed class cast exception for event duration" * "Corrected karma point event format" * "Added validation for invalid event details" * "Added condition to update the enrollment and trigger the kafka event" * 4.8.18 dev v8 (#169) * Events to be generated based on the data recieved in CSV File. (#161) * LearnerLeaderBoard API returning empty when no data instead of not-found * Events to be generated based on the data recieved in CSV File. 1. If the user have consumed the event more than 180 seconds we need to generate the event for karma points and certificate generation. 2. Input would be csv file. --------- Co-authored-by: karthik-tarento * worked on user event consumption (#164) * worked on user event consumption * worked on code review comments --------- Co-authored-by: anilkumar * removed date from csv (#168) Co-authored-by: anilkumar --------- Co-authored-by: tarentomaheshvakkund <139739142+tarentomaheshvakkund@users.noreply.github.com> Co-authored-by: anilkumarkammalapalli <121931293+anilkumarkammalapalli@users.noreply.github.com> Co-authored-by: anilkumar * Added comments for user event enrolment updates * User event enrolment: fixed typo in event message * Fix for updating completedOn column value * Created new APIs to fetch status of offline event bulkonboard and download the processed csv file (#170) * "Public User Event Bulk Onboard Feature" * "Public User Event Bulk Onboard Feature-bug fix" * "Added default status,progress and comletion percentage for public event bulk onboard" * "Added default status,progress and comletion percentage for public event bulk onboard" * "PublicUserEventBulkOnboard:Added claim event karma points, fixed bugs and enhanced code" * "Commented karma points event triggering because Karma points are generated inside event-cert generator flink job" * "Claim karma point event and corrected ets time" * "added lrc_progressdetails" * "Fixed class cast exception for event duration" * "Corrected karma point event format" * "Added validation for invalid event details" * "Added condition to update the enrollment and trigger the kafka event" * "Created new APIs to fetch status of offline event bulkonboard and download the processed csv file" * Updated logic for event cert generation script * Handling invalid records * Reading event duration from event_batch table * Added max_size while updating record * Handling completed user event enrolment in script * Added condition to skip status 0 * Added parsing for edge cases * Added API to update event enrolment status value * Updated code to check issueCertificates * Updated code to check issueCertificates * Updated code to check issueCertificates * "Public user event bulkonboard-> Added logic to reissue the certificate if already exist" * "Modified Physical Event certificate issue feature to support generate certificate for user consumed more than 4 hours" * "Modified Physical Event certificate issue feature to support generate certificate for user consumed more than 4 hours" * "Modified Physical Event certificate issue feature to support generate certificate for user consumed more than 4 hours" * "Modified Physical Event certificate issue feature to support generate certificate for user consumed more than 4 hours and also added certificate reissue" * "Modified Physical Event certificate issue feature to support generate certificate for user consumed more than 4 hours and also added certificate reissue" * Removed unnecessary changes --------- Co-authored-by: pathiktarento1089 <123535830+pathiktarento1089@users.noreply.github.com> Co-authored-by: vikrantbipin <118338417+vikrantbipin@users.noreply.github.com> Co-authored-by: Sahil-tarento <140611066+Sahil-tarento@users.noreply.github.com> Co-authored-by: SaipradeepR <53404427+SaipradeepR@users.noreply.github.com> Co-authored-by: tarentomaheshvakkund <139739142+tarentomaheshvakkund@users.noreply.github.com> Co-authored-by: anilkumarkammalapalli <121931293+anilkumarkammalapalli@users.noreply.github.com> Co-authored-by: anilkumar Co-authored-by: arpithasureshappa Co-authored-by: Sharath Prasad Co-authored-by: sreerag-tarento Co-authored-by: sureshece16 <80331286+sureshece16@users.noreply.github.com> Co-authored-by: vikrantsingh --- .../java/org/sunbird/common/util/CbExtServerProperties.java | 3 ++- .../nlw/service/PublicUserEventBulkonboardConsumer.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/sunbird/common/util/CbExtServerProperties.java b/src/main/java/org/sunbird/common/util/CbExtServerProperties.java index e7281c739..b4296984a 100644 --- a/src/main/java/org/sunbird/common/util/CbExtServerProperties.java +++ b/src/main/java/org/sunbird/common/util/CbExtServerProperties.java @@ -3245,7 +3245,8 @@ public String getUserEventKarmaPointTopic() { public void setUserEventKarmaPointTopic(String userEventKarmaPointTopic) { this.userEventKarmaPointTopic = userEventKarmaPointTopic; } - public String getKafkaTopicBPReport() { + + public String getKafkaTopicBPReport() { return kafkaTopicBPReport; } diff --git a/src/main/java/org/sunbird/nlw/service/PublicUserEventBulkonboardConsumer.java b/src/main/java/org/sunbird/nlw/service/PublicUserEventBulkonboardConsumer.java index 8f9a1e2bf..210ba96db 100644 --- a/src/main/java/org/sunbird/nlw/service/PublicUserEventBulkonboardConsumer.java +++ b/src/main/java/org/sunbird/nlw/service/PublicUserEventBulkonboardConsumer.java @@ -611,4 +611,4 @@ private Date convertToUTC(Date date) { } } -} \ No newline at end of file +}