Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: openedx/edx-enterprise
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2ee7e0aa61c3391c04c40f951aeb39c4575fd8a4
Choose a base ref
..
head repository: openedx/edx-enterprise
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a0a66fb3ecfa1410f5fd206192675ddc9e684ae3
Choose a head ref
Showing with 6 additions and 1 deletion.
  1. +6 −1 integrated_channels/integrated_channel/exporters/content_metadata.py
Original file line number Diff line number Diff line change
@@ -589,6 +589,8 @@ def export(self, **kwargs):
# remove relation between content and skill
# - dict { skill_name : [content_key, ... ] }

# Block work if config/channel doesn't support skills?

# For each item in update_payload
# - Grab all skill audits associated with the item's content key
# - for each found skill audit,
@@ -597,6 +599,7 @@ def export(self, **kwargs):
# - add skill name/content key to the remove skill relations payload
# - if the skill audit's associated content keys len is 1
# - add the skill to the delete payload
# - mark for delete
# - if there
# - update the skill audit record with the item's metadata
# - if change add the skill audit to the update skills payload
@@ -613,8 +616,9 @@ def export(self, **kwargs):
# - for each skill audit
# - add the skill name/content key to the add relations payload
# - for any skills listed in the item's metadata that weren't found in the skill audits
# - create a new skill audit record, mark for create
# - create a new skill audit record,
# - add the audit to the create skill payload
# - mark for create

# Iterate over items_to_delete and filter for skill audits that contain the item's content key within the records associated
# content keys set.
@@ -623,6 +627,7 @@ def export(self, **kwargs):
# - for each found skill audit
# - if the skill audit's content keys set is 1
# - add the skill audit to the delete payload
# - mark for delete
# - add the skill/content key to the remove skill relations payload