Uploaded image for project: 'Razor'
  1. Razor
  2. RAZOR-158

Improve error UX: give direction when the user failed to migrate

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: RAZOR 0.15.0
    • Component/s: QA, Server
    • Labels:
      None
    • Template:
    • Epic Link:
    • Story Points:
      2
    • Sprint:
      April 23

      Description

      Copy of Issue 110:

      At the moment the result of forgetting to migrate your database is this error:

      JBWEB000065: HTTP Status 500 - org.jruby.exceptions.RaiseException: (DatabaseError) Java::OrgPostgresqlUtil::PSQLException: ERROR: relation "sequel_constraint_validations" does not exist
      

      This is accurate as all get-out, but not exactly helpful. We should include a high level error filter and dolly that up with some hints like "you should run `razor-admin migrate-database` to fix this problem, because it will fix it right up; we didn't migrate ourselves automatically because ${reasons}".

      ...or just migrate automatically ourselves. (Also, we should check if migrations are current and do something reasonable in the situation that we don't match the on-disk migrations, like politely 500 everything with clear instructions.)

        Attachments

          Activity

            People

            Assignee:
            phong Phong Ly
            Reporter:
            daniel Daniel Pittman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support