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] Bump owl version #2258

Closed
wants to merge 2 commits into from
Closed

Conversation

fw-bot
Copy link
Collaborator

@fw-bot fw-bot commented Mar 22, 2023

Description:

this PR bumps the version of OWL in o-spreadshset to catch up with its counterpart in odoo: version 2.0.9
One major change (one could argue breaking) is that the property el of a Ref is now undefined once the component is no longer mounted. This change of behaviour highlighted several issues in our tests setup. Since several of them were addressed in PR #2045, it was decided to backport the said pull request in version 16.0 to ease the transition of owl versions.

Odoo task ID : TASK_ID

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: #2252

@robodoo
Copy link
Collaborator

robodoo commented Mar 22, 2023

@fw-bot
Copy link
Collaborator Author

fw-bot commented Mar 22, 2023

@rrahir @LucasLefevre cherrypicking of pull request #2252 failed.

stdout:

Auto-merging tests/components/__snapshots__/context_menu.test.ts.snap
CONFLICT (content): Merge conflict in tests/components/__snapshots__/context_menu.test.ts.snap
Auto-merging tests/components/autocomplete_dropdown.test.ts
CONFLICT (content): Merge conflict in tests/components/autocomplete_dropdown.test.ts
Auto-merging tests/components/autofill.test.ts
CONFLICT (content): Merge conflict in tests/components/autofill.test.ts
Auto-merging tests/components/bottom_bar.test.ts
CONFLICT (content): Merge conflict in tests/components/bottom_bar.test.ts
Auto-merging tests/components/charts.test.ts
CONFLICT (content): Merge conflict in tests/components/charts.test.ts
Auto-merging tests/components/composer.test.ts
CONFLICT (content): Merge conflict in tests/components/composer.test.ts
Auto-merging tests/components/conditional_formatting.test.ts
CONFLICT (content): Merge conflict in tests/components/conditional_formatting.test.ts
Auto-merging tests/components/context_menu.test.ts
CONFLICT (content): Merge conflict in tests/components/context_menu.test.ts
Auto-merging tests/components/custom_currency_side_panel.test.ts
CONFLICT (content): Merge conflict in tests/components/custom_currency_side_panel.test.ts
Auto-merging tests/components/dashboard_grid.test.ts
CONFLICT (content): Merge conflict in tests/components/dashboard_grid.test.ts
Auto-merging tests/components/figure.test.ts
CONFLICT (content): Merge conflict in tests/components/figure.test.ts
Auto-merging tests/components/filter_menu.test.ts
CONFLICT (content): Merge conflict in tests/components/filter_menu.test.ts
Auto-merging tests/components/find_replace_side_panel.test.ts
CONFLICT (content): Merge conflict in tests/components/find_replace_side_panel.test.ts
Auto-merging tests/components/formula_assistant.test.ts
CONFLICT (content): Merge conflict in tests/components/formula_assistant.test.ts
Auto-merging tests/components/grid.test.ts
CONFLICT (content): Merge conflict in tests/components/grid.test.ts
Auto-merging tests/components/grid_manipulation.test.ts
CONFLICT (content): Merge conflict in tests/components/grid_manipulation.test.ts
Auto-merging tests/components/highlight.test.ts
CONFLICT (content): Merge conflict in tests/components/highlight.test.ts
Auto-merging tests/components/link/link_display.test.ts
CONFLICT (content): Merge conflict in tests/components/link/link_display.test.ts
Auto-merging tests/components/link/link_editor.test.ts
CONFLICT (content): Merge conflict in tests/components/link/link_editor.test.ts
Auto-merging tests/components/overlay.test.ts
CONFLICT (content): Merge conflict in tests/components/overlay.test.ts
Auto-merging tests/components/scorecard_chart.test.ts
CONFLICT (content): Merge conflict in tests/components/scorecard_chart.test.ts
Auto-merging tests/components/selection_input.test.ts
CONFLICT (content): Merge conflict in tests/components/selection_input.test.ts
Auto-merging tests/components/spreadsheet.test.ts
CONFLICT (content): Merge conflict in tests/components/spreadsheet.test.ts
Auto-merging tests/components/top_bar.test.ts
CONFLICT (content): Merge conflict in tests/components/top_bar.test.ts
Auto-merging tests/menu_items_registry.test.ts
CONFLICT (content): Merge conflict in tests/menu_items_registry.test.ts
Auto-merging tests/plugins/merges.test.ts
CONFLICT (content): Merge conflict in tests/plugins/merges.test.ts
Auto-merging tests/setup/jest.setup.ts
Auto-merging tests/test_helpers/helpers.ts
CONFLICT (content): Merge conflict in tests/test_helpers/helpers.ts

stderr:

11:26:08.473694 git.c:455               trace: built-in: git cherry-pick 8631b8de472538c0c1facb58c247218f814313dc
error: could not apply 8631b8de... [FIX] tests: mount owl App in test mode and mount components in helper
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
----------
status:

Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?).

In the former case, you may want to edit this PR message as well.

@rrahir
Copy link
Collaborator

rrahir commented Mar 22, 2023

@robodoo r+ rebase-ff

@robodoo
Copy link
Collaborator

robodoo commented Mar 22, 2023

Merge method set to rebase and fast-forward.

@rrahir
Copy link
Collaborator

rrahir commented Mar 22, 2023

@robodoo r-

hokolomopo and others added 2 commits March 22, 2023 18:52
This commit is a backport of original merged in PR #2045, it was
introduced as it diminishes drastically the sources of errors when
mounting OWL components.

Change the parameters of the owl `App` in the test. The `App` will now
be mounted in test mode. The main purpose is to enable props validation,
which ensure that the test is close to the reality, and avoid tests
failing for unclear reasons because a props was missing (d466315).

The Owl test mode is equivalent to dev mode, but without warning that
the app is unsuited for production. Documentation here :
https://github.com/odoo/owl/blob/master/doc/reference/app.md#dev-mode

Also added an helper `mountComponent` and modified the existing helper
`mountSpreadsheet`. The helpers now create and return the fixture in which
the component is mounted. They also register cleanup functions to remove
the fixture and destroy the app, so we don't have to do it manually.

closes #2045

Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
catching up to odoo version 2.0.9
@rrahir rrahir force-pushed the saas-16.1-16.0-bump-owl-rar-i5ZO-fw branch from 2bfb3f5 to 5443e42 Compare March 22, 2023 17:52
@rrahir
Copy link
Collaborator

rrahir commented Mar 22, 2023

@robodoo r+

robodoo pushed a commit that referenced this pull request Mar 22, 2023
This commit is a backport of original merged in PR #2045, it was
introduced as it diminishes drastically the sources of errors when
mounting OWL components.

Change the parameters of the owl `App` in the test. The `App` will now
be mounted in test mode. The main purpose is to enable props validation,
which ensure that the test is close to the reality, and avoid tests
failing for unclear reasons because a props was missing (d466315).

The Owl test mode is equivalent to dev mode, but without warning that
the app is unsuited for production. Documentation here :
https://github.com/odoo/owl/blob/master/doc/reference/app.md#dev-mode

Also added an helper `mountComponent` and modified the existing helper
`mountSpreadsheet`. The helpers now create and return the fixture in which
the component is mounted. They also register cleanup functions to remove
the fixture and destroy the app, so we don't have to do it manually.

closes #2045

Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
Part-of: #2258
robodoo pushed a commit that referenced this pull request Mar 22, 2023
catching up to odoo version 2.0.9

closes #2258

Signed-off-by: Lucas Lefèvre (lul) <lul@odoo.com>
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
@robodoo robodoo temporarily deployed to merge March 22, 2023 18:01 Inactive
@robodoo robodoo closed this Mar 22, 2023
@fw-bot fw-bot mentioned this pull request Mar 22, 2023
14 tasks
@fw-bot fw-bot deleted the saas-16.1-16.0-bump-owl-rar-i5ZO-fw branch April 5, 2023 18:47
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

4 participants