signoz icon indicating copy to clipboard operation
signoz copied to clipboard

API ingestion keys - CRUD

Open YounixM opened this issue 1 year ago • 17 comments

image image image image image

Summary by CodeRabbit

  • New Features
    • Added functionality to create, retrieve, update, and delete API keys.
    • Implemented a search feature for easily finding specific API keys.
    • Enhanced the UI with new styles for managing API keys, including modals and detailed key information display.

YounixM avatar Feb 10 '24 19:02 YounixM

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

github-actions[bot] avatar Feb 10 '24 19:02 github-actions[bot]

We would appreciate it if you could provide us with more info about this issue/pr!

request-info[bot] avatar Feb 10 '24 19:02 request-info[bot]

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

github-actions[bot] avatar Feb 10 '24 19:02 github-actions[bot]

Walkthrough

The recent update enhances the SigNoz API key management system in the frontend, enriching key functionalities and the UI experience. Users can seamlessly create, retrieve, update, and delete API keys with improved response handling. The revamped interface offers a visually appealing and user-friendly design for efficient key management, including search capabilities, detailed displays, and enhanced styling.

Changes

File Path Change Summary
.../APIKeys/createAPIKey.ts
.../APIKeys/deleteAPIKey.ts
.../APIKeys/getAPIKey.ts
.../APIKeys/getAllAPIKeys.ts
.../APIKeys/updateAPIKey.ts
Functions added for CRUD operations on API keys with response handling.
.../APIKeys/APIKeys.styles.scss Introduces styling for the API key management interface.
.../APIKeys/APIKeys.tsx Implements a React component for comprehensive API key management with creation, editing, deletion, detailed display, and search functionalities.
.../AppRoutes/Private.tsx Added a condition in the PrivateRoute function to check for the presence of route before further evaluation, enhancing the logic flow.

Poem

🐇✨
In the realm of code, where keys unlock the flow,
A rabbit danced in, with changes to bestow.
To create, to fetch, to update, and to clear,
Beneath the digital stars, without fear.
With each leap and tap, the system did cheer,
A symphony of order, crystal clear.
🌟🐰 "To manage, to explore, effortlessly steer,"
"Is the magic of this update, ever sincere."

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share

Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit-tests for this file.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit tests for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository from git and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

coderabbitai[bot] avatar Feb 10 '24 19:02 coderabbitai[bot]

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

github-actions[bot] avatar Feb 10 '24 19:02 github-actions[bot]

image shall we show here what kind of roles the key holds ?

vikrantgupta25 avatar Feb 10 '24 19:02 vikrantgupta25

image Key and ID seems to be duplicate and the copy on ID copies a number rather than the shown text

vikrantgupta25 avatar Feb 10 '24 19:02 vikrantgupta25

@Vikrant2520: API Response data is not as expected. Waiting for that to be fixed and deployed. Will update data related review comments post that.

YounixM avatar Feb 11 '24 17:02 YounixM

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

github-actions[bot] avatar Feb 12 '24 05:02 github-actions[bot]

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

github-actions[bot] avatar Feb 13 '24 07:02 github-actions[bot]

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

github-actions[bot] avatar Feb 15 '24 15:02 github-actions[bot]

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

github-actions[bot] avatar Feb 15 '24 16:02 github-actions[bot]

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

github-actions[bot] avatar Feb 16 '24 07:02 github-actions[bot]

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

github-actions[bot] avatar Feb 16 '24 08:02 github-actions[bot]

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

github-actions[bot] avatar Feb 16 '24 11:02 github-actions[bot]

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

github-actions[bot] avatar Feb 16 '24 11:02 github-actions[bot]

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

github-actions[bot] avatar Feb 16 '24 20:02 github-actions[bot]