Skip to content

Commit

Permalink
for cisagov#551, URL pivot links in dashboards (ignore date/times)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Jan 14, 2025
1 parent f29ff50 commit 77d6996
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dashboards/scripts/index-refresh.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,13 @@ def main():
# },
# ...
# }

pivotIgnoreTypes = ['date']
if args.opensearchMode != malcolm_utils.DatabaseMode.ElasticsearchRemote:
for field in [x for x in getFieldsList if x['name'][:1].isalpha() and x['name'] not in fieldFormatMap]:
for field in [
x
for x in getFieldsList
if x['name'][:1].isalpha() and (x['name'] not in fieldFormatMap) and (x['type'] not in pivotIgnoreTypes)
]:
fieldFormatInfo = {}
fieldFormatInfo['id'] = 'url'
fieldFormatInfo['params'] = {}
Expand Down

0 comments on commit 77d6996

Please sign in to comment.