Add links to documentation and minor reworking of some errors and layout
@@ -800,8 +800,8 @@ class AjaxClause(View):
'project' not in row['metric']:
context['errors']['routing'] = 'Missing service and project labels so Promgen will be unable to route message'
context['status'] = 'warning'
- else:
- context['status'] = 'warning'
- context['errors']['no_results'] = 'No Results. May need to remove > clause to verity'
+ elif '>' in query or '<' in query or '==' in query:
+ context['status'] = 'info'
+ context['errors']['no_results'] = 'No Results. May need to remove conditional check (> < ==) to verity'
return JsonResponse({'#ajax-clause-check': render_to_string('promgen/ajax_clause_check.html', context)})
