[CL-PIX-13371] fix(blog): включить поле isPublished в публичный список постов + регрессионные тесты #924
No reviewers
Labels
No labels
ci-failing
duplicate
needs-rebase
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
europa-tech-srl/europatech!924
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/pix-13371-blog-ispublished"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Что сделано
Фикс
isPublished(коммит2f4a652b3):api/src/services/blog.service.ts— добавленоisPublishedв Prismaselectclause и в нормализованный ответapi/src/routes/blog.agent-publish.test.ts— добавлен тест на наличие поля в ответеРегрессионные тесты объектов (коммит
4c3f97156):api/src/routes/__tests__/public.objects.test.ts— тестыGET /api/objects/:idи/roomsдля obj-001 и obj-002Зачем
PIX-13371: smoke-тест обнаружил что
isPublishedвозвращается какnullвместоtrueдля всех постов. ФункцияlistPublicBlogPostsфильтровала посты поisPublished: true, но не возвращала это поле в select. Cherry-pick на чистую ветку от master (PR #920 закрыт из-за конфликтов).План тестирования
api tsc --noEmit— 0 ошибокGET https://api.europa-tech.org/api/public/blog?page=1→ каждый пост имеетisPublished: trueГде могу ошибаться
Оба коммита cherry-pick применены на latest master (
9d7b5ea64). Конфликтов нет.Implement regression tests for PIX-13371 smoke test verification: - Verify GET /api/objects/:id returns wrapped {success, data} structure - Verify id field is present in data object (regression fix) - Verify all required fields (name, location, sharePrice, status, etc.) - Test both obj-001 and obj-002 endpoints - Add rooms endpoint regression tests All tests verified against production API https://api.europa-tech.org. Test runs silently skip if production unreachable (graceful degradation).