1 min read
Two small dashboard fixes
Jacob Fenton
A very quick one to say we’ve fixed two small dashboard bugs:
- A release’s page (
https://fly.io/apps/APP_NAME/releases/RELEASE_ID) could 500 during or just after a deploy- This page shows a Machine’s version, but there were some instances where Machines were written to our dashboard’s database, temporarily without a version. A subsequent
start/stop/destroywould fill in the missing version, but until one of those events was seen, it’d remainNULL. - We now filter out Machines without a version from that page, as a precaution. More importantly, we record the Machine’s version the first time we see the Machine, so Machines should never have a
NULLversion.
- This page shows a Machine’s version, but there were some instances where Machines were written to our dashboard’s database, temporarily without a version. A subsequent
- Entering a correct email code led to an error page; this required two preconditions: the email address already had an account, and that account’s email address had never been verified
- If someone had signed up with a password and never verified their email, then subsequently tried to sign up using an emailed code, we would try to delete the old, unverified account so long as we could tell it had not been used at all.
- We were doing this by querying a bunch of different tables, some of which our dashboard’s DB user did not have permission to access.
- The fix was simply to grant access to the specific column needed by these queries on each table.