Answer prose round 1: 0 🔴, 8 🟡 (0 misread); reword the README paragraph, help, docstrings and messages

This commit is contained in:
2026-11-14 21:27:23 +01:00
parent b514dcfe85
commit 68808e7eee
6 changed files with 29 additions and 28 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
"""A project's goals and audience kept as the description of one Jira Cloud epic, read over Jira's REST API with the plan store's credentials and the adf-codec shim.
"""A project's goals and audience kept as the description of one Jira Cloud epic, read over Jira's REST API with the credentials of the config's env-file, and converted by the adf-codec shim.
The store only reads: a write is a Failure, so a tool that edits the goals file says to edit the epic in Jira."""
The store only reads: a write, such as `project-record save goals-and-audience`, fails, saying to edit the epic in Jira."""
import dataclasses
import pathlib
@@ -39,7 +39,7 @@ class EpicDescription:
return Failure(f"cannot read the epic {key}: {answer.reason}")
fields = answer.get("fields") if isinstance(answer, dict) else None
if not isinstance(fields, dict) or "description" not in fields or not isinstance(fields["description"], dict | None):
return Failure(f"the epic {key} is not in the shape Jira Cloud's REST API version 3 documents: it holds no description field of a document or null")
return Failure(f"the epic {key} is not in the shape Jira Cloud's REST API version 3 documents: its description field is missing, or neither a document nor null")
if fields["description"] is None:
return ""
texts = self.to_markdown([fields["description"]])
+2 -2
View File
@@ -1,6 +1,6 @@
"""The one way a tool reads or writes a project's records: through the store its config names for each.
Each record has its own setting in the config, so a project may keep one record in its wiki and another as a file. The setting's value names the backend. A path names a markdown file, the only backend of a record so far; the goals file may also be a Jira epic's description, which `goals_store` reads."""
Each record has its own setting in the config, so a project may keep one record in its wiki and another as a file. The setting's value names the backend. A path names a markdown file, the only backend of a record so far; the goals file may also be a Jira epic's description, which `goals_store` picks."""
import dataclasses
import pathlib
import typing
@@ -69,7 +69,7 @@ def store(config: ProjectConfig, record: str) -> RecordStore:
def goals_store(config: ProjectConfig) -> RecordStore:
"""The store config names for the goals file, which holds ## Goals and ## Audience: a markdown file, or the description of a Jira epic, which only reads."""
"""The store config names for the goals file, which holds ## Goals and ## Audience: a markdown file, or a Jira epic's description, which the store only reads."""
if config.goals_epic is None:
return FileStore(config.paths["goals-and-audience"], config.tracked("goals-and-audience"))
# Imported here, since the Jira store builds on plan_store, which builds on this module.