Skip to content

Commit

Permalink
Clean up query representation
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminPelletier committed Dec 23, 2023
1 parent a6e3e80 commit 375395e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions monitoring/monitorlib/fetch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ class QueryType(str, Enum):
"interuss.automated_testing.flight_planning.v1.DeleteFlightPlan"
)

def __str__(self):
return self.value

@staticmethod
def flight_details(rid_version: RIDVersion):
if rid_version == RIDVersion.f3411_19:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ <h3>{{ test_scenario.type }}</h3>
{% elif event.type == EventType.Query %}
<td>&#x1F310;</td>
<td>
{{ event.query.request.method }} {{ event.query.request.url_hostname }}
{% set query_dict = {event.query.request.method + " " + event.query.request.url_hostname + " " + str(event.query.response.status_code): event.query} %}
{% set query_id = "e" + str(event.event_index) + "query" %}
{{ explorer_content(query_id, event.query) }}
{{ explorer_content(query_id, query_dict) }}
{% set collapsible.queries = collapsible.queries + [query_id] %}
</td>
{% for participant_id in all_participants %}
Expand Down

0 comments on commit 375395e

Please sign in to comment.