diff --git a/helm-quarry/values.yaml b/helm-quarry/values.yaml index 9fc0cef..5f37cd1 100644 --- a/helm-quarry/values.yaml +++ b/helm-quarry/values.yaml @@ -1,7 +1,7 @@ web: repository: 'quay.io/wikimedia-quarry/quarry' - tag: pr-66 # web tag managed by github actions + tag: pr-13 # web tag managed by github actions worker: repository: 'quay.io/wikimedia-quarry/quarry' - tag: pr-66 # worker tag managed by github actions + tag: pr-13 # worker tag managed by github actions \ No newline at end of file diff --git a/quarry/web/query.py b/quarry/web/query.py index c9463bc..58eb821 100644 --- a/quarry/web/query.py +++ b/quarry/web/query.py @@ -31,6 +31,7 @@ def new_query(): return redirect("/login?next=/query/new") query = Query() query.user = get_user() + query.title = "Untitled query" g.conn.session.add(query) g.conn.session.commit() return redirect(url_for("query.query_show", query_id=query.id)) diff --git a/quarry/web/static/js/query/view.js b/quarry/web/static/js/query/view.js index 4893c4d..502b30f 100644 --- a/quarry/web/static/js/query/view.js +++ b/quarry/web/static/js/query/view.js @@ -130,7 +130,7 @@ $( function () { query_id: vars.query_id, title: title } ).done( function ( /* data */ ) { - document.title = ( title || 'Untitled query #' + vars.query_id ) + ' - Quarry'; + document.title = title + ' - Quarry'; } ); } ); } @@ -243,7 +243,7 @@ $( function () { ); if ( !silent && vars.preferences.use_notifications ) { - let title = $( '#title' ).val() ? '"' + $( '#title' ).val() + '"' : 'Untitled query #' + vars.query_id; + let title = '"' + $( '#title' ).val() + '"'; sendNotification( title + ' execution has been completed' ); } diff --git a/quarry/web/templates/query/list.html b/quarry/web/templates/query/list.html index 34d8344..4fec5f6 100644 --- a/quarry/web/templates/query/list.html +++ b/quarry/web/templates/query/list.html @@ -32,7 +32,7 @@ {% for query in queries %} - {% if query.title %}{{query.title}}{% else %}Untitled query #{{query.id}}{% endif %} + {{query.title}} {{query.user.username}} {{query.latest_rev.latest_run.status_message}} {{query.latest_rev.latest_run.timestamp|timesince}} diff --git a/quarry/web/templates/query/view.html b/quarry/web/templates/query/view.html index bacff72..7a7f60e 100644 --- a/quarry/web/templates/query/view.html +++ b/quarry/web/templates/query/view.html @@ -16,7 +16,7 @@ {% endblock %} {% block title %} -{% if query.title %}{{query.title}}{% else %}Untitled query #{{ query.id }}{% endif %} - Quarry +{{query.title}} - Quarry {% endblock %} {% block content %}
@@ -24,7 +24,7 @@
-

+

@@ -50,11 +50,7 @@

{% for query in published_queries %}
  • - {% if query.title %}{{query.title}}{% else %}Untitled query #{{query.id}}{% endif %} + {{query.title}} {{query.last_touched|timesince}}
  • {% else %} @@ -37,7 +37,7 @@

    Starred Queries