test(8565): idea_key is a named exception to the caller contract, and the topic test finds the idea under its family record
CI & Build / TypeScript typecheck (push) Successful in 11s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 17s
CI & Build / Python tests (push) Successful in 2m19s
CI & Build / integration (push) Successful in 2m46s
CI & Build / Build & push image (push) Successful in 38s
CI & Build / TypeScript typecheck (push) Successful in 11s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 17s
CI & Build / Python tests (push) Successful in 2m19s
CI & Build / integration (push) Successful in 2m46s
CI & Build / Build & push image (push) Successful in 38s
idea_key translates an id the caller passed; access is checked on its result by every caller. The topic test listed ideas by the project record's id, which promotion now moves onto a family record. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -473,8 +473,9 @@ async def test_an_idea_links_to_its_topic_and_its_reads_name_the_rules(family, t
|
||||
idea = await family_svc.get_idea(family["owner"], family["note"])
|
||||
assert idea["topic"]["rulebook_id"] == topics["rulebook"]
|
||||
assert len(idea["topic"]["rules"]) == 2
|
||||
[listed] = [i for i in await family_svc.list_ideas(family["owner"])
|
||||
if i["note_id"] == family["note"]]
|
||||
# Promotion lifted the idea onto its family record.
|
||||
key = await family_svc.idea_key(family["note"])
|
||||
[listed] = [i for i in await family_svc.list_ideas(family["owner"]) if i["note_id"] == key]
|
||||
assert listed["topic"] == {"id": topics["norms"], "title": "distribution",
|
||||
"rulebook_id": topics["rulebook"]}
|
||||
|
||||
|
||||
@@ -31,6 +31,8 @@ NEEDS_NO_CALLER = {
|
||||
"design_systems": {},
|
||||
"family": {
|
||||
"next_version": "numbers a canon version inside a write that has checked the caller",
|
||||
"idea_key": "translates an id the caller passed to the id its idea is kept under; "
|
||||
"every caller checks access on the result next",
|
||||
},
|
||||
"family_adoption": {
|
||||
"family_reference_ids": "the coverage refresh's mechanical read for a project",
|
||||
|
||||
Reference in New Issue
Block a user