Skip to content

feat(actions)!: declare the effort columns, and settle task vs action - #5

Merged
baraline merged 1 commit into
mainfrom
release/0.3.0
Sep 2, 2026
Merged

baraline merged 1 commit into
mainfrom
release/0.3.0

Conversation

@baraline

@baraline baraline commented Sep 2, 2026

Copy link
Copy Markdown
Owner

BREAKING: ELAPSED_TIME, TIME_COST, CONTRACTUAL_COST, START_DATE_UT and END_DATE_UT move from extra="allow" extras to declared fields on Action. action.ELAPSED_TIME now raises AttributeError (use action.elapsed_time), the keys leave model_extra, and a by-alias dump yields int/Decimal/datetime rather than str. A dependant pinned >=0.2.0,<0.3 must widen deliberately, which is the point: the retyping can change an answer silently rather than raise.

The "" sentinel and "0" stay different answers -- None for "", 0 and Decimal("0.00") for the zeroes -- because collapsing them destroys the only signal saying whether a record tracks effort at all. Costs parse from the API's decimal comma into exact Decimals; a grouping separator or three-or-more fraction digits is refused rather than guessed at, since '1.234,56' and '1,234.56' are the same amount under opposite conventions. Magnitude is not a trigger. None on these columns is ambiguous -- the default list_actions row omits all five, so None there means "not projected", not "does not apply".

Adds Action.is_workflow_generated (WORKFLOW_ID set; clean on 1500/1500 measured rows) and deliberately NO is_task(). No column examined says which route created a record, and the effort-shape heuristic is refuted in both directions: 39 of 49 public comments carried a non-empty ELAPSED_TIME, one with a real TIME_COST, while 173 workflow rows carried an empty one. Which action types count as conversation is per-deployment policy and stays with the caller.

Records as tier 2, on two 2025.3 deployments, that /requests/{rfc_number}/tasks is POST-only with no task read route under any spelling -- so create_task returns an Action and there is deliberately no list_tasks. Side finding, tier 4: ACTION_LABEL_* is the workflow STEP's label, not the action type's name.

Version 0.3.0. Corrects the CHANGELOG compare links, which pointed at a v0.2.0 tag that does not exist, and docs/publishing.rst, which ordered a v-prefixed tag the repository has never used. The tag defines a version; the prose is corrected to match the tags.

A GLPI comment corresponds to an EasyVista TASK, not an action. Actions carry
effort and cost, so a timeline mirrored without that distinction imports
time-tracking and workflow rows as conversation. This makes the distinction
expressible on the read side.

BREAKING: ELAPSED_TIME, TIME_COST, CONTRACTUAL_COST, START_DATE_UT and
END_DATE_UT move from extra="allow" extras to declared fields on Action.
action.ELAPSED_TIME now raises AttributeError (use action.elapsed_time), the
keys leave model_extra, and a by-alias dump yields int/Decimal/datetime rather
than str. A dependant pinned >=0.2.0,<0.3 must widen deliberately, which is the
point: the retyping can change an answer silently rather than raise.

The "" sentinel and "0" stay different answers -- None for "", 0 and
Decimal("0.00") for the zeroes -- because collapsing them destroys the only
signal saying whether a record tracks effort at all. Costs parse from the API's
decimal comma into exact Decimals; a grouping separator or three-or-more
fraction digits is refused rather than guessed at, since '1.234,56' and
'1,234.56' are the same amount under opposite conventions. Magnitude is not a
trigger. None on these columns is ambiguous -- the default list_actions row
omits all five, so None there means "not projected", not "does not apply".

Adds Action.is_workflow_generated (WORKFLOW_ID set; clean on 1500/1500 measured
rows) and deliberately NO is_task(). No column examined says which route created
a record, and the effort-shape heuristic is refuted in both directions: 39 of 49
public comments carried a non-empty ELAPSED_TIME, one with a real TIME_COST,
while 173 workflow rows carried an empty one. Which action types count as
conversation is per-deployment policy and stays with the caller.

Records as tier 2, on two 2025.3 deployments, that /requests/{rfc_number}/tasks
is POST-only with no task read route under any spelling -- so create_task
returns an Action and there is deliberately no list_tasks. Side finding, tier 4:
ACTION_LABEL_* is the workflow STEP's label, not the action type's name.

Also adds scripts/tests/test_no_private_instance_identifiers.py. Preparing this
release put a real preprod hostname into docs/vendor-api-reference.md --
tracked, public, and shipped in the sdist -- with all five gates passing,
because none of them reads prose. Both a push and a PyPI upload are
irreversible, so the check is now mechanical. It stores SHA-256 digests rather
than a plaintext needle list: a grep guard must contain its needles, and the
first draft of this one published the hostname it existed to protect, in a
module exempted from its own check. With digests it needs no exemption and
scans itself.

Version 0.3.0. Corrects the CHANGELOG compare links, which pointed at a v0.2.0
tag that does not exist, and docs/publishing.rst, which ordered a v-prefixed tag
the repository has never used. The tag defines a version; the prose is corrected
to match the tags.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@baraline
baraline merged commit 3f61679 into main Sep 2, 2026
7 checks passed
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 92.59259% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 98.86%. Comparing base (9df446f) to head (f7564f6).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
easyvista_python_client/models/common.py 87.50% 2 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #5      +/-   ##
==========================================
- Coverage   98.94%   98.86%   -0.09%     
==========================================
  Files          37       37              
  Lines        2091     2116      +25     
==========================================
+ Hits         2069     2092      +23     
- Misses         22       24       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants