René's URL Explorer Experiment


Title: bonsai: give resources their own fixed cost value field instead of borrowing Cost Schedules' (#5088) by petruconduraru · Pull Request #8622 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: bonsai: give resources their own fixed cost value field instead of borrowing Cost Schedules' (#5088) by petruconduraru · Pull Request #8622 · IfcOpenShell/IfcOpenShell

X Title: bonsai: give resources their own fixed cost value field instead of borrowing Cost Schedules' (#5088) by petruconduraru · Pull Request #8622 · IfcOpenShell/IfcOpenShell

Description: Fixes #5088. Root cause The Resources panel's "+" (add cost value) button reused the Cost Schedules module's shared operator (bim.add_cost_value), which reads its FIXED value from tool.Cost.get_cost_props().fixed_cost_value, a Scene property that belongs entirely to the Cost Schedules module. The Resources module never had its own fixed_cost_value field or an input widget to set it, so every "new" fixed cost value on a resource silently inherited whatever number was last left in the unrelated Cost Schedules panel (or a stale leftover from adding a previous resource's cost value), not what the user just tried to set. The individual cost-value edit box itself was reading live data correctly; the bug was specifically in creating a value with the wrong hidden source, which made every subsequent view of that value look stale, prompting the delete-and-recreate workaround described in the issue. Cost Schedules avoids this because its own UI shows a fixed_cost_value input field right next to the type selector before "Add Value," round-tripping through its own props consistently, Resources just never got the same treatment. Fix Gave the Resource module its own copy of that pattern instead of borrowing Cost's: a resource-scoped fixed_cost_value property, a matching UI field shown when cost_types == "FIXED", and a new bim.add_resource_cost_value operator/core function/tool method mirroring the existing Cost module implementation, reading the resource's own props instead of Cost's. Verification Live-tested via real bpy.ops operator calls: with a stale value left in the Cost module's props (simulating prior use of Cost Schedules), adding a FIXED cost value to a fresh resource previously picked up that leaked value; after the fix it correctly uses the resource's own field, isolated from the Cost module. Also re-verified the existing edit/reopen flow still shows the correct current value with no regression. black --check --diff . and ruff check . pass on all changed files. Scope note The secondary ask (showing the cost value + unit directly in the resource summary list) wasn't included, it would need new per-row lookups across all resources' cost values plus formatting/unit-guessing UI work, not a small natural extension of this fix. Generated with the assistance of an AI coding tool.

Open Graph Description: Fixes #5088. Root cause The Resources panel's "+" (add cost value) button reused the Cost Schedules module's shared operator (bim.add_cost_value), which reads its FIXED value from...

X Description: Fixes #5088. Root cause The Resources panel's "+" (add cost value) button reused the Cost Schedules module's shared operator (bim.add_cost_value), which reads its ...

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

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:de97a532-9cd1-403a-5210-10254a46f710
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD95E:2054A4:35EA98:4530D4:6B04F4E9
html-safe-noncee8f97f57b391b97fad8b0c1e7aa815541ce548c8841c5a748d0cf99a78e2ae49
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTVFOjIwNTRBNDozNUVBOTg6NDUzMEQ0OjZCMDRGNEU5IiwidmlzaXRvcl9pZCI6IjM5MjY2MjQ0MTI3OTQ5NDI2OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac314aa0972692a185827a0aa8fc1f6f41f01256ff21d8c2a4f5f6a1b6d1e5db52
hovercard-subject-tagpull_request:4066311887
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/8622/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 #5088. Root cause The Resources panel's "+" (add cost value) button reused the Cost Schedules module's shared operator (bim.add_cost_value), which reads its FIXED value from...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None2c3971d6ab4be607cf9a26ac26ef0a7bfce380ec2ba14642e64028ad07a492b9
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
releaseb3f1d45dee14b3f87c64e9017a9c08d011561786
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fpull%2F8622%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%2F8622%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/8622/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8622/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 requests936 (936)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-5088-resource-cost-value-editorhttps://github.com/BIMvoice/IfcOpenShell/tree/fix-5088-resource-cost-value-editor
Conversation 0 https://github.com/IfcOpenShell/IfcOpenShell/pull/8622
Commits 3 https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/commits
Checks 6 https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/checks
Files changed https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files
bonsai: give resources their own fixed cost value field instead of borrowing Cost Schedules' (#5088) https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#top
Show all changes 3 commits https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files
fc2d5b5 bonsai: give resources their own fixed cost value field instead of bo… petruconduraru Jul 16, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/commits/fc2d5b5e2a436e37adade71359962575cbd4c40e
110555d Merge origin/v0.9.0 into mig16/8622 petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/commits/110555d4404e1c504c39ea76825581e5a9b64bee
c4db603 Test resource cost value attributes petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/commits/c4db60302466d914a7aff0c5608653af16a981c4
Clear filters https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files
__init__.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-df5e0f653177fc36403f3161d238094180572dc5d7fdcfee947677006a1772f6
operator.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-7423a51898cb80c44c948b06b46a45b1d9b967919f1769119c530bb32f1318ee
prop.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-68ea7d7362de56b5c6bdec9f3dd6caa558608910d3739ed372e63c2c0dce6c21
ui.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-9a2ad1104c9f6b45f8d910b3f15dafe726481fc8b493ab674e8b13f833446c0c
resource.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-e77f9b3eb69f527513741dc9f79243f086d5520bc42fe3658e28dd36ccec7297
tool.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-6eacf88cc3cec3ee43514c2e977b0b9b57c4b8ef113253a67cb7f296c274279b
resource.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-98f8ad2c9d892a49bd747ba9eb6d780d59eb9bcfd6a6489d0b211df4bb6a0ac2
test_resource.py https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-5a7e70e7da0a6eff63f47deb6e602d497541ce7e66d405a9c2ea63aa58822b61
src/bonsai/bonsai/bim/module/resource/__init__.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-df5e0f653177fc36403f3161d238094180572dc5d7fdcfee947677006a1772f6
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/c4db60302466d914a7aff0c5608653af16a981c4/src/bonsai/bonsai/bim/module/resource/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-df5e0f653177fc36403f3161d238094180572dc5d7fdcfee947677006a1772f6
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-df5e0f653177fc36403f3161d238094180572dc5d7fdcfee947677006a1772f6
src/bonsai/bonsai/bim/module/resource/operator.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-7423a51898cb80c44c948b06b46a45b1d9b967919f1769119c530bb32f1318ee
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/c4db60302466d914a7aff0c5608653af16a981c4/src/bonsai/bonsai/bim/module/resource/operator.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-7423a51898cb80c44c948b06b46a45b1d9b967919f1769119c530bb32f1318ee
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-7423a51898cb80c44c948b06b46a45b1d9b967919f1769119c530bb32f1318ee
src/bonsai/bonsai/bim/module/resource/prop.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-68ea7d7362de56b5c6bdec9f3dd6caa558608910d3739ed372e63c2c0dce6c21
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/c4db60302466d914a7aff0c5608653af16a981c4/src/bonsai/bonsai/bim/module/resource/prop.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-68ea7d7362de56b5c6bdec9f3dd6caa558608910d3739ed372e63c2c0dce6c21
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-68ea7d7362de56b5c6bdec9f3dd6caa558608910d3739ed372e63c2c0dce6c21
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-68ea7d7362de56b5c6bdec9f3dd6caa558608910d3739ed372e63c2c0dce6c21
src/bonsai/bonsai/bim/module/resource/ui.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-9a2ad1104c9f6b45f8d910b3f15dafe726481fc8b493ab674e8b13f833446c0c
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/c4db60302466d914a7aff0c5608653af16a981c4/src/bonsai/bonsai/bim/module/resource/ui.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-9a2ad1104c9f6b45f8d910b3f15dafe726481fc8b493ab674e8b13f833446c0c
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-9a2ad1104c9f6b45f8d910b3f15dafe726481fc8b493ab674e8b13f833446c0c
src/bonsai/bonsai/core/resource.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-e77f9b3eb69f527513741dc9f79243f086d5520bc42fe3658e28dd36ccec7297
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/c4db60302466d914a7aff0c5608653af16a981c4/src/bonsai/bonsai/core/resource.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-e77f9b3eb69f527513741dc9f79243f086d5520bc42fe3658e28dd36ccec7297
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-e77f9b3eb69f527513741dc9f79243f086d5520bc42fe3658e28dd36ccec7297
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-e77f9b3eb69f527513741dc9f79243f086d5520bc42fe3658e28dd36ccec7297
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-e77f9b3eb69f527513741dc9f79243f086d5520bc42fe3658e28dd36ccec7297
src/bonsai/bonsai/core/tool.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-6eacf88cc3cec3ee43514c2e977b0b9b57c4b8ef113253a67cb7f296c274279b
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/c4db60302466d914a7aff0c5608653af16a981c4/src/bonsai/bonsai/core/tool.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-6eacf88cc3cec3ee43514c2e977b0b9b57c4b8ef113253a67cb7f296c274279b
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-6eacf88cc3cec3ee43514c2e977b0b9b57c4b8ef113253a67cb7f296c274279b
src/bonsai/bonsai/tool/resource.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-98f8ad2c9d892a49bd747ba9eb6d780d59eb9bcfd6a6489d0b211df4bb6a0ac2
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/c4db60302466d914a7aff0c5608653af16a981c4/src/bonsai/bonsai/tool/resource.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-98f8ad2c9d892a49bd747ba9eb6d780d59eb9bcfd6a6489d0b211df4bb6a0ac2
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-98f8ad2c9d892a49bd747ba9eb6d780d59eb9bcfd6a6489d0b211df4bb6a0ac2
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-98f8ad2c9d892a49bd747ba9eb6d780d59eb9bcfd6a6489d0b211df4bb6a0ac2
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-98f8ad2c9d892a49bd747ba9eb6d780d59eb9bcfd6a6489d0b211df4bb6a0ac2
src/bonsai/test/tool/test_resource.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/8622/files#diff-5a7e70e7da0a6eff63f47deb6e602d497541ce7e66d405a9c2ea63aa58822b61
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/c4db60302466d914a7aff0c5608653af16a981c4/src/bonsai/test/tool/test_resource.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/8622/{{ revealButtonHref }}
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/8622/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.