Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
subscription, junction: revisit catalog APIs usage
Avoid fetching the catalog over and over again: when we already have the plan, we can directly fetch the phase. This also fixes the implementation of rebuildSubscriptionAndNotifyBusOfEffectiveImmediateChange: we cannot simply take the old subscription events and add the new event because in some cases, we have had to de-active some events on disk (e.g. future phase event during a change plan). It looks like we were incorrectly building subscription events in some cases, even though it didn't affect most codepaths. As a side effect, a "spiced-up test" had to be modified (creating garbage data on disk now throws an exception as the code refuses to build such incorrect timelines). Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
- Loading branch information
Showing
7 changed files
with
60 additions
and
87 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
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
Oops, something went wrong.