-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: update and redirect /preview
to /published
#2854
feat: update and redirect /preview
to /published
#2854
Conversation
Removed vultr server and associated DNS entries |
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.
Code-only review looks great, thanks for the clear PR description 👍
Testing Pizza now and will then give a ✅
I've added a comment to this trello ticket to take into consideration the renaming of preview → published throughout the code base more generally.
@@ -92,7 +92,7 @@ export const getTeamFromDomain = async (domain: string) => { | |||
/** | |||
* Prevents accessing a different team than the one associated with the custom domain. | |||
* e.g. Custom domain is for Southwark but URL is looking for Lambeth | |||
* e.g. https://planningservices.southwark.gov.uk/lambeth/some-flow/preview | |||
* e.g. https://planningservices.southwark.gov.uk/lambeth/some-flow |
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.
Good catch! 👍
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.
All checks listed in PR description pass as expected ✅
Also tried a few other things to try and break this - working as expected 🎉
One thing for BOPS dev call - seems super unlikely, but we should double-check if they hold any references to our service URLs outside of the new payload. |
e964a15
into
jess/fetch-published-portals-on-publish
Last big functional update for #2783 !
Will rebase this branch once pizza builds against main. Opening as separate PR for easier review - this touches a lot of files.
Testing:
/published
now (still disabled if flow is unpublished)/published
in the URL; you can resume successfully using those magic links/published
successfully/preview
redirects to/published
and keeps query search params like analytics, sessionId, email, etcOther considerations:
/preview
chore: update any Editor/preview
URLs to/published
planx-core#318 (can be merged later once publishing work is on staging, no direct dependencies here)isPreviewOnlyDomain
is especially confusing now, I think we'll want to reconsider our internal usage of "preview" environments and related terms like "standalone" - but let's address this separately as there aren't any external communication dependencies that will impact PO testing