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

[14.0][FIX]base_geoengine: missing sidebar #375

Open
wants to merge 1 commit into
base: 14.0
Choose a base branch
from

Conversation

PicchiSeba
Copy link

@PicchiSeba PicchiSeba commented Jun 20, 2024

I installed a fresh Odoo instance with the module fieldservice_geoengine (from OCA's field-service repo), added the geoengine view mode to the FSM Location action but the button didn't show up.

Screenshot from 2024-06-20 11-42-42

Opening up the browser console I was greeted by an error message stating that base_geoengine.GeoengineController couldn't be initialized because it was referencing web.Sidebar which was nowhere to be found.

After a bit of investigation I stumbled into this commit in Odoo 14.0 which essentially replaced web.Sidebar with web.ActionMenus.

We can verify this by reading the first comment in the newly added file

/**
* Action menus (or Action/Print bar, previously called 'Sidebar')
*
* The side bar is the group of dropdown menus located on the left side of the
* control panel. Its role is to display a list of items depending on the view
* type and selected records and to execute a set of actions on active records.
* It is made out of 2 dropdown menus: Print and Action.
*
* This component also provides a registry to use custom components in the ActionMenus's
* Action menu.
* @extends Component
*/

SOMEHOW running a clean runboat instance of the field-service repo and installing fieldservice_geoengine makes the geoengine action appear, but not on a local installation.
I don't understand what's happening here.

Please let me know if you encountered this situation before or if I'm just hallucinating.

@PicchiSeba PicchiSeba force-pushed the 14.0-fix-missing-sidebar branch from 125a811 to a17275c Compare June 20, 2024 09:44
@PicchiSeba PicchiSeba force-pushed the 14.0-fix-missing-sidebar branch from a17275c to 3b7f9c8 Compare June 20, 2024 14:26
@PicchiSeba PicchiSeba force-pushed the 14.0-fix-missing-sidebar branch 2 times, most recently from 4dd2881 to 1138961 Compare June 20, 2024 15:06
@PicchiSeba PicchiSeba requested a review from anusriNPS June 20, 2024 15:06
@PicchiSeba PicchiSeba force-pushed the 14.0-fix-missing-sidebar branch from 1138961 to b6a6169 Compare June 20, 2024 15:07
@anusriNPS
Copy link

Changes look good

@PicchiSeba
Copy link
Author

PicchiSeba commented Jun 24, 2024

@lmignon @yvaucher

SOMEHOW running a clean runboat instance of the field-service repo and installing fieldservice_geoengine makes the geoengine action appear, but not on a local installation.

I finally found an answer to this mistery.
Starting a Runboat instance for the field-service repo doesn't show any issue. Why is that?
We can get a clue by installing the fieldservice_geoengine module which requires base_geoengine, and looking at the latter's version.

Screenshot from 2024-06-24 12-11-19

14.0.1.0.3? But if I inspect the manifest of base_geoengine module in this repo I see another version: 14.0.1.0.1

"version": "14.0.1.0.1",

This is because of a past event regarding missing history
#316 (comment)

The whole module was re-merged into 14.0
#326

Because of this some of the changes are still buried in the branch 14.0-bad-history.

In the lost changes the base_geoengine was at the version 14.0.1.0.3, the same we have in the Runboat.

In the bad-history repo we have this line in particular, which makes the geoengine action behave correctly

We can see the same line if we add geoengine to the Fieldservice Location action

Screenshot from 2024-06-24 12-31-28

And then reload the page with debug=assets, if we explore the static files that loaded by the browser and inspect base_geoengine/static/src/js/views/geoengine/geoengine_controller.js we see the same line I previously highlighted (line 22).

Screenshot from 2024-06-24 12-34-42

I suspect that even though this repo has been fixed, the module in the Runboat doesn't update because its version is higher than what we have in the most recent 14.0 branch.

I guess we could increase the version number in order to achieve consistency. Let me know what you think.

@lmignon
Copy link
Contributor

lmignon commented Jun 26, 2024

@PicchiSeba Thank you for the explanation. You could propose a PR with the missing part and we will merge it with a bump of the minor version. In this way we are sure that the one into pipy will be the lastest.

@PicchiSeba PicchiSeba force-pushed the 14.0-fix-missing-sidebar branch from b6a6169 to 4836e55 Compare June 26, 2024 07:50
@PicchiSeba
Copy link
Author

@lmignon I updated this PR with the changes. I tested it with the fieldservice_geoengine module

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@lmignon
Copy link
Contributor

lmignon commented Jun 26, 2024

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 14.0-ocabot-merge-pr-375-by-lmignon-bump-minor, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Jun 26, 2024
Signed-off-by lmignon
@OCA-git-bot
Copy link
Contributor

@lmignon your merge command was aborted due to failed check(s), which you can inspect on this commit of 14.0-ocabot-merge-pr-375-by-lmignon-bump-minor.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@PicchiSeba
Copy link
Author

@lmignon Some tests failed during the merge but I cannot see them.

@marcelsavegnago
Copy link
Member

ping @OCA/geospatial-maintainers

@lmignon
Copy link
Contributor

lmignon commented Aug 26, 2024

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 14.0-ocabot-merge-pr-375-by-lmignon-bump-minor, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Aug 26, 2024
Signed-off-by lmignon
@OCA-git-bot
Copy link
Contributor

@lmignon your merge command was aborted due to failed check(s), which you can inspect on this commit of 14.0-ocabot-merge-pr-375-by-lmignon-bump-minor.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@OCA-git-bot
Copy link
Contributor

@lmignon your merge command was aborted due to failed check(s), which you can inspect on this commit of 14.0-ocabot-merge-pr-375-by-lmignon-bump-minor.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@marcelsavegnago
Copy link
Member

marcelsavegnago commented Aug 27, 2024

@lmignon Is it necessary to do a rebase?

@yvaucher
Copy link
Member

Please try a rebase.
This is really weird, I don't see any error in the 2 last attempts of merge.

@PicchiSeba PicchiSeba force-pushed the 14.0-fix-missing-sidebar branch from 4836e55 to a77db24 Compare October 17, 2024 08:49
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.

6 participants