Skip to content

Conversation

@yamcodes
Copy link
Collaborator

No description provided.

yamcodes added 12 commits June 28, 2025 15:51
…lity

This update restructures the database relations definition by consolidating the relationship mappings for articles, users, comments, and tags into a more organized format. The changes improve code readability and maintainability while ensuring accurate representation of relationships within the database schema.
…d enhance clarity

This update modifies the articles and comments plugins by replacing the `where` clause syntax in database queries with a consistent object structure. Additionally, it simplifies the handling of tags and improves the logic for enriching comments. These changes enhance code readability and maintainability while ensuring accurate data retrieval for articles and comments.
… definitions

This update modifies the articles plugin by replacing the `where` clause syntax in database queries with a consistent object structure. Additionally, it enhances type definitions for enriched articles by refining the handling of followers and tags. These changes improve code clarity and maintainability while ensuring accurate data retrieval for articles and their relationships.
This update corrects the filtering logic for followers by changing the property accessed from `followerId` to `id`, ensuring accurate identification of current user follows. Additionally, it updates the tag mapping to directly access the tag name, enhancing clarity and maintainability of the articles response structure.
…intainability

This update comments out the authentication middleware in the articles plugin for potential future use, while also removing unused imports in the profiles plugin. These changes enhance code readability and maintainability across both plugins.
…prove type definitions

This update streamlines the comment response logic by removing unnecessary transformations and directly returning enriched comments. Additionally, it refines the type definition for followers in the enriched comment interface, enhancing clarity and maintainability of the comments plugin.
…ty and maintainability

This update enhances the database reset script by replacing the previous reset logic with a more robust SQL query that drops all tables and enums. Additionally, the articles plugin is refactored to simplify the filtering logic for authors, favorites, and tags, ensuring a more consistent and readable query structure. These changes improve code clarity and maintainability across the affected files.
… maintainability

This update simplifies the filtering logic in the articles plugin by utilizing conditional object spreading for author, favorites, and tags. These changes improve code clarity and maintainability, ensuring a more consistent query structure for retrieving enriched articles.
This commit updates the links in the ARCHITECTURE.md and README.md files to point to the beta branch of Bedstack (Stripped). Additionally, it adds a note in the README to inform users that they are viewing the beta branch. The GitHub workflows for code quality and tests are also modified to include the beta branch, ensuring proper CI/CD processes for this version.
This commit updates the links in the ARCHITECTURE.md and README.md files to point to the Drizzle v1 branch of Bedstack (Stripped). It also modifies the GitHub workflows for code quality and tests to reflect the new branch, ensuring proper CI/CD processes for this version. Additionally, the README now includes information about the use of Drizzle ORM v1 and its Relational API v2.
@yamcodes yamcodes assigned yamcodes and unassigned yamcodes Jun 29, 2025
@coderabbitai
Copy link

coderabbitai bot commented Jun 29, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ 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.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 explain its main purpose.
    • @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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @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 to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • 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/schema.v2.json

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.

…eError type

This commit modifies the error handling utility by replacing the DrizzleQueryError type with DrizzleError in the formatDBError function. This change aligns the error formatting with the updated type definitions in the Drizzle ORM, ensuring consistency and improved error handling across the application.
@yamcodes yamcodes merged commit b425e71 into drizzle-v1 Jun 29, 2025
8 checks passed
@yamcodes yamcodes deleted the beta-fix-m2m branch June 29, 2025 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants