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

feat: support for data stores #192

Open
wants to merge 61 commits into
base: master
Choose a base branch
from
Open

feat: support for data stores #192

wants to merge 61 commits into from

Conversation

xavidop
Copy link
Owner

@xavidop xavidop commented Dec 29, 2023

Summary by CodeRabbit

  • New Features

    • Introduced cxcli datastore command for managing datastores.
    • Added cxcli datastore search command for searching within datastores.
    • Implemented deletion functionality for datastores using cxcli.
  • Documentation

    • Added documentation for cxcli datastore and cxcli datastore search commands.
    • Introduced new sections for "Data Stores" with Introduction and Search pages.
    • Updated documentation to include new datastore commands and operations.
  • Development Environment

    • Added launch configurations for datastore commands in the development environment.
  • General Updates

    • Updated copyright year to 2024.

Summary by CodeRabbit

  • New Features

    • Introduced cxcli datastore command for managing datastore operations.
    • Implemented delete functionality for specific datastores.
  • Bug Fixes

    • Updated import paths for compatibility with new package versions.
    • Updated function signatures to utilize the new AI model package.
  • Documentation

    • Added new documentation for cxcli datastore commands and datastore operations.
    • Updated navigation in documentation to include new sections for Data Stores.
  • Chores

    • Updated copyright year from 2023 to 2024.
    • Added .coderabbit.yaml for review configurations.
    • Updated GitHub workflow to use the latest version of anchore/sbom-action/download-syft.
    • Updated version specifications in docs/requirements.txt.

@xavidop xavidop changed the title feat: support to data stores feat: support for data stores Jan 30, 2024
Copy link

stale bot commented Feb 13, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Feb 13, 2024
@stale stale bot removed the wontfix This will not be worked on label Feb 13, 2024
Copy link

stale bot commented Mar 1, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Mar 1, 2024
@stale stale bot closed this Mar 8, 2024
@xavidop xavidop reopened this Mar 8, 2024
@xavidop xavidop removed the wontfix This will not be worked on label Mar 8, 2024
Copy link

stale bot commented Nov 21, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Nov 21, 2024
@stale stale bot closed this Nov 29, 2024
@xavidop xavidop reopened this Dec 7, 2024
@xavidop xavidop removed the wontfix This will not be worked on label Dec 7, 2024
Copy link

stale bot commented Dec 21, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Dec 21, 2024
@stale stale bot closed this Dec 28, 2024
@xavidop xavidop reopened this Dec 29, 2024
@stale stale bot removed the wontfix This will not be worked on label Dec 29, 2024
Copy link
Contributor

mergify bot commented Dec 31, 2024

👋 xavidop your PR is conflicting and needs to be updated to be merged

@mergify mergify bot added the conflict label Dec 31, 2024
@mergify mergify bot removed the conflict label Dec 31, 2024
Copy link
Contributor

mergify bot commented Dec 31, 2024

👋 xavidop your PR is conflicting and needs to be updated to be merged

@mergify mergify bot added the conflict label Dec 31, 2024
@mergify mergify bot removed the conflict label Dec 31, 2024
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
cmd/datastore/delete.go (1)

12-12: Correct the doc comment to accurately reflect the command purpose.

The current comment says “search datastore set command,” but this command is for deleting a datastore.

-// deleteCmd represents the search datastore set command
+// deleteCmd represents the delete datastore command
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fc9f7e5 and 20a513f.

📒 Files selected for processing (1)
  • cmd/datastore/delete.go (1 hunks)
🔇 Additional comments (2)
cmd/datastore/delete.go (2)

24-25: Add more context to the error message.

This issue was previously flagged with the same suggestion. Provide a more descriptive error message for clarity.

- global.Log.Errorf("%s", err.Error())
+ global.Log.Errorf("failed to delete datastore: %v", err)

36-50: Consider adding test coverage for deleteCmd.

Currently, there are no unit tests for the datastore deletion flow. Testing each path, including error scenarios, ensures reliability and prevents regressions.

Do you want me to generate an initial test file for this command?

Copy link
Contributor

mergify bot commented Jan 2, 2025

👋 xavidop your PR is conflicting and needs to be updated to be merged

@mergify mergify bot added the conflict label Jan 2, 2025
Copy link

stale bot commented Jan 17, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conflict wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant