René's URL Explorer Experiment


Title: Bonsai: make renames undoable (#5633) by petruconduraru · Pull Request #8446 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: Bonsai: make renames undoable (#5633) by petruconduraru · Pull Request #8446 · IfcOpenShell/IfcOpenShell

X Title: Bonsai: make renames undoable (#5633) by petruconduraru · Pull Request #8446 · IfcOpenShell/IfcOpenShell

Description: Closes #5633. Renames of IFC linked objects and materials are applied in name_callback, which runs from a msgbus notification (objects) or a property update (materials), outside execute_ifc_operator. Only edits inside that operator wrapper are bracketed by begin_transaction / end_transaction and pushed to the undo history with a fresh last_transaction key. Because the rename runs outside it, the Name write was never recorded in a transaction and never advanced last_transaction. Blender's undo_post handler rolls the IFC back off a mismatch between IfcStore.last_transaction and the Blender restored props.last_transaction, so with neither changed, undo had nothing to revert and the IFC name stayed changed while the Blender object name reverted. This adds IfcStore.track_transaction_outside_operator, a context manager that brackets an edit made in a callback the same way the operator wrapper does: it opens an ifc_file transaction, registers the standard undo and redo callbacks in the history, and advances last_transaction. It no-ops when there is no file or when already inside an operator transaction, so nested edits just join the ongoing transaction. name_callback wraps its IFC writes (material Name, object Name, grid axis AxisTag) in it; the Blender side writes stay outside and are handled by Blender's own undo. Verified live in headless Blender 5.1.2 through the real undo_post / redo_post handlers: before, undoing an object rename left ifc.Name unchanged; after, undo restores the previous name for both objects and materials and redo re-applies it. ifc_file.transaction is None after the callback, and a subsequent real operator runs without tripping the override transaction assert. Note: the same non transactional pattern exists in a few other update callbacks; this fixes the object and material rename cases from the report and provides the reusable helper the others can adopt. Generated with the assistance of an AI coding tool.

Open Graph Description: Closes #5633. Renames of IFC linked objects and materials are applied in name_callback, which runs from a msgbus notification (objects) or a property update (materials), outside execute_ifc_operato...

X Description: Closes #5633. Renames of IFC linked objects and materials are applied in name_callback, which runs from a msgbus notification (objects) or a property update (materials), outside execute_ifc_operato...

Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/pull/8446

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:4503fced-47f6-1047-f630-f709c998039e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idACE4:1C82F:5603C:70E8D:6B04C4DD
html-safe-nonce6599a6858535b37c2823357ac916f2d2fabcdd63846720b52f7093785222d0b8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0U0OjFDODJGOjU2MDNDOjcwRThEOjZCMDRDNEREIiwidmlzaXRvcl9pZCI6Ijg5NTk0MDg4Njc2NzEwNjU4MjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca664d1aa00d6f052a3937432fbd8453d87114b03c02f83e327698be37cc3b1d1
hovercard-subject-tagpull_request:4027566871
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files
twitter:imagehttps://avatars.githubusercontent.com/u/139251053?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/139251053?s=400&v=4
og:image:altCloses #5633. Renames of IFC linked objects and materials are applied in name_callback, which runs from a msgbus notification (objects) or a property update (materials), outside execute_ifc_operato...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git
octolytics-dimension-user_id13692563
octolytics-dimension-user_loginIfcOpenShell
octolytics-dimension-repository_id40473201
octolytics-dimension-repository_nwoIfcOpenShell/IfcOpenShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id40473201
octolytics-dimension-repository_network_root_nwoIfcOpenShell/IfcOpenShell
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fpull%2F8446%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fpull%2F8446%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=IfcOpenShell%2FIfcOpenShell
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files
IfcOpenShellhttps://github.com/IfcOpenShell
IfcOpenShellhttps://github.com/IfcOpenShell/IfcOpenShell
Codehttps://github.com/IfcOpenShell/IfcOpenShell
Issues1.2k (1.2k)https://github.com/IfcOpenShell/IfcOpenShell/issues
Pull requests938 (938)https://github.com/IfcOpenShell/IfcOpenShell/pulls
Discussionshttps://github.com/IfcOpenShell/IfcOpenShell/discussions
Actionshttps://github.com/IfcOpenShell/IfcOpenShell/actions
Projectshttps://github.com/IfcOpenShell/IfcOpenShell/projects
Wikihttps://github.com/IfcOpenShell/IfcOpenShell/wiki
Security and qualityhttps://github.com/IfcOpenShell/IfcOpenShell/security
Insightshttps://github.com/IfcOpenShell/IfcOpenShell/insights
Sign up for GitHub https://github.com/signup?return_to=%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2Fnew%2Fchoose
petruconduraruhttps://github.com/petruconduraru
IfcOpenShell:v0.9.0https://github.com/IfcOpenShell/IfcOpenShell/tree/v0.9.0
BIMvoice:fix-5633-rename-undohttps://github.com/BIMvoice/IfcOpenShell/tree/fix-5633-rename-undo
Conversation 1 https://github.com/IfcOpenShell/IfcOpenShell/pull/8446
Commits 4 https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/commits
Checks 6 https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/checks
Files changed https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files
Bonsai: make renames undoable (#5633) https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#top
Show all changes 4 commits https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files
e8423e1 Bonsai: make renames undoable (#5633) petruconduraru Jul 10, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/commits/e8423e1a67f67104bd2312a8d80d3a823069a3d9
23d6121 bonsai: extend rename-undo fix to property-update callbacks (#5633) petruconduraru Jul 16, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/commits/23d6121604e83d3294f8cce492e16ed392bc9a0f
36ba760 Merge origin/v0.9.0 into mig17/8446 petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/commits/36ba760d86188efefb47900feff1e02c1dfbc693
bacaddb Test undo of edits outside operators petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/commits/bacaddbb053350259cce1fc2aec9d3319b469791
Clear filters https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files
handler.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-391e30754ae37036bc6ee0bb741c142116b5af5a1286a4ca057875a01d14d038
ifc.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-ad25813352b8653f11e4530a9c16aa9938ebaeb1bb4139ec939b568729db7c50
prop.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-3f7ec540832fde988be219c9bce86cc76f5471f179dc0e0617c97b4f1283f884
prop.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-8e09e3397ce9fa448298f398d79905f9845a7bcc68637e9752131fa09c29a4c2
prop.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-97aa1f7339f4101c6793c827c55cb400dafeff10fb746248cf16da99c4232d3d
prop.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-421f9ca852bdbd6fc023aee17176182c8504f8bc1a8ee2bccef3573a960969a2
test_track_transaction_outside_operator.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-8dfc7c950c5104e00d0101b5f4a7556ae665bc438c54f34bc988faf3f0caa3e6
src/bonsai/bonsai/bim/handler.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-391e30754ae37036bc6ee0bb741c142116b5af5a1286a4ca057875a01d14d038
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/bacaddbb053350259cce1fc2aec9d3319b469791/src/bonsai/bonsai/bim/handler.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-391e30754ae37036bc6ee0bb741c142116b5af5a1286a4ca057875a01d14d038
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-391e30754ae37036bc6ee0bb741c142116b5af5a1286a4ca057875a01d14d038
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-391e30754ae37036bc6ee0bb741c142116b5af5a1286a4ca057875a01d14d038
src/bonsai/bonsai/bim/ifc.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-ad25813352b8653f11e4530a9c16aa9938ebaeb1bb4139ec939b568729db7c50
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/bacaddbb053350259cce1fc2aec9d3319b469791/src/bonsai/bonsai/bim/ifc.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-ad25813352b8653f11e4530a9c16aa9938ebaeb1bb4139ec939b568729db7c50
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-ad25813352b8653f11e4530a9c16aa9938ebaeb1bb4139ec939b568729db7c50
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-ad25813352b8653f11e4530a9c16aa9938ebaeb1bb4139ec939b568729db7c50
src/bonsai/bonsai/bim/module/drawing/prop.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-3f7ec540832fde988be219c9bce86cc76f5471f179dc0e0617c97b4f1283f884
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/bacaddbb053350259cce1fc2aec9d3319b469791/src/bonsai/bonsai/bim/module/drawing/prop.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-3f7ec540832fde988be219c9bce86cc76f5471f179dc0e0617c97b4f1283f884
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-3f7ec540832fde988be219c9bce86cc76f5471f179dc0e0617c97b4f1283f884
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-3f7ec540832fde988be219c9bce86cc76f5471f179dc0e0617c97b4f1283f884
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-3f7ec540832fde988be219c9bce86cc76f5471f179dc0e0617c97b4f1283f884
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-3f7ec540832fde988be219c9bce86cc76f5471f179dc0e0617c97b4f1283f884
src/bonsai/bonsai/bim/module/material/prop.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-8e09e3397ce9fa448298f398d79905f9845a7bcc68637e9752131fa09c29a4c2
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/bacaddbb053350259cce1fc2aec9d3319b469791/src/bonsai/bonsai/bim/module/material/prop.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-8e09e3397ce9fa448298f398d79905f9845a7bcc68637e9752131fa09c29a4c2
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-8e09e3397ce9fa448298f398d79905f9845a7bcc68637e9752131fa09c29a4c2
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-8e09e3397ce9fa448298f398d79905f9845a7bcc68637e9752131fa09c29a4c2
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-8e09e3397ce9fa448298f398d79905f9845a7bcc68637e9752131fa09c29a4c2
src/bonsai/bonsai/bim/module/profile/prop.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-97aa1f7339f4101c6793c827c55cb400dafeff10fb746248cf16da99c4232d3d
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/bacaddbb053350259cce1fc2aec9d3319b469791/src/bonsai/bonsai/bim/module/profile/prop.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-97aa1f7339f4101c6793c827c55cb400dafeff10fb746248cf16da99c4232d3d
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-97aa1f7339f4101c6793c827c55cb400dafeff10fb746248cf16da99c4232d3d
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-97aa1f7339f4101c6793c827c55cb400dafeff10fb746248cf16da99c4232d3d
src/bonsai/bonsai/bim/module/style/prop.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-421f9ca852bdbd6fc023aee17176182c8504f8bc1a8ee2bccef3573a960969a2
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/bacaddbb053350259cce1fc2aec9d3319b469791/src/bonsai/bonsai/bim/module/style/prop.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-421f9ca852bdbd6fc023aee17176182c8504f8bc1a8ee2bccef3573a960969a2
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-421f9ca852bdbd6fc023aee17176182c8504f8bc1a8ee2bccef3573a960969a2
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-421f9ca852bdbd6fc023aee17176182c8504f8bc1a8ee2bccef3573a960969a2
src/bonsai/test/bim/test_track_transaction_outside_operator.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files#diff-8dfc7c950c5104e00d0101b5f4a7556ae665bc438c54f34bc988faf3f0caa3e6
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/bacaddbb053350259cce1fc2aec9d3319b469791/src/bonsai/test/bim/test_track_transaction_outside_operator.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8446/{{ revealButtonHref }}
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8446/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.