Skip to content

fix(events-v2): Fix search filter#13454

Merged
lynnagara merged 2 commits intomasterfrom
fix/fix-search
May 30, 2019
Merged

fix(events-v2): Fix search filter#13454
lynnagara merged 2 commits intomasterfrom
fix/fix-search

Conversation

@lynnagara
Copy link
Member

Prevent double translation of tag keys in search queries

Prevent double translation of tag keys in search queries


def transform_aliases_and_query(*args, **kwargs):
def transform_aliases_and_query(skip_conditions=False, *args, **kwargs):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having a keyword argument before *args is going to make this function hard to call with positional arguments and skip_conditions as a keyword argument.

>>> def tester(skip=False, *args, **kwargs):
...   print('%s %s %s', skip, args, kwargs)

>>> tester(1, 2, 3, skip=True, a='b')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: tester() got multiple values for keyword argument 'skip'

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, thanks! I removed *args since we don't actually pass them into this function

@lynnagara lynnagara requested a review from markstory May 29, 2019 23:58
@lynnagara lynnagara merged commit 4e0cdd5 into master May 30, 2019
@lynnagara lynnagara deleted the fix/fix-search branch May 30, 2019 18:00
jan-auer added a commit that referenced this pull request May 30, 2019
* master: (30 commits)
  ref(ui): Avoid full-page load indicator after project creation (#12842)
  ref(events-v2) Use an object target instead building URLs (#13471)
  ref(onboarding): Improve alerts from wizard docs (#13469)
  feat(app-platform): integration feature models, serializer, endpoints (#13377)
  ref(onboarding): Improve platform picker hover color (#13468)
  chore: New SDK versions (#13465)
  feat(events-v2) Add rough sketch of event modal (#13415)
  chore(south) Update south state to use new jsonfield (#13466)
  fix(events-v2): Fix search filter (#13454)
  chore: Vendor JSONField to fix runtime warnings and reduce future upgrade pain (#13397)
  test(events-v2): Fix dynamic values in Percy (#13463)
  dx(notion): Upgrade from `notion` to `volta` (#13452)
  feat(onboarding): Add warning for when docs are missing examples (#13445)
  misc(metrics): First pass at un-sampled single metric paths. (#13434)
  fix(integrations) Fix missing identity link on re-install (#13450)
  fix(api): Fix bug when creating incident comments while logged in as another user.
  fix(api): Fix task error on incident creation
  chore(SDK's): Update various SDK versions/urls (#13225)
  chore: Make exports and imports match (#13449)
  feat(ui): Add message in Incidents list for creating an incident [SEN-694] (#13436)
  ...
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants