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

refactor: api keys API #2652

Merged
merged 11 commits into from
Jul 29, 2024
Merged

refactor: api keys API #2652

merged 11 commits into from
Jul 29, 2024

Conversation

igorrCarvalho
Copy link
Contributor

This PR introduces a new custom hook useGetApiKeys to streamline the process of fetching API keys data. The useGetApiKeys hook encapsulates the logic for retrieving API keys, providing a cleaner and more reusable way to access this data across the application.

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jul 12, 2024
Copy link
Contributor

Pull Request Validation Report

This comment is automatically generated by Conventional PR

Whitelist Report

Whitelist Active Result
Pull request is a draft and should be ignored
Pull request is made by a whitelisted user and should be ignored
Pull request is submitted by a bot and should be ignored
Pull request is submitted by administrators and should be ignored

Result

Pull request does not satisfy any enabled whitelist criteria. Pull request will be validated.

Validation Report

Validation Active Result
All commits in this pull request has valid messages
Pull request does not introduce too many changes
Pull request has a valid title
Pull request has mentioned issues
Pull request has valid branch name
Pull request should have a non-empty body

Result

Pull request satisfies all enabled pull request rules.

Last Modified at 12 Jul 24 05:33 UTC

@github-actions github-actions bot added the refactor Maintenance tasks and housekeeping label Jul 12, 2024
@anovazzi1 anovazzi1 self-requested a review July 15, 2024 12:30
anovazzi1

This comment was marked as resolved.

Copy link
Contributor

@anovazzi1 anovazzi1 left a comment

Choose a reason for hiding this comment

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

LGTM

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 18, 2024
@anovazzi1 anovazzi1 force-pushed the refactor/getApiKeys branch from 5713687 to 1c66dce Compare July 18, 2024 20:31
@anovazzi1 anovazzi1 force-pushed the refactor/getApiKeys branch from 1c66dce to 6bc38a6 Compare July 22, 2024 14:53
@anovazzi1 anovazzi1 enabled auto-merge (squash) July 22, 2024 14:53
@anovazzi1 anovazzi1 merged commit 6fa3c7b into main Jul 29, 2024
48 checks passed
@anovazzi1 anovazzi1 deleted the refactor/getApiKeys branch July 29, 2024 19:04
nicoloboschi pushed a commit to datastax/ragstack-ai-langflow that referenced this pull request Jul 30, 2024
* feat: create useDeleteApiKey hook to handle api keys delete

* refactor: use mutation to handle delete api key

* [autofix.ci] apply automated fixes

* feat: create useGetApiKeys hook

* refactor: use useGetApiKeysQuery hook to get api keys data

* [autofix.ci] apply automated fixes

* refactor: change interface name

* refactor: remove unnused loading state and use react state instead of react ref to ensure component render

* fix: multiple refreshs when auto_login=false

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
(cherry picked from commit 6fa3c7b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer refactor Maintenance tasks and housekeeping size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants