-
Notifications
You must be signed in to change notification settings - Fork 4.2k
feat: Add top-level parent logic to Upstream/Dowstream links [FC-0097] #37076
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
Merged
ChrisChV
merged 23 commits into
openedx:master
from
open-craft:chris/FAL-4231-top-level-parent
Aug 14, 2025
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
36cb15c
feat: Add top_level_parent field and updates API to optain the top la…
ChrisChV 51e3927
test: Added tests for top-level parents logic
ChrisChV c34bf9d
style: Fix broken lint
ChrisChV bc484ec
style: Nits on the code
ChrisChV 806cb4f
style: fix broken lints
ChrisChV 966c998
feat: Add _annotate_query_with_ready_to_sync to ContainerLink
ChrisChV 84ac4ba
Merge branch 'master' into chris/FAL-4231-top-level-parent
ChrisChV 34cd5a4
fix: Bug with creating blocks on every sync
ChrisChV 2964783
test: Add tests to verify the fix of the bug of creating blocks on ev…
ChrisChV 9c4192c
style: Fix broken lint
ChrisChV e77a67f
refactor: Set use_top_level_parents as special filter separated from …
ChrisChV 633e050
refactor: top_level_parent to ForeignKey of ContainerLink
ChrisChV 49e1989
refactor: Use definition of the block instead of the full key in top-…
ChrisChV 1d4ac9e
style: Fix broken lin
ChrisChV 4b6855a
Merge branch 'master' into chris/FAL-4231-top-level-parent
ChrisChV 96d1469
Merge branch 'master' into chris/FAL-4231-top-level-parent
ChrisChV c664a7a
refactor: Use BlockType in top_level_downstream_parent_key
ChrisChV 1baf99b
style: Fix broken lint
ChrisChV 6cc840a
refactor: Verify creation of top-level parents
ChrisChV d51aaee
Merge branch 'master' into chris/FAL-4231-top-level-parent
ChrisChV 5d806b0
style: Update comment
ChrisChV eca0334
Merge branch 'master' into chris/FAL-4231-top-level-parent
ChrisChV a68379c
Merge branch 'master' into chris/FAL-4231-top-level-parent
ChrisChV File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
cms/djangoapps/contentstore/migrations/0012_componentlink_top_level_parent_and_more.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # Generated by Django 4.2.23 on 2025-08-04 18:56 | ||
|
|
||
| from django.db import migrations, models | ||
| import django.db.models.deletion | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ('contentstore', '0011_enable_markdown_editor_flag_by_default'), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AddField( | ||
| model_name='componentlink', | ||
| name='top_level_parent', | ||
| field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='contentstore.containerlink'), | ||
| ), | ||
| migrations.AddField( | ||
| model_name='containerlink', | ||
| name='top_level_parent', | ||
| field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='contentstore.containerlink'), | ||
| ), | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.