Test: Category routing rules #79

Open
opened 2026-05-29 05:14:07 +00:00 by jmiller · 1 comment
Owner

Test: Category Routing Rules

What changed

New DB table #__mokojoomcross_category_rules maps Joomla categories to specific services. CrossPostDispatcher checks rules before dispatching.

Steps to test

  1. Insert a rule: INSERT INTO #__mokojoomcross_category_rules (category_id, service_id, published) VALUES (X, Y, 1)
  2. Publish an article in that category
  3. Verify it ONLY posts to the specified service(s)
  4. Publish an article in a category with NO rules ? verify it posts to ALL services (backward compatible)
  5. Test with per-article service filter on top of category rules

Expected

  • Category rules act as whitelist
  • No rules = all services (no change from before)
  • Per-article filters stack on top of category rules
## Test: Category Routing Rules ### What changed New DB table `#__mokojoomcross_category_rules` maps Joomla categories to specific services. CrossPostDispatcher checks rules before dispatching. ### Steps to test 1. Insert a rule: `INSERT INTO #__mokojoomcross_category_rules (category_id, service_id, published) VALUES (X, Y, 1)` 2. Publish an article in that category 3. Verify it ONLY posts to the specified service(s) 4. Publish an article in a category with NO rules ? verify it posts to ALL services (backward compatible) 5. Test with per-article service filter on top of category rules ### Expected - Category rules act as whitelist - No rules = all services (no change from before) - Per-article filters stack on top of category rules
Author
Owner

Branch created: feature/79-test-category-routing-rules

git fetch origin
git checkout feature/79-test-category-routing-rules
Branch created: [`feature/79-test-category-routing-rules`](https://git.mokoconsulting.tech/MokoConsulting/MokoJoomCross/src/branch/feature/79-test-category-routing-rules) ```bash git fetch origin git checkout feature/79-test-category-routing-rules ```
Sign in to join this conversation.
Type Task
Status
Priority
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoJoomCross#79