-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CMS paragraph order being scrambled
The issue was that `async_with_timeout`, which accepts a list of functions, was implemented on top of `yield_or_default_many`, which accepts a map where the values are functions. The map values were being collected back into a list, but since maps are not ordered, this result list would not have the same ordering as the input list. Because the previous approach resulted in this data flow: list -> map -> list -> Task.yield_many -> list -> map -> list We can simplify to this: list -> Task.yield_many -> list
- Loading branch information
1 parent
171281e
commit 1798876
Showing
3 changed files
with
32 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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 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 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