-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No option exists to check whether a value exists within a specified field #131
Comments
Decision 2022-02-08 to action this, with a caveat that the whole |
Slightly messy code, but should show proof of concept
On reflection, there is a further problem here. A better choice would be to separate out these 'nested' lookup functions into a new set of functions. Preliminary choice is:
|
Further discussion has led to a possible solution of
|
* Make `field`, `profile` and `list` values functions internal * Improve error messages in `search_` functions
* Update deprecated values functions & warnings * `show_values` and `search_values` tests added * Internal `search_list_values` & `search_profile_values` added
fixed with addition of |
In v.1.4.0, we have
show_all_fields()
to show which fields are valid, andsearch_fields()
to run a search withinshow_all_fields
(viagrepl
). This is also used internally whengalah_config(run_checks = TRUE)
to ensure that user-supplied field names exist in the specified atlas. However, there is no equivalent for values within a field.Specifically,
search_field_values()
is conceptually closer toshow_all_fields
thansearch_fields
, because it returns all possible values for the specified field. Then the user must build their own search using the resultingtibble
to check if the specified value is present.Potentially improved behavior is:
show_all_values()
with a mandatoryfield
argument, basically the same as the currentsearch_field_values
search_values()
with argumentsfield
andstring
, to allow searching within a specified fieldA further benefit of this approach is that we could support value checking when
galah_config(run_checks = TRUE)
usingshow_all_values
, in the same way as we currently useshow_all_fields
.As an aside, default behaviour for
atlas_counts
is that settinglimit = NULL
returns all values, but this doesn't work forsearch_field_values
.The text was updated successfully, but these errors were encountered: