working-group-two/wgtwo.com

[Improvement] Allow multiple devpages for multiple PRs

Opened this issue · 1 comments

Problem:

  • Someone would like to test 2 different PRs on the live devpages website
  • Currently, only 1 PR can be deployed at a time
  • If a new PR is assigned the devpages label, or something is pushed to another PR with the devpages label, the previously-deployed PR gets wiped from the dev website as the new one gets auto-deployed, whether it's intended or not

Solution:

  • Somehow, multiple PRs should be deployable simulatenously and be preview-able from different links
  • Issues:
    • How to manage which PR to keep and which one to delete? Should there be an "admin" website for this? A separate PR just for this where commands are issued? Or be kept to e.g. last 2 PRs?
    • How to deploy multiple PRs to different folders?
    • How to detect last PRs with the devpages label?

Mhmm unsure what the best way to solve this is..

One idea is we leverage multiple labels devpages1, devpages2, devpages3 and then we duplicate our existing setup with 3 pipelines, 3 URLs etc. This a little more infrastructure vs. building a custom frontend that does toggling etc.