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

[FIX] conditional format: huge revisions on copy/paste cf #6080

Closed
wants to merge 1 commit into from

Conversation

hokolomopo
Copy link
Contributor

@hokolomopo hokolomopo commented Apr 11, 2025

Description

When copy/pasting a conditional format, the revision had one ADD_CONDITIONAL_FORMAT command per copied cell. That lead to huge revisions if, for example, a whole column with a CF was copied.

Now the revision only has a single ADD_CONDITIONAL_FORMAT command per modified CF.

The exact same work was done for data validation rules.

Task: 4718522

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 (_t("qmsdf %s", abc))
  • unit tested
  • clean commented code
  • track breaking changes
  • doc is rebuild (npm run doc)
  • status is correct in Odoo

@robodoo
Copy link
Collaborator

robodoo commented Apr 11, 2025

Pull request status dashboard

@hokolomopo
Copy link
Contributor Author

@robodoo fw=no

@robodoo
Copy link
Collaborator

robodoo commented Apr 11, 2025

Disabled forward-porting.

@hokolomopo hokolomopo force-pushed the saas-17.4-fix-copy-paset-cf-adrm branch 2 times, most recently from ba41f8d to cd54719 Compare April 14, 2025 06:04
@VincentSchippefilt
Copy link
Collaborator

idem #6079 (comment)

@hokolomopo hokolomopo force-pushed the saas-17.4-fix-copy-paset-cf-adrm branch from cd54719 to 7309523 Compare April 14, 2025 07:58
@hokolomopo
Copy link
Contributor Author

@robodoo fw=default

forward to un-duplicate the range key in the ADD_DATA_VALIDATION_RULE command

@robodoo
Copy link
Collaborator

robodoo commented Apr 14, 2025

Waiting for CI to create followup forward-ports.

When copy/pasting a conditional format, the revision had one
ADD_CONDITIONAL_FORMAT command per copied cell. That lead to huge
revisions if, for example, a whole column with a CF was copied.

Now the revision only has a single ADD_CONDITIONAL_FORMAT command per
modified CF.

The exact same work was done for data validation rules.

Task: 4718522
@hokolomopo hokolomopo force-pushed the saas-17.4-fix-copy-paset-cf-adrm branch from 7309523 to c6ced14 Compare April 14, 2025 10:06
@VincentSchippefilt
Copy link
Collaborator

robodoo r+

robodoo pushed a commit that referenced this pull request Apr 14, 2025
When copy/pasting a conditional format, the revision had one
ADD_CONDITIONAL_FORMAT command per copied cell. That lead to huge
revisions if, for example, a whole column with a CF was copied.

Now the revision only has a single ADD_CONDITIONAL_FORMAT command per
modified CF.

The exact same work was done for data validation rules.

closes #6080

Task: 4718522
Signed-off-by: Vincent Schippefilt (vsc) <[email protected]>
@robodoo robodoo closed this Apr 14, 2025
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.

3 participants