Maintenance will be performed on,,, and tomorrow, 2020/08/04, starting at approximately 9am PDT. It is expected to take around 15 minutes and there will be a short period of downtime towards the end of the maintenance window. Please direct any comments, questions or concerns to

Commit bb509317 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB

search: more flexible superevent ID queries

Things like 's190418BC' will work now (should be 'S190418bc')
parent a8c927cc
......@@ -37,6 +37,12 @@ def parse_superevent_id(name, toks, filter_prefix=None):
if (toks.prefix == Superevent.GW_ID_PREFIX):
toks.suffix = toks.suffix.upper()
# Allow flexible suffix capitalization
if (toks.prefix == Superevent.GW_ID_PREFIX):
toks.suffix = toks.suffix.upper()
toks.suffix = toks.suffix.lower()
# Combine into full ID and get lookup kwargs
s_id = toks.preprefix + toks.prefix + + toks.suffix
f_kwargs = Superevent.get_filter_kwargs_for_date_id_lookup(s_id)
......@@ -43,6 +43,10 @@ SUPEREVENT_QUERY_TEST_DATA = [
("", DEFAULT_Q),
("id: S190509bc",
("id: Tgw190331eBz",
("id: ms190331BCdE",
("superevent_id: S190509bc",
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment