Title: Incorrect filter behavior for multi-selected enumerated values · Issue #8129 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Incorrect filter behavior for multi-selected enumerated values · Issue #8129 · IfcOpenShell/IfcOpenShell
X Title: Incorrect filter behavior for multi-selected enumerated values · Issue #8129 · IfcOpenShell/IfcOpenShell
Description: Bug Description Filters for multi-selected enumerated property values behave counterintuitively for operators such as 'equal to', 'not equal to', 'contains', and 'does not contain'. Logic that works correctly when comparing strings seems...
Open Graph Description: Bug Description Filters for multi-selected enumerated property values behave counterintuitively for operators such as 'equal to', 'not equal to', 'contains', and 'does not contain'. Logic that work...
X Description: Bug Description Filters for multi-selected enumerated property values behave counterintuitively for operators such as 'equal to', 'not equal to', 'contains', and 'does n...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/8129
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect filter behavior for multi-selected enumerated values","articleBody":"### Bug Description\n\nFilters for multi-selected enumerated property values behave counterintuitively for operators such as 'equal to', 'not equal to', 'contains', and 'does not contain'. Logic that works correctly when comparing strings seems inappropriate when comparing enumerated types.\n\nMy IfcProject\nI have only one element in the project (IfcWall) with one property set and two enumerated values selected:\nWall01: Pset_ConcreteElementGeneral.CastingMethod = **['INSITU', 'PRINTED']**\n\n**equal to**\nFileter: `IfcWall, \"Pset_ConcreteElementGeneral\".\"CastingMethod\" = \"INSITU\"`\nFinds Wall01 – I think the result is misleading. It should be empty because the property contains that value, but is not equal to a single value.\n\n**not equal to**\nFilter: `IfcWall, \"Pset_ConcreteElementGeneral\".\"CastingMethod\" != \"INSITU\"`\nFinds Wall01 – I think this is OK, but the result is oddly the same for both '=' and '!='.\n\n**contains**\nFilter: `IfcWall, \"Pset_ConcreteElementGeneral\".\"CastingMethod\" *= \"INSITU\"`\nFinds Wall01 – I think this is correct. The list of values contains INSITU.\n\n**does not contain**\nFilter: `IfcWall, \"Pset_ConcreteElementGeneral\".\"CastingMethod\" !*= \"INSITU\"`\nFinds Wall01 – I think this is completely misleading.\n\n-\nI understand that enums—especially multi-selected ones—are an edge case, but filters support other modules across all schemas and with the implementation of IfcQuery, IfcEdit, IfcMCP, IfcChat and prompted operations, there could be many unexpected outcomes.\nI used ifc4x3 file, but problem applies to all schemas and all enumerated properties in psets.\n\nI issued similar problem #8100 with processing bool values, I think it is related, to some degree.\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\nos: Windows\nos_version: 10.0.26200\npython_version: 3.13.9\narchitecture: ('64bit', 'WindowsPE')\nmachine: AMD64\nprocessor: Intel64 Family 6 Model 140 Stepping 1, GenuineIntel\nblender_version: 5.1.2\nbonsai_version: 0.8.5\nbonsai_commit_hash: None\nbonsai_commit_date: None\nbonsai_git_branch: None\nlast_actions: (...)\nlast_error: None\nblend_file_path: Not saved\nblend_file_dirty: N/A\nifc_file_path: C:/Users/.../wall_props_filter2.ifc\nifc_is_dirty: True\nifc: wall_props_filter2.ifc\nschema: IFC4X3\npreprocessor_version: IfcOpenShell 0.8.5\noriginating_system: Bonsai 0.8.5\n```","author":{"url":"https://github.com/ppaawweeuu","@type":"Person","name":"ppaawweeuu"},"datePublished":"2026-05-30T22:48:25Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/8129"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3d020953-0288-6f1f-a103-6f7f07ba956a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AED4:154661:787078:A4B9F0:6B0479BD |
| html-safe-nonce | 6ef914ff2a2b4f25116b03a465b79e226b853535daf1af89d93a43d853822b2b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUQ0OjE1NDY2MTo3ODcwNzg6QTRCOUYwOjZCMDQ3OUJEIiwidmlzaXRvcl9pZCI6IjY2Njc1OTkzMTE5MDk3MTQzNjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2ae94824fb09cc4815f3f875a1791b595fb0426797ee5183207fc07c17b7905a |
| hovercard-subject-tag | issue:4555925378 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/8129/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b6f295a8472dd41e603d62cd850a4b189666c0c1911175d4f7a3ad477c495ac0/IfcOpenShell/IfcOpenShell/issues/8129 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b6f295a8472dd41e603d62cd850a4b189666c0c1911175d4f7a3ad477c495ac0/IfcOpenShell/IfcOpenShell/issues/8129 |
| og:image:alt | Bug Description Filters for multi-selected enumerated property values behave counterintuitively for operators such as 'equal to', 'not equal to', 'contains', and 'does not contain'. Logic that work... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ppaawweeuu |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9c099f1b85def81ca352464c276510dfef32deaf3c305404e65b8d270284a58b |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cf73f57448d52b3a7b619195e182b33d3b3454ca |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width