Skip to content

Conversation

kdmccormick
Copy link
Member

@kdmccormick kdmccormick commented Oct 1, 2025

Description

We only need to track field customizations for upstream-linked (i.e., library-linked) blocks. Thd downstream_customized field is irrelevant for other blocks. It would just add a ton of noise to the OLX.

Additionally, we now clear downstream_customized when severing an upstream link.

Supporting information

#37411

Testing

Without this PR:

  • Add a component to a course from a library
  • Edit the component's title; save and publish
  • Add a new component to a course
  • Edit the component's title; save and publish
  • Export the course
  • Notice:
    • The library-sourced component's OLX tag contains downstream_customized="["display_name"]" (desired behavior)
    • The course-based component's OLX tag contains downstream_customized="["display_name"]" (bugged behavior)

With this PR:

  • Add a component to a course from a library
  • Edit the component's title; save and publish
  • Add a new component to a course
  • Edit the component's title; save and publish
  • Export the course
  • Notice:
    • The library-sourced component's OLX tag still contains downstream_customized="["display_name"]")=
    • The course-based component's OLX tag does not containdownstream_customized="["display_name"]"

Deadline

ASAP, but especially before the Ulmo so that this doesn't get into release operators' course data.

Since the downstream customization code was merged in September, some downstream_customized attributes will have gotten into 2U's and potentially MIT OL's course data. It won't be harmful there, just noisy.

@kdmccormick kdmccormick force-pushed the kdmccormick/downstream-customized branch from 730ecd0 to d02c317 Compare October 2, 2025 16:09
@kdmccormick kdmccormick marked this pull request as ready for review October 3, 2025 19:40
@kdmccormick
Copy link
Member Author

@navinkarkera or @bradenmacdonald , could one of you review this?

We only need to track field customizations for upstream-linked
(i.e., library-linked) blocks. Thd downstream_customized field
is irrelevant for other blocks. It would just add a ton of noise
to the OLX.

Fixes: openedx#37411
@kdmccormick kdmccormick force-pushed the kdmccormick/downstream-customized branch from d02c317 to 6a8214f Compare October 3, 2025 19:42
Copy link
Contributor

@navinkarkera navinkarkera left a comment

Choose a reason for hiding this comment

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

@kdmccormick Thanks! I also noticed this bug and had a fix included in #37405

@kdmccormick kdmccormick merged commit 8b6a94b into openedx:master Oct 6, 2025
65 checks passed
@kdmccormick kdmccormick deleted the kdmccormick/downstream-customized branch October 6, 2025 15:33
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.

2 participants