René's URL Explorer Experiment


Title: Bonsai: mark predefined property sets as read only in the pset editor by petruconduraru · Pull Request #8708 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: Bonsai: mark predefined property sets as read only in the pset editor by petruconduraru · Pull Request #8708 · IfcOpenShell/IfcOpenShell

X Title: Bonsai: mark predefined property sets as read only in the pset editor by petruconduraru · Pull Request #8708 · IfcOpenShell/IfcOpenShell

Description: Fixes #2438. The original 2022 report was a KeyError trying to edit IfcDoorPanelProperties. The code has changed since, but the underlying bug is still there today, just with a different symptom. EditPset._execute classifies any pset that is not literally IfcPropertySet/IfcMaterialProperties/IfcProfileProperties as a quantity set and routes it through ifcopenshell.api.pset.edit_qto, which assumes a fixed attribute index holds a Quantities list. For IfcDoorPanelProperties that index is actually PanelOperation, a plain enum string, so this either crashes with AttributeError iterating the string character by character, or silently overwrites PanelOperation with an empty list if it was unset, an invalid value per the schema. IfcPreDefinedPropertySet occurrences like IfcDoorPanelProperties and IfcDoorLiningProperties store their data as direct entity attributes, not a list of IfcProperty/IfcPhysicalQuantity entities, so the generic editor was never built to support them. Maintainer Moult's original position was that editing these was never implemented and is low priority since they're being phased out upstream in favor of normal psets, only viewing was ever intended. This makes the UI match that intent instead of offering an edit action that corrupts data: a new Pset.is_editable() classifier hides the Edit button for IfcPreDefinedPropertySet occurrences, and EditPset._execute gained a defense in depth guard that reports a warning and backs out cleanly if a non-editable pset ever reaches it anyway. Actual editing support for the panel/lining attributes themselves is a real, separate feature Moult explicitly deferred, not attempted here. Reproduced live in headless Blender 5.2: built a door type with an attached IfcDoorPanelProperties pset, drove the real bim.enable_pset_editing/bim.edit_pset operators, confirmed the crash on unmodified code and clean warned behavior with the fix, PanelOperation left untouched either way. Generated with the assistance of an AI coding tool.

Open Graph Description: Fixes #2438. The original 2022 report was a KeyError trying to edit IfcDoorPanelProperties. The code has changed since, but the underlying bug is still there today, just with a different symptom. E...

X Description: Fixes #2438. The original 2022 report was a KeyError trying to edit IfcDoorPanelProperties. The code has changed since, but the underlying bug is still there today, just with a different symptom. E...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

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:a56452aa-c782-cf87-c88e-4dbf72540ef1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9CF0:352B10:CB686E:115D0C1:6B054E25
html-safe-nonce7404abe5602d9997c28d45a5025dddfbf3ca059ea96ab0b275f5eaf68a42b7a2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0YwOjM1MkIxMDpDQjY4NkU6MTE1RDBDMTo2QjA1NEUyNSIsInZpc2l0b3JfaWQiOiI0OTUwMDM3OTUxNzU0MzU4MzA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac3d6a50b3e7677aadc1558e6ecc938b4a7955157edb5474d80c05d6468e470f76
hovercard-subject-tagpull_request:4077493122
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/8708/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:altFixes #2438. The original 2022 report was a KeyError trying to edit IfcDoorPanelProperties. The code has changed since, but the underlying bug is still there today, just with a different symptom. E...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b
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
release220e980097d94ce616d5d11fbd5316d208e3fc93
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fpull%2F8708%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%2F8708%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/8708/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8708/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 requests943 (943)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:bv-2438-door-panel-pset-edithttps://github.com/BIMvoice/IfcOpenShell/tree/bv-2438-door-panel-pset-edit
Conversation 0 https://github.com/IfcOpenShell/IfcOpenShell/pull/8708
Commits 4 https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/commits
Checks 6 https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/checks
Files changed https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files
Bonsai: mark predefined property sets as read only in the pset editor https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#top
Show all changes 4 commits https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files
b45d19d Bonsai: mark predefined property sets as read only in the pset editor petruconduraru Jul 17, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/commits/b45d19d605df7a2b601a8cf677f5938876188638
46fd110 Merge remote-tracking branch 'origin/v0.9.0' into mig23/8708 petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/commits/46fd110eae5e25b5397b4ec254a66a1072200fa4
24aab26 Shorten is_editable docstring petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/commits/24aab2662932c853ec9fe62842a10f3793eb7c22
0bd7035 Import ifcopenshell.guid in pset tool test petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/commits/0bd70353cd244026d0cb97751854f53496a910ed
Clear filters https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files
data.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-7310e101e6a3b25328a8a1302b21787e057df01908556cc6b35cf6c2bd749dda
operator.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-c45ae6f57b0df6746053a1abeb63563eb764b8a085d74c14c6cfbe3f60596909
ui.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-573ff3ec4f91d7618533af72d0cdb8b95ed6e166fa295ae10378b0813a8ccfe6
pset.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-c146f54c7a161fd00ea5b7eea1162da57b1363d77c0a3833df60fbcd8a945268
pset.feature https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-cc444dc00a2058064ad5187e2d1cf347031f8b66a396c32c55ad361937f10115
test_pset.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-bc58a827aa738420329fb68e5729a56215604fad4bb3e3494ed6e52769066aba
src/bonsai/bonsai/bim/module/pset/data.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-7310e101e6a3b25328a8a1302b21787e057df01908556cc6b35cf6c2bd749dda
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/0bd70353cd244026d0cb97751854f53496a910ed/src/bonsai/bonsai/bim/module/pset/data.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-7310e101e6a3b25328a8a1302b21787e057df01908556cc6b35cf6c2bd749dda
https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-7310e101e6a3b25328a8a1302b21787e057df01908556cc6b35cf6c2bd749dda
src/bonsai/bonsai/bim/module/pset/operator.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-c45ae6f57b0df6746053a1abeb63563eb764b8a085d74c14c6cfbe3f60596909
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/0bd70353cd244026d0cb97751854f53496a910ed/src/bonsai/bonsai/bim/module/pset/operator.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-c45ae6f57b0df6746053a1abeb63563eb764b8a085d74c14c6cfbe3f60596909
https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-c45ae6f57b0df6746053a1abeb63563eb764b8a085d74c14c6cfbe3f60596909
src/bonsai/bonsai/bim/module/pset/ui.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-573ff3ec4f91d7618533af72d0cdb8b95ed6e166fa295ae10378b0813a8ccfe6
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/0bd70353cd244026d0cb97751854f53496a910ed/src/bonsai/bonsai/bim/module/pset/ui.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-573ff3ec4f91d7618533af72d0cdb8b95ed6e166fa295ae10378b0813a8ccfe6
https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-573ff3ec4f91d7618533af72d0cdb8b95ed6e166fa295ae10378b0813a8ccfe6
src/bonsai/bonsai/tool/pset.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-c146f54c7a161fd00ea5b7eea1162da57b1363d77c0a3833df60fbcd8a945268
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/0bd70353cd244026d0cb97751854f53496a910ed/src/bonsai/bonsai/tool/pset.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-c146f54c7a161fd00ea5b7eea1162da57b1363d77c0a3833df60fbcd8a945268
https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-c146f54c7a161fd00ea5b7eea1162da57b1363d77c0a3833df60fbcd8a945268
src/bonsai/test/bim/feature/pset.featurehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-cc444dc00a2058064ad5187e2d1cf347031f8b66a396c32c55ad361937f10115
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/0bd70353cd244026d0cb97751854f53496a910ed/src/bonsai/test/bim/feature/pset.feature
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-cc444dc00a2058064ad5187e2d1cf347031f8b66a396c32c55ad361937f10115
https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-cc444dc00a2058064ad5187e2d1cf347031f8b66a396c32c55ad361937f10115
src/bonsai/test/tool/test_pset.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-bc58a827aa738420329fb68e5729a56215604fad4bb3e3494ed6e52769066aba
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/0bd70353cd244026d0cb97751854f53496a910ed/src/bonsai/test/tool/test_pset.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-bc58a827aa738420329fb68e5729a56215604fad4bb3e3494ed6e52769066aba
https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-bc58a827aa738420329fb68e5729a56215604fad4bb3e3494ed6e52769066aba
https://github.com/IfcOpenShell/IfcOpenShell/pull/8708/files#diff-bc58a827aa738420329fb68e5729a56215604fad4bb3e3494ed6e52769066aba
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8708/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.