-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(upgrade): raise an HTTP 417 exception when an upgrade has unmet r…
…equirements (#2047) Context: This PR addresses two potential issues that can occur when upgrading studies: - Upgrading a variant study could potentially corrupt it. - Upgrading a parent study that has variant children could potentially corrupt those children. Issue: At present, our system does not support the upgrade of commands, which complicates the resolution of these issues. Until we develop a solution for upgrading commands, this PR implements measures to prevent the two situations mentioned above. Solution: The modifications in this PR will trigger a 417 HTTP ERROR if an attempt is made to upgrade a study that either has children or is a variant. This is a temporary measure until we implement a solution for upgrading commands.
- Loading branch information
Showing
6 changed files
with
208 additions
and
28 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