Fix/privatisation quickie interaction #1094
Merged
+74
−19
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.
This PR fixes an issue with the integration of privatisation with quickie. To be reviewed in conjunction with PR#1763 on the frontend repo. There are two existing issues being tackled by this PR:
staging-lite.
variant, but this should not be true for private sitesNote that this PR does not handle the issue of inconsistent states fully right now - it is possible that a user who attempts to privatise/unprivatise a site will have the request to the second amplify site fail, leaving us in an inconsistent state - this needs to be manually resolved for now, as the resolution is complicated. We can look into making this more robust if we find that this is a consistent issue, but I am opting to leave this as is for now and pipe alarms that notify us instead. The issue is also fixable on the user's end if they try again - the inconsistent state will not block cms operations.
TODOs:
Add cloudwatch alarm for inconsistent state resolutionAdd entry in runbook for handling inconsistent stateTests