Repository navigation
API and Python: four members for the elements of a Problem (#1546, pull request 2 of 3) - #1718
Merged
Merged
Conversation
AddElementToProblem, RemoveElementFromProblem, GetElementsOnNoBeat and MoveBeatElement, each on IStoryCADAPI and StoryCADApi as a kernel function. Each calls the OutlineService method that pull request 1 added. GetElementsOnNoBeat leaves out an element that is in the trash. The help text of ApplyBeatSheetToProblem and LoadBeatSheet says that the elements of the old beats stay in the Problem, on no beat. The Python bindings get the four functions, a test for each, and their lines in the docs page. Tests: 8 new tests in StoryCADAPITests. The suite has 2,543 tests: 2,527 pass, 14 are skipped, and CheckDotEnvFile and CheckDoppler fail because the worktree has no .env file. pytest: 66 passed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
terrycox
approved these changes
Nov 29, 2026
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.
Issue: #1546
Design: https://github.com/storybuilder-org/storybuilder-miscellaneous/blob/november-2026-filing/devdocs/issue-1546-design.md
This is the StoryCAD half of pull request 2 of the 3 that the design gives for issue 1546 (parts 15.2 and 15.4, tasks 15 and 17). The other half, the MCP tools of part 15.3 and task 16, is a pull request in the repo
StoryCADAPI. This pull request does not close the issue.What it does
IStoryCADAPIandStoryCADApi, each a kernel function:AddElementToProblem,RemoveElementFromProblem,GetElementsOnNoBeatandMoveBeatElement. Each calls theOutlineServicemethod that pull request 1 added.GetElementsOnNoBeatleaves out an element that is in the trash.ApplyBeatSheetToProblemandLoadBeatSheetsays that the elements of the old beats stay in the Problem, on no beat.add_element_to_problem,remove_element_from_problem,get_elements_on_no_beatandmove_beat_element, a test for each, and their lines indocs/For Developers/Python_Bindings.md.What was checked
CheckDotEnvFileandCheckDoppler, because the worktree has noStoryCADTests/.env. 8 tests are new, inStoryCADAPITests, and they include the two the design names:DeleteBeat_KeepsElementOnNoBeatandGetElement_Problem_HasStructureElements.pyteston the Python bindings, against a publish ofStoryCADLibfornet10.0-desktop: 66 passed.StoryCADMcp.Tests.Where the code goes beyond the words of the design
AddElementToProblem_UnknownProblem_ReturnsFailureandMoveBeatElement_IndexOutOfRange_ReturnsFailure.get_elements_on_no_beatin Python returns a list ofElementSummary, the class the bindings already have. The design does not give the type.🤖 Generated with Claude Code