Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FW][FIX] FilterEvaluationPlugin: insert/remove row on data filter header #3159

Conversation

fw-bot
Copy link
Collaborator

@fw-bot fw-bot commented Nov 14, 2023

Description:

This PR includes two distinct commits that address issues related to the handling of data filter headers in our SheetPlugin and FilterEvaluationPlugin.

Commit 1: [FIX] FilterEvaluationPlugin: insert/remove row on data filter header

  • Previously, when inserting a row above or below a data filter header, hidden rows inside the data filter were not being updated. This caused a state inconsistency issue between the data filter header and the data filter values.

  • This commit address the problem by ensuring that hidden rows inside the data filter header are correctly updated when rows are inserted above or below the data filter header.

  • Another issue occurred when removing a row above the data filter header while certain rows were filtered. This led to a mismatch in the data filter state, revealing hidden rows.

  • This commit fixes this problem by updating the handling of hidden rows inside the data filter header during row removal.

Commit 2: [FIX] SheetPlugin: removing row with data filter header

  • Previously, removing rows that included the filter header failed to remove the associated data filter tables.
  • This commit addresses the issue by ensuring the data filter tables is also removed when rows with the filter header are deleted.

Task: : 3546012

review checklist

  • feature is organized in plugin, or UI components
  • support of duplicate sheet (deep copy)
  • in model/core: ranges are Range object, and can be adapted (adaptRanges)
  • in model/UI: ranges are strings (to show the user)
  • undo-able commands (uses this.history.update)
  • multiuser-able commands (has inverse commands and transformations where needed)
  • new/updated/removed commands are documented
  • exportable in excel
  • translations (_lt("qmsdf %s", abc))
  • unit tested
  • clean commented code
  • track breaking changes
  • doc is rebuild (npm run doc)
  • status is correct in Odoo

Forward-Port-Of: #3113
Forward-Port-Of: #3031

This commit addresses two issues in the FilterEvaluationPlugin:

1. Previously, when inserting a row above or below a data filter header, hidden
rows inside the data filter were not being updated, causing a state inconsistency
issue. This commit ensures that hidden rows inside the data filter header are
correctly updated when rows are inserted above or below the header.

2. Another issue occurred when removing a row above the data filter header while
certain rows were filtered. This led to a mismatch in the data filter state,
revealing hidden rows. This commit fixes this problem by updating the handling
of hidden rows inside the data filter header during row removal.

Task: 3546012
X-original-commit: 841da08
Previously, removing rows that included the filter header failed to remove
the associated data filter tables.

This commit addresses the issue by ensuring the data filter tables is also
removed when rows with the filter header are deleted.

Task: 3546012
X-original-commit: d15825d
@robodoo
Copy link
Collaborator

robodoo commented Nov 14, 2023

@fw-bot
Copy link
Collaborator Author

fw-bot commented Nov 14, 2023

This PR targets saas-16.2 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

robodoo pushed a commit that referenced this pull request Nov 16, 2023
This commit addresses two issues in the FilterEvaluationPlugin:

1. Previously, when inserting a row above or below a data filter header, hidden
rows inside the data filter were not being updated, causing a state inconsistency
issue. This commit ensures that hidden rows inside the data filter header are
correctly updated when rows are inserted above or below the header.

2. Another issue occurred when removing a row above the data filter header while
certain rows were filtered. This led to a mismatch in the data filter state,
revealing hidden rows. This commit fixes this problem by updating the handling
of hidden rows inside the data filter header during row removal.

Task: 3546012
X-original-commit: 841da08
Part-of: #3159
robodoo pushed a commit that referenced this pull request Nov 16, 2023
Previously, removing rows that included the filter header failed to remove
the associated data filter tables.

This commit addresses the issue by ensuring the data filter tables is also
removed when rows with the filter header are deleted.

closes #3159

Task: 3546012
X-original-commit: d15825d
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
Signed-off-by: Dhrutik Patel (dhrp) <dhrp@odoo.com>
@robodoo robodoo closed this Nov 16, 2023
@fw-bot fw-bot deleted the saas-16.2-16.0-fix-insert-row-data-filter-header-dhrp-jp1q-fw branch November 30, 2023 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants