Skip to content

deprecate in memory store#1007

Merged
mcalhoun merged 2 commits intomainfrom
deprecate-in-memory-store
Feb 3, 2025
Merged

deprecate in memory store#1007
mcalhoun merged 2 commits intomainfrom
deprecate-in-memory-store

Conversation

@mcalhoun
Copy link
Contributor

@mcalhoun mcalhoun commented Feb 3, 2025

what

deprecate the in-memory store

why

This was not a useful store as it doesn't persist across runs. It will be replaced by a redis store in a future PR.

Summary by CodeRabbit

  • Chores

    • Removed custom editor configuration that affected YAML and MDX file formatting.
  • Refactor

    • Eliminated the in-memory data storage option, streamlining available storage integrations.

Copy link
Contributor Author

mcalhoun commented Feb 3, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@mergify
Copy link

mergify bot commented Feb 3, 2025

Important

Cloud Posse Engineering Team Review Required

This pull request modifies files that require Cloud Posse's review. Please be patient, and a core maintainer will review your changes.

To expedite this process, reach out to us on Slack in the #pr-reviews channel.

@mergify mergify bot added triage Needs triage needs-cloudposse Needs Cloud Posse assistance labels Feb 3, 2025
@mcalhoun mcalhoun added the no-release Do not create a new release (wait for additional code changes) label Feb 3, 2025 — with Graphite App
@mcalhoun mcalhoun marked this pull request as ready for review February 3, 2025 20:17
@mcalhoun mcalhoun requested a review from a team as a code owner February 3, 2025 20:17
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 3, 2025

📝 Walkthrough

Walkthrough

This change removes the Visual Studio Code configuration file for YAML and MDX formatting. The pull request eliminates the in-memory key-value store implementation along with its unit tests, and updates the registry by removing the branch that handled the in-memory store creation. No public API changes were introduced.

Changes

File(s) Change Summary
.vscode/settings.json Removed VS Code settings that configured custom YAML tags and disabled MDX formatting on save.
pkg/store/in_memory_store.go
pkg/store/in_memory_store_test.go
Removed in-memory store implementation and its corresponding unit tests.
pkg/store/registry.go Removed the case for the "in-memory" store type from the store registry, eliminating its instantiation logic.

Sequence Diagram(s)

sequenceDiagram
    participant Client
    participant Registry as StoreRegistry
    Client->>Registry: Request store creation (storeType)
    alt storeType=="in-memory"
        Registry-->>Client: (Branch Removed)\nError or fallback response
    else storeType=="artifactory" or "aws-ssm-parameter-store"
        Registry->>Factory: Instantiate store
        Factory-->>Registry: Return store instance
        Registry-->>Client: Return store instance
    end
Loading

Suggested labels

patch

Suggested reviewers

  • osterman

📜 Recent review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between f1c0999 and c30800b.

📒 Files selected for processing (4)
  • .vscode/settings.json (0 hunks)
  • pkg/store/in_memory_store.go (0 hunks)
  • pkg/store/in_memory_store_test.go (0 hunks)
  • pkg/store/registry.go (0 hunks)
💤 Files with no reviewable changes (4)
  • .vscode/settings.json
  • pkg/store/registry.go
  • pkg/store/in_memory_store_test.go
  • pkg/store/in_memory_store.go
⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: Build (windows-latest, windows)
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: Analyze (go)
  • GitHub Check: Summary

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>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • 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 testing code 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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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 using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary or @auto-summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai or @auto-title anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@mergify mergify bot removed the triage Needs triage label Feb 3, 2025
@mcalhoun mcalhoun merged commit 1e3211b into main Feb 3, 2025
47 checks passed
@mcalhoun mcalhoun deleted the deprecate-in-memory-store branch February 3, 2025 20:54
@mergify mergify bot removed the needs-cloudposse Needs Cloud Posse assistance label Feb 3, 2025
@github-actions
Copy link

github-actions bot commented Feb 5, 2025

These changes were released in v1.159.0.

Cerebrovinny pushed a commit that referenced this pull request Feb 9, 2025
* deprecate in memory store
* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-release Do not create a new release (wait for additional code changes)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant