-
Notifications
You must be signed in to change notification settings - Fork 15
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
Fix/sort entries #125
Fix/sort entries #125
Conversation
reorders them so that entries which are linked from other entries always come first in the order. This ensures that when we publish entries, we are not publishing entries which contain links to other entries which haven't been published yet.
How does this work with cyclic dependencies? Also two side notes:
|
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.
Found some issues, fixed it. @Khaledgarbaya it is your turn for review.
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.
LGTM
31b8101
to
6f01d17
Compare
it doesn't 😅 but this is not fixable via sorting, we need another solution for circular references.
good point
correct, never. So I fixed it. |
Reorders them so that entries which are linked from other entries always
come first in the order. This ensures that when we publish entries, we
are not publishing entries which contain links to other entries which haven't been published yet.
With this, we can remove the workaround loop in
contentful-import