Wadprog/vwa 75 blog implementation#49
Merged
Wadprog merged 7 commits intoqa/cycle-12from Mar 14, 2026
Merged
Conversation
|
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 ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
- Add BlogMedia junction table model and migration (blog_medias) - Register BlogMedia model in Sequelize and fix Blog's BelongsToMany association (was incorrectly pointing to PostMedia) - Add 'blog' upload type to S3 storage config with blogStorage multer instance - Add 'titlePicture' to MediaFieldType and FileFieldType - Update SaveProfilePictures hook to accept configurable upload folder - Switch blogs service from cloudinary to S3 storage - Remove unused SaveCover constant in blogs hooks Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Fix Blog model mapping publishedAt to correct field: 'published_at' - Add setPublishedAt hook: publishedAt=true sets date, false clears it - Add index on blogs.published_at for query performance - Update editBlogSchema to accept publishedAt boolean and include it in the required-field refine check - Align createBlogSchema field name from publishAt to publishedAt
- Add BlogInterest junction table model and migration (blog_interests) - Register BlogInterest in Sequelize and add BelongsToMany on Blog model - Update SaveInterest hook to link blogs to interests by ID via BlogInterest - Wire SaveInterest into after.create in blogs hooks - Add interests field (array of UUIDs) to createBlogSchema and editBlogSchema
- Add filterByInterests hook: intercepts interestIds query param and applies it as a WHERE on the interests include (INNER JOIN) instead of letting feathers-sequelize treat it as a direct column filter - Split AddAutor and AddInterests hooks so interests are only included on find/get, preventing Sequelize from trying to create Interest records during blog create - Stash interests in params._interests before create so SaveInterest can still access them in the after hook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Brief description of what this PR does, and why it is needed.
Closes: VWN-75
Type of Change:
Demo
Optional. Screenshots,
curlexamples, etc.Breaking Changes
Security Considerations
🔒 Any security implications, new permissions, or sensitive data handling
Performance Impact
⚡ Expected performance impact (positive, negative, or neutral) and any load testing performed
Notes
Optional. Ancillary topics, caveats, alternative strategies that didn't work out, anything else.
Checklist for Author
Code Quality
Testing
Database & Infrastructure
Documentation
Security & Performance
Checklist for Reviewer
Functional Review
Code Review
Integration Review
Testing Instructions
Prerequisites:
Test Cases:
Happy Path Testing:
Edge Case Testing:
Integration Testing:
Regression Testing:
Deployment Notes
Pre-deployment checklist:
Post-deployment verification: