Skip to content
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

Finish the conversion logic from scim filter to ecto query #1

Open
rmoorman opened this issue Aug 1, 2023 · 0 comments
Open

Finish the conversion logic from scim filter to ecto query #1

rmoorman opened this issue Aug 1, 2023 · 0 comments
Assignees

Comments

@rmoorman
Copy link
Owner

rmoorman commented Aug 1, 2023

Due to some personal matters, development on this stalled a bit. So let's try to get the ball rolling again.

Currently, we have a scim filter parser that converts a given filter string into a struct representation. But to make it useful, we have to:

  • provide a default ecto integration module
    • aim for one public function that can take such a struct and generate a query struct that can used with ecto (e.g. composed with other queries)
    • the function should take the struct and a struct or function that encodes the possible mappings between scim filter fields and ecto fields in some way; e.g. if attribute familyName is matched, use the value to do a q |> where([user: u], u.family_name == ^value)
  • clean up the tests that showcase how it works and cover the main use-cases
  • provide documentation on how to use it
@rmoorman rmoorman self-assigned this Aug 1, 2023
@rmoorman rmoorman pinned this issue Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant