feat(7835): what resembles the work but is not shown is named by id in one pointer line
CI & Build / Python lint (push) Successful in 3s
CI & Build / Plugin hooks (push) Successful in 13s
CI & Build / TypeScript typecheck (push) Successful in 35s
CI & Build / Python tests (push) Failing after 2m1s
CI & Build / integration (push) Successful in 2m20s
CI & Build / Build & push image (push) Skipped
CI & Build / Python lint (push) Successful in 3s
CI & Build / Plugin hooks (push) Successful in 13s
CI & Build / TypeScript typecheck (push) Successful in 35s
CI & Build / Python tests (push) Failing after 2m1s
CI & Build / integration (push) Successful in 2m20s
CI & Build / Build & push image (push) Skipped
A pointer before a payload:
- the notes arms fetch a few results past the menu; those that cleared
the floor but were held back by the gate, the band or the budget are
named by id per kind, with the call that opens each kind, in one line
("Also resembling this, not shown: ...") at the message and the write
path;
- they are recorded in the record ledger as `pointed`, so an open that
follows is counted apart from pushed lines;
- setting a task in progress returns records_in_area: the notes and open
issues tagged to the task's areas, by id (a work.start row in the
kind x moment table says which kinds; it answers in a tool reply, so it
is shown as unmeasured).
The static context says what a pointer line means. Plugin version minted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,7 @@ next; a closed one there, another project's and a plain task are
|
||||
left out, as is everything for a reader without access; and a path is
|
||||
matched literally."""
|
||||
import pytest
|
||||
from sqlalchemy import select
|
||||
|
||||
from grimoire.models import async_session
|
||||
from grimoire.models.note import Note
|
||||
@@ -78,3 +79,23 @@ async def test_the_limit_and_the_exclusions_hold():
|
||||
assert await record_links.issues_for_path(uid, 0, PATH, limit=5) == []
|
||||
# A reader who cannot read the project is shown none of its issues.
|
||||
assert await record_links.issues_for_path(stranger, pid, PATH, limit=5) == []
|
||||
|
||||
|
||||
async def test_a_tasks_areas_name_their_notes_and_open_issues_but_not_the_task_or_closed_work():
|
||||
uid, pid, ids, stranger = await _world()
|
||||
async with async_session() as s:
|
||||
area = (await s.execute(
|
||||
select(System.id).where(System.project_id == pid)
|
||||
)).scalar_one()
|
||||
task = Note(user_id=uid, project_id=pid, title="taking this up", status="in_progress",
|
||||
task_kind="work")
|
||||
note = Note(user_id=uid, project_id=pid, title="how locks work here", note_type="note")
|
||||
s.add_all([task, note])
|
||||
await s.flush()
|
||||
s.add_all(RecordSystem(note_id=n, system_id=area) for n in (task.id, note.id))
|
||||
await s.commit()
|
||||
task_id, note_id = task.id, note.id
|
||||
found = await record_links.area_records(uid, task_id, ["note", "task:issue"])
|
||||
assert found == {"note": [note_id], "task:issue": [ids["open_area"]]}
|
||||
assert await record_links.area_records(uid, task_id, ["note"]) == {"note": [note_id]}
|
||||
assert await record_links.area_records(stranger, task_id, ["note", "task:issue"]) == {}
|
||||
|
||||
Reference in New Issue
Block a user