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] pivot: add suggestion message to broken pivot formulas #4956

Closed

Conversation

LucasLefevre
Copy link
Collaborator

Description:

Since the pivot insertion is inserting static formulas, if the user changes the groups, the static formulas are no longer correct and are in error. The user might not understand what's happening and how to fix the issue.

This commit adds more info to the error message to help the user.

A similar issue happens with measures: when adding a new measure, nothing happens in the grid => no feedback.

Technical note: instead of changing the existing message, I added a second one, which I concatenate to the existing one. The reason is to avoid breaking existing translations in a stable version.

Task: 4169586

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 Sep 6, 2024

Pull request status dashboard

@LucasLefevre LucasLefevre force-pushed the saas-17.4-broken-pivot-suggestion-lul branch from b333199 to a967497 Compare September 11, 2024 11:05
Copy link
Contributor

@hokolomopo hokolomopo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥳

@LucasLefevre LucasLefevre force-pushed the saas-17.4-broken-pivot-suggestion-lul branch from a967497 to 75fff9d Compare September 16, 2024 12:21
@LucasLefevre
Copy link
Collaborator Author

oups, forgot to push the latest version 😅

Since the pivot insertion is inserting static formulas, if the user changes
the groups, the static formulas are no longer correct and are in error.
The user might not understand what's happening and how to fix the issue.

This commit adds more info to the formula error message to help the user.
And a notification when updating the pivot if no dynamic pivot is
visible to the user.

Technical note: instead of changing the existing message, I added a second
one, which I concatenate to the existing one. The reason is to avoid
breaking existing translations in a stable version.

Task: 4169586
@LucasLefevre LucasLefevre force-pushed the saas-17.4-broken-pivot-suggestion-lul branch from 75fff9d to 714ed0b Compare September 17, 2024 10:58
Copy link
Contributor

@hokolomopo hokolomopo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@robodoo robodoo closed this in 7407b16 Sep 23, 2024
@fw-bot fw-bot deleted the saas-17.4-broken-pivot-suggestion-lul branch October 7, 2024 11:04
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