Page MenuHomePhabricator

Handle visiting non-existent query
Closed, DuplicatePublic

Description

When visiting a query that doesn't exist, for example, https://quarry.wmflabs.org/query/542707, the lack of a query should be handled and an error page should be shown. Right now the a Python error is raised (sqlalchemy.orm.exc.NoResultFound: No row was found for one() from the line query = g.conn.session.query(Query).filter(Query.id == query_id).one()).

Event Timeline

Change 682030 had a related patch set uploaded (by BrandonXLF; author: BrandonXLF):

[analytics/quarry/web@master] Use one_or_none to handle non-existent queries

https://gerrit.wikimedia.org/r/682030

Change 682030 abandoned by Vivian Rook:

[analytics/quarry/web@master] Use one_or_none to handle non-existent queries

Reason:

Resolved in https://phabricator.wikimedia.org/T290874

https://gerrit.wikimedia.org/r/682030