Skip to content

Commit

Permalink
Remove default value for search_engine (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
lbalmaceda authored Apr 4, 2019
1 parent 36f4150 commit 533018b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions auth0/v3/management/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _url(self, id=None):
return url

def list(self, page=0, per_page=25, sort=None, connection=None, q=None,
search_engine='v1', include_totals=True, fields=None,
search_engine=None, include_totals=True, fields=None,
include_fields=True):
"""List or search users.
Expand All @@ -43,8 +43,9 @@ def list(self, page=0, per_page=25, sort=None, connection=None, q=None,
in app_metadata, user_metadata or the normalized user profile
are searchable.
search_engine (str, optional): Use 'v2' if you want to try our new
search engine.
search_engine (str, optional): The version of the search_engine to use
when querying for users. Will default to the latest version available.
See: https://auth0.com/docs/users/search
fields (list of str, optional): A list of fields to include or
exclude from the result (depending on include_fields). Empty to
Expand Down
2 changes: 1 addition & 1 deletion auth0/v3/test/management/test_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_list(self, mock_rc):
'fields': None,
'include_fields': 'true',
'q': None,
'search_engine': 'v1'
'search_engine': None
})

u.list(page=1, per_page=50, sort='s', connection='con', q='q',
Expand Down

0 comments on commit 533018b

Please sign in to comment.