Skip to content

changes in content publish job and question set job for interactive v… - #437

Open
parekhsaloni25 wants to merge 8 commits into
Sunbird-Knowlg:release-4.9.0from
parekhsaloni25:release-4.7.0
Open

changes in content publish job and question set job for interactive v…#437
parekhsaloni25 wants to merge 8 commits into
Sunbird-Knowlg:release-4.9.0from
parekhsaloni25:release-4.7.0

Conversation

@parekhsaloni25

Copy link
Copy Markdown

Changes in content publish job and question set publish job to read publish chain event.

Publish chain event will be posted to content publish job. Content publish job will validate event and depending on object type post it to respective jobs.

@parekhsaloni25
parekhsaloni25 force-pushed the release-4.7.0 branch 4 times, most recently from 82a705c to 1677e4c Compare January 17, 2022 10:21
Comment thread jobs-core/src/main/scala/org/sunbird/job/util/FileUtils.scala Outdated
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

85.0% 85.0% Coverage
0.0% 0.0% Duplication

val publishChainMetadata: Map[String, AnyRef] = JSONUtil.deserialize[Map[String, AnyRef]](data.publishChainMetadata)
val eData: Map[String, AnyRef] = publishChainMetadata.getOrElse("edata", Map[String, AnyRef]()).asInstanceOf[Map[String, AnyRef]]
val publishChain: List[Map[String, AnyRef]] = eData.getOrElse("publishchain", List[Map[String, AnyRef]]()).asInstanceOf[List[Map[String, AnyRef]]]
new ObjectData(obj.identifier, obj.metadata ++ Map("publishchain" -> publishChain), obj.extData, obj.hierarchy)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You can read the publishChain as data.publishChain

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

data.publishChain is different. I want to read the object from publishChainMetadata string. so first string is converted to object and then publishChain is read from it

@AmiableAnil
AmiableAnil changed the base branch from release-4.7.0 to release-4.8.0 March 3, 2022 06:18
@coolbung

coolbung commented Mar 8, 2022

Copy link
Copy Markdown

Hi @AmiableAnil regarding your question about spine ecar vs full ecar, in this case we are generating only the full ecar which has all the question sets. The spine ecar won't work in this case, since we need to ensure all the question sets are pre-downloaded before the video can play.

We will update the code to 4.8 and let you know, so you can go ahead and merge.

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

85.0% 85.0% Coverage
0.0% 0.0% Duplication

@AmiableAnil
AmiableAnil changed the base branch from release-4.8.0 to release-4.9.0 April 13, 2022 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants