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

Bump owl version #2252

Closed
wants to merge 2 commits into from
Closed

Bump owl version #2252

wants to merge 2 commits into from

Conversation

rrahir
Copy link
Collaborator

@rrahir rrahir commented Mar 21, 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

@robodoo
Copy link
Collaborator

robodoo commented Mar 21, 2023

hokolomopo and others added 2 commits March 21, 2023 17:23
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) <[email protected]>
catching up to odoo version 2.0.9
@rrahir rrahir force-pushed the 16.0-bump-owl-rar branch from 444825f to d88ea33 Compare March 21, 2023 16:23
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+

tests/components/bottom_bar.test.ts Outdated Show resolved Hide resolved
@robodoo
Copy link
Collaborator

robodoo commented Mar 22, 2023

@rrahir @LucasLefevre because this PR has multiple commits, I need to know how to merge it:

  • merge to merge directly, using the PR as merge commit message
  • rebase-merge to rebase and merge, using the PR as merge commit message
  • rebase-ff to rebase and fast-forward

@LucasLefevre
Copy link
Collaborator

robodoo rebase-ff

@robodoo
Copy link
Collaborator

robodoo commented Mar 22, 2023

Merge method set to rebase and fast-forward.

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) <[email protected]>
Part-of: #2252
robodoo pushed a commit that referenced this pull request Mar 22, 2023
catching up to odoo version 2.0.9

closes #2252

Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
@robodoo robodoo temporarily deployed to merge March 22, 2023 10:25 Inactive
@robodoo robodoo closed this Mar 22, 2023
@fw-bot fw-bot deleted the 16.0-bump-owl-rar branch April 5, 2023 10:47
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