Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Fix/update blog#306

Merged
zainforbjs merged 2 commits intomainfrom
fix/update-blog
Feb 26, 2026
Merged

Fix/update blog#306
zainforbjs merged 2 commits intomainfrom
fix/update-blog

Conversation

@zainforbjs
Copy link
Copy Markdown
Contributor

No description provided.

…date flow

Problems fixed:
- Transaction was rolling back silently due to writeDump() and abort calls inside
  the transaction block, and helper functions swallowing errors with return false
  instead of rethrowing them
- deleteBlogTags() and deleteBlogCategories() were using Wheels soft delete,
  leaving rows physically in the database, causing duplicate key violations on
  the unique_blog_tag and unique_blog_category constraints when saveTags() and
  saveCategories() attempted to re-insert the same associations
- findOne() on the Tag model was not using includeSoftDeleted=true, so
  soft-deleted tags were invisible to Wheels but still present in the DB,
  causing "Name has already been taken" validation errors on re-save
@zainforbjs zainforbjs marked this pull request as ready for review February 26, 2026 10:34
@zainforbjs zainforbjs merged commit 57fbc29 into main Feb 26, 2026
@zainforbjs zainforbjs deleted the fix/update-blog branch February 26, 2026 10:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant