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

Systems: When fetching allow for filtering on systems for which credentials have or have not been registered. #76

Open
scblack321 opened this issue Feb 26, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@scblack321
Copy link
Collaborator

One use case is to allow a UI to show appropriate systems when launching an application.

@scblack321
Copy link
Collaborator Author

Proposed design:
Add a query parameter for the getSystems endpoint.
Parameter name filterByCredentials
Parameter type ENUM with values ANY, NO_CREDENTIALS, WITH_CREDENTIALS
Default is ANY

@scblack321
Copy link
Collaborator Author

Query parameter would be supported by the getSystems endpoint, but would not be supported for the dedicated search endpoints.

@scblack321 scblack321 moved this from To Do to In Progress in Tapis Project Beta Board Apr 8, 2024
@scblack321
Copy link
Collaborator Author

Might be better to first update Systems so that we persist information about which credentials have been registered for each system. We already have some of this information in the table systems_login_user.
One option is to extend this table to include all credential registration information.
Of course excluding the actual credentials.
Since we always need to check this table when looking up credentials, this might provide a natural way to lazily fill in the credential registration info for systems with credentials registered prior to this update.
Having this info in a Systems table should make it simpler and faster to:

  • filter by credentials
  • allow for fetching of credential registration info by system
  • allow for fetching of credential registration info by Tapis user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In Progress
Development

No branches or pull requests

1 participant