forked from retoor/devplacepy
feat: enforce hard test-tier requirement across all DevPlace workflow agents and feature-builder docs
Update the feature-builder agent prompt, test-maintainer agent, and all four workflow JS files (devii-tool, endpoint, feature, job-service) to codify the DevPlace test standard as a non-optional project requirement: one test file per endpoint, directory tree mirroring the URL/source path, split into three tiers (unit, api, e2e). Add explicit Test phases to devii-tool, endpoint, feature, and job-service workflows, and embed tier-specific test instructions (path mapping, fixture choice, coverage scope) directly in each workflow's meta description and TESTS constant.
This commit is contained in:
@@ -10,6 +10,7 @@ from devplacepy.database import (
|
||||
load_comments,
|
||||
resolve_by_slug,
|
||||
get_news_images_by_uids,
|
||||
get_recent_comments_by_target_uids,
|
||||
get_user_bookmarks,
|
||||
paginate,
|
||||
)
|
||||
@@ -51,6 +52,9 @@ async def news_page(request: Request, before: str = None):
|
||||
|
||||
article_uids = [a["uid"] for a in articles]
|
||||
images_by_news = get_news_images_by_uids(article_uids)
|
||||
recent_comments = get_recent_comments_by_target_uids(
|
||||
"news", article_uids, 3, user
|
||||
)
|
||||
|
||||
enriched = []
|
||||
for a in articles:
|
||||
@@ -60,6 +64,7 @@ async def news_page(request: Request, before: str = None):
|
||||
"time_ago": time_ago(a["synced_at"]),
|
||||
"image_url": images_by_news.get(a["uid"]),
|
||||
"grade": a.get("grade", 0),
|
||||
"recent_comments": recent_comments.get(a["uid"], []),
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user