Skip to content

Refresh filter tree facade when cell/property filters change#14073

Draft
magnesj wants to merge 3 commits into
OPM:devfrom
magnesj:filter-facade-refresh
Draft

Refresh filter tree facade when cell/property filters change#14073
magnesj wants to merge 3 commits into
OPM:devfrom
magnesj:filter-facade-refresh

Conversation

@magnesj
Copy link
Copy Markdown
Member

@magnesj magnesj commented May 28, 2026

Summary

  • Cherry-picked from grid-ensemble-gui-cleanup: select newly created cell filter in the tree and refresh the per-view RimFilterInViewCollection facade.
  • Add public RimEclipseView::filterInViewCollection() accessor (was only the private field on dev).
  • Refresh the facade when an Eclipse property filter is added (addPropertyFilter), inserted into a combined filter, inserted at index, removed via undo, linked to the cell result, or created by the well-allocation "Show Contributing Wells" flow.
  • RicPasteCellFiltersFeature now uses the shared RicCellFilterFeatureTools::selectAndRefreshFilterTree helper instead of duplicating the select-and-refresh logic.

magnesj added 3 commits May 28, 2026 11:13
…erty filter changes

Add public RimEclipseView::filterInViewCollection() accessor and call updateConnectedEditors()
on it whenever an Eclipse property filter is added, inserted, removed (undo), linked to the
cell result, or created by the well allocation flow. Also switch RicPasteCellFiltersFeature
to the shared selectAndRefreshFilterTree helper.
@magnesj
Copy link
Copy Markdown
Member Author

magnesj commented May 28, 2026

@kriben Discovered several update issues after the change from individual filter collections to one single filter collection. Not sure how to fix this best, maybe forward propertyFilterCollection->updateConnectedEditors() to filterInViewCollection?

This draft PR does not look good.

Created an issue to track this bug: #14074

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant