geospatial icon indicating copy to clipboard operation
geospatial copied to clipboard

[17.0][MIG] base_geoengine: Migration to 17.0

Open peluko00 opened this issue 1 year ago • 13 comments

Module migrated to version 17.0

cc https://github.com/APSL 154489 @miquelalzanillas @lbarry-apsl @javierobcn @mpascuall please review

  • [Issue] https://github.com/OCA/geospatial/issues/349

To do:

  • [ ] As an admin, if I change the domain of a layer with the filter button then the change are persisted in database.
  • [ ] As a user, if I change the domain of a layer with the filter button then the change are not persisted in database. There are just the changes in the display.
  • [ ] As an admin,If the geoengine view is in edit mode, I can create new records by drawing them in the view.

peluko00 avatar Apr 25 '24 13:04 peluko00

/ocabot migration base_geoengine

pedrobaeza avatar May 02 '24 07:05 pedrobaeza

Hi @pedrobaeza and @reichie020212,

We used some code from @reichie020212 previous closed migration PR (https://github.com/OCA/geospatial/pull/357) and co-authored the migration commit.

Is this correct?

miquelalzanillas avatar May 02 '24 07:05 miquelalzanillas

Yes, it seems OK. Please put the module name in the migration commit.

pedrobaeza avatar May 02 '24 07:05 pedrobaeza

Yes, it seems OK. Please put the module name in the migration commit.

Done. Thanks!

miquelalzanillas avatar May 02 '24 07:05 miquelalzanillas

hi @miquelalzanillas , Thank you for making me co-author.

reichie020212 avatar May 03 '24 02:05 reichie020212

I have noticed some issue in the JavaScript code of the controller in the modelParams function. It uses this.props.state.modelState twice without a ? operator and in my tests on base_geoengine_demo this.props.state comes undefined. Other controllers like in form, list or kanban are using a ? also.

sersanchus avatar May 03 '24 11:05 sersanchus

Some other things that I have noticed that need to be solved:

  • Gist indexes are not created even if requested. This was fixed in 12.0 but not in subsequent ones.
  • In the widget component, reprojection using 'ol.format.GeoJSON' is not well defined. So other srid than 3857 cannot be used.
  • The RecordsPanel is currently commented.

sersanchus avatar May 06 '24 15:05 sersanchus

Can you take a look and test it please @sersanchus

peluko00 avatar May 17 '24 13:05 peluko00

I'm actively working on this version at the moment and everything looks fine except for two things that I will try to solve ~~this week~~ today:

  • The id associated with 'ol_map' is not enough to identify it with 'Date.now()' because the same form view can have several ending up with the same id.
  • Recover and complete the RecordsPanel.

sersanchus avatar May 20 '24 08:05 sersanchus

Tested functionally from #372. LGTM.

Sorry but I didn't tested following the 'base_geoengine_demo' readme and trying to follow those indications still are some bugs.

miquelalzanillas avatar May 22 '24 06:05 miquelalzanillas

I just realized that the custom domain selector for geometries is completely broken. Odoo 17 doesn't allow overloading domain selection of custom field types as easily as before with:

registry.category("domain_selector/fields")

There is going to be a lot of work in that part.

sersanchus avatar May 24 '24 11:05 sersanchus

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). 🤖

OCA-git-bot avatar Jun 29 '24 09:06 OCA-git-bot

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). 🤖

OCA-git-bot avatar Jun 29 '24 09:06 OCA-git-bot

Any update?

@peluko00

mostafabarmshory avatar Aug 31 '24 18:08 mostafabarmshory

Any update?

@peluko00

I'll continue with this module maybe the next month

peluko00 avatar Sep 20 '24 06:09 peluko00

@peluko00

Tx to your commit. Seams everything is ok to merge, is`n it?

mostafabarmshory avatar Sep 25 '24 04:09 mostafabarmshory

@peluko00

Tx to your commit. Seams everything is ok to merge, is`n it?

Not yet, they are some bugs to solve

peluko00 avatar Sep 25 '24 05:09 peluko00

@peluko00

Your last commit fix unit test. So we are ready to merge with the branch.

Is there any bug or issues?

I check it with odoo 17 manually and every thing seams ok.

Let me know if there is any issue, pleas.

BTW, I can help you to finish it,

TX to your work, hope be fine

mostafabarmshory avatar Sep 25 '24 15:09 mostafabarmshory

@peluko00

Your last commit fix unit test. So we are ready to merge with the branch.

Is there any bug or issues?

I check it with odoo 17 manually and every thing seams ok.

Let me know if there is any issue, pleas.

BTW, I can help you to finish it,

TX to your work, hope be fine

Yes, the bugs are in the TODO description of this PR. If you wanna to solve that make a pr to merge into my branch. Thanks in advance

peluko00 avatar Sep 26 '24 06:09 peluko00

@dreispt can you review please

peluko00 avatar Sep 27 '24 06:09 peluko00

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). 🤖

OCA-git-bot avatar Sep 27 '24 06:09 OCA-git-bot

/ocabot merge nobump

dreispt avatar Sep 27 '24 09:09 dreispt

This PR looks fantastic, let's merge it! Prepared branch 17.0-ocabot-merge-pr-368-by-dreispt-bump-nobump, awaiting test results.

OCA-git-bot avatar Sep 27 '24 09:09 OCA-git-bot

Congratulations, your PR was merged at dc17fccbd29cf503a4aaf744741e96976cc1da58. Thanks a lot for contributing to OCA. ❤️

OCA-git-bot avatar Sep 27 '24 09:09 OCA-git-bot