Repository navigation
client.lists: rows like any read, no walk to List, and its documentation corrected - #71
Merged
Merged
Conversation
…ir own definition, and its documentation corrected The endpoint sends every value as a string and alpha.12 passed that on, so Order was "115" here and 115 from client.query. Values are now translated by the list type's schema. A list type is recognised by the attributes it inherits from List, with no walk up its ancestors. The type loads and the requests go out together. The type-and-scope form takes more context, and a new regression suite is refused without its plan, since the server answers "no values" when it cannot work its rule out. team: null asks as if on no team. Corrected: a team's own values replace the scheme's for any list, not for Status only; the scheme decides for some asset types and not for others; the team step needs team workspaces; sort is one attribute. Each proved live on fixtures of the suite's own. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rgicmffzzwb2CzyeDSEhBm
Only the Status of a story or defect, against its team. Any other list value, an inactive status and one outside the scheme are accepted; a move clears a status that is not valid in the new place. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rgicmffzzwb2CzyeDSEhBm
…s, not a contract Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rgicmffzzwb2CzyeDSEhBm
… from Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rgicmffzzwb2CzyeDSEhBm
…es endpoint Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rgicmffzzwb2CzyeDSEhBm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Up to date with
master, which now has the two pull requests this was stacked on; the diff is this change alone. Towards alpha.13; the version is not bumped.A review of what alpha.12 shipped for
client.listsfound one real fault, three wrong statements in its documentation, and one hazard. Each correction below was then proved against an instance.Breaking
Orderwas"115"fromclient.listsand115fromclient.query, against the rule that a row has one shape on every read (spec 000 §2). Now a number is a number, a Boolean a Boolean, a relation a Ref ornull. A multi-value relation can no longer be selected; a date is still refused, because the endpoint writes it in the server's culture format. Migration: drop aNumber(row.Order)or a comparison with"True"./wire'svalidValuestakessortas one attribute name, not a list. The endpoint sorts by one attribute, ascending, and ignores without an error a name the list type does not have.Fixed
List, which cost a type load and made a test serving captured meta.v1 types serveStatusas well asStoryStatus. Each inherited attribute already names the ancestor that defines it, so a type with an attribute inherited fromListis a list type. A unit test checks that mark against every type in the metamodel, both ways. It was also checked against four product releases' metamodels, custom dropdowns included: no list type sits more than two levels belowList, and every one carries the mark.client.listsalways sends the project. For a new regression suite, whose rule goes through its regression plan, it now refuses the call withoutcontext: { RegressionPlan }instead of answering[]. (The product gives a regression suite no list attribute of its own; this matters for a custom dropdown on one.)Added
contexton the type-and-scope form: any attribute of the asset to be.team: nullon the asset form: as if the asset were on no team.Removed from the documentation
The README and the service's header no longer discuss an instance without the endpoint or the absence of a fallback. alpha.12's published changelog entry is left as it was written.
A decision for the reviewer
Sending the valid-values requests together is my choice. alpha.12 sent them in series, on the argument that the testing instance is shared; that is a poor reason for how a published client behaves, and every other read here already goes out in parallel. It is one line to reverse.
Verification
npm run verifyat the head commit: 297 unit tests in 37 files, all passing.team: nullreturns the scheme's values;Orderfromclient.listsequalsOrderfromclient.queryfor the same status, as a number;sortthe list type lacks is ignored;Violation'PrimaryWorkitemCannotHaveInvalidStatus;master; those add the two write-side tests (run on their own, passing) and wording.Consumers
Two consumers adopted alpha.12's string values. Both checked this change against their code and report nothing breaks: neither reads
Orderfrom aclient.listsrow. Both will drop theStatusandListtypes from their captured metadata fixtures, which are no longer asked for.🤖 Generated with Claude Code
https://claude.ai/code/session_01Rgicmffzzwb2CzyeDSEhBm