-
Notifications
You must be signed in to change notification settings - Fork 0
Beta fix m2m #11
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
Beta fix m2m #11
Conversation
…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.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed 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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
…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.
No description provided.