Skip to content

Conversation

@hokolomopo
Copy link
Contributor

[FIX] pivot: add invalid indicator for wrong calculated measure

This commit adds an invalid indicator in the standalone composer of
the calculated measure if the formula is invalid.

Note that it's only in error if the compilation is invalid, we cannot
evaluate there as it will be different for each row/col of the pivot.

[FIX] standalone composer: localize content

The content of the standalone composer was not localized.

[IMP] tests: add additional jest matchers

This commit backports the toHaveClass and toHaveAttribute matchers.

Task: 4724069

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

This commit backports the `toHaveClass` and `toHaveAttribute` matchers.

Task: 4724069
The content of the standalone composer was not localized.

Task: 4724069
This commit adds an `invalid` indicator in the standalone composer of
the calculated measure if the formula is invalid.

Note that it's only in error if the compilation is invalid, we cannot
evaluate there as it will be different for each row/col of the pivot.

Task: 4724069
@robodoo
Copy link
Collaborator

robodoo commented Apr 17, 2025

Pull request status dashboard

composerContent="measure.computedBy.formula"
defaultRangeSheetId="measure.computedBy.sheetId"
contextualAutocomplete="getMeasureAutocomplete()"
invalid="isCalculatedMeasureInvalid"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'll let francois decide but it feels like the simple "o-invalid" doesn't draw enough attention

Copy link
Collaborator

@LucasLefevre LucasLefevre left a comment

Choose a reason for hiding this comment

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

robodoo r+ rebase-ff

@robodoo
Copy link
Collaborator

robodoo commented May 16, 2025

Merge method set to rebase and fast-forward.

robodoo pushed a commit that referenced this pull request May 16, 2025
This commit backports the `toHaveClass` and `toHaveAttribute` matchers.

Task: 4724069
Part-of: #6127
Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
robodoo pushed a commit that referenced this pull request May 16, 2025
The content of the standalone composer was not localized.

Task: 4724069
Part-of: #6127
Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
@robodoo robodoo closed this in 85faffb May 16, 2025
@fw-bot fw-bot deleted the 18.0-fix-standalone-composer-locale-adrm branch May 23, 2025 07:40
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.

4 participants