-
-
Notifications
You must be signed in to change notification settings - Fork 24
Implement self ref fk ordering #322
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
rtibbles
merged 12 commits into
learningequality:release-v0.9.x
from
ozer550:implement-self-ref-fk-ordering
Jun 3, 2026
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
bb5a11b
add _self_ref_order field
ozer550 bc03c4b
implement ordering
ozer550 74c348d
update store write path
ozer550 d6082a2
carry _self_ref_order through Sync API, Queue and Dequeue
ozer550 ca1bd9e
implement server compute order during the dequeue stage
ozer550 d877427
refactor self-ref order fallback to use model-scoped db updates
ozer550 c260848
update the child ordering to be incremental
ozer550 d3127c5
re-implement RefOrderLookUp with batch awareness
ozer550 b19197b
final morango serialzie algorithm version
ozer550 6aa7750
Add helper to cache self-referential FK attribute names
bjester 651b1a8
Consolidate partitioned buffer utility
bjester 7b427cb
Utilize new partitioned buffer, registry self-ref fk cache, and reduc…
bjester 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
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 |
|---|---|---|
|
|
@@ -101,3 +101,5 @@ Pipfile | |
|
|
||
| # Version file generated by setuptools-scm | ||
| morango/_version.py | ||
|
|
||
| graphify-out/ | ||
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 |
|---|---|---|
|
|
@@ -178,5 +178,6 @@ class Meta: | |
| "profile", | ||
| "rmcb_list", | ||
| "_self_ref_fk", | ||
| "_self_ref_order", | ||
| ) | ||
| read_only_fields = fields | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # Generated by Django 3.2.25 on 2026-04-22 10:53 | ||
|
|
||
| import django.core.validators | ||
| from django.db import migrations, models | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ('morango', '0003_store_deserialization_errors'), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AddField( | ||
| model_name='buffer', | ||
| name='_self_ref_order', | ||
| field=models.IntegerField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(0)]), | ||
| ), | ||
| migrations.AddField( | ||
| model_name='store', | ||
| name='_self_ref_order', | ||
| field=models.IntegerField(blank=True, null=True, validators=[django.core.validators.MinValueValidator(0)]), | ||
| ), | ||
| ] |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the
Casthere, as postgres complained about a mismatch in type.