MerrimanInd / MerrimanInd/drawpyo

Cannot change a Page name after instantiation

Open
#132 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
412
Forks
48
PR merge metrics
No merged PRs in 30d

Description

I wanted to set the page name, and right now TreeDiagram instantiates its Page without name so it's a change after the fact.

I can set page.name but it doesn't reflect in the generated drawio, because it actually needs to be set in the diagram.

The logical thing is to create a property with setter that reflects the diagram, similar to a lot of other properties around the library.

I have a branch already with the fix + new test.

Contributor guide

Open the contributing guide

Research direction

Start at TreeDiagram, where the Page is instantiated without a name, and compare its name handling with the library's other properties. Verify that changing page.name is reflected in the generated Draw.io output, then run the new test mentioned in the issue to confirm the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.