feat(ui): support city and state in autocomplete
This commit is contained in:
parent
eb13801daa
commit
49d92078bd
2 changed files with 6 additions and 0 deletions
|
|
@ -16,6 +16,8 @@ def __get_autocomplete_table(value, project_id):
|
|||
schemas.FilterType.user_os,
|
||||
schemas.EventType.custom,
|
||||
schemas.FilterType.user_country,
|
||||
schemas.FilterType.user_city,
|
||||
schemas.FilterType.user_state,
|
||||
schemas.EventType.location,
|
||||
schemas.EventType.input]
|
||||
autocomplete_events.sort()
|
||||
|
|
|
|||
|
|
@ -429,6 +429,8 @@ class FilterType(str, Enum):
|
|||
user_browser = "userBrowser"
|
||||
user_device = "userDevice"
|
||||
user_country = "userCountry"
|
||||
user_city = "userCity"
|
||||
user_state = "userState"
|
||||
user_id = "userId"
|
||||
user_anonymous_id = "userAnonymousId"
|
||||
referrer = "referrer"
|
||||
|
|
@ -980,6 +982,8 @@ class MetricOfTable(str, Enum):
|
|||
user_browser = FilterType.user_browser.value
|
||||
user_device = FilterType.user_device.value
|
||||
user_country = FilterType.user_country.value
|
||||
user_city = FilterType.user_city.value
|
||||
user_state = FilterType.user_state.value
|
||||
user_id = FilterType.user_id.value
|
||||
issues = FilterType.issue.value
|
||||
visited_url = "location"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue