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

Urbanisme Evolutions #42

Closed
tdipisa opened this issue Feb 1, 2022 · 20 comments
Closed

Urbanisme Evolutions #42

tdipisa opened this issue Feb 1, 2022 · 20 comments

Comments

@tdipisa
Copy link
Collaborator

tdipisa commented Feb 1, 2022

By using Urbanisme, we identified evolutions to be made so that the behaviour of this plugin
is copied from Cadastrapp. Indeed, these two plugins are used by the same people:

  • The loading of the app:urbanisme_parcelle layer, which is used to query the data,
    must be done without it appearing in the list of layers,
  • When a layer group or a layer is selected in the layer list, the NRU and ADS buttons
    do not work: align with the behaviour of cadastrapp.
@tdipisa tdipisa self-assigned this Feb 1, 2022
@tdipisa tdipisa added this to the MOM MS3 - Phase III milestone Feb 1, 2022
alexander-fedorenko added a commit to alexander-fedorenko/geor_urbanisme_mapstore that referenced this issue Feb 20, 2022
Ammended existing tests and added new tests for changes in sigrennesmetropole#42
@offtherailz
Copy link
Collaborator

Release rc8 with this fixes ready for download and test
https://github.com/sigrennesmetropole/geor_urbanisme_mapstore/releases/tag/v1.0.0-rc8

@tdipisa
Copy link
Collaborator Author

tdipisa commented Feb 21, 2022

@ElenaGallo you can proceed with functional tests on geosolutions DEV

@ElenaGallo
Copy link
Collaborator

Hi @alexander-fedorenko @tdipisa , I noticed two small issues:

1_ The sidebar moves when it activates identify while the Urbanisme app is active. See the gif below:

2

2_ The Identifica marker remains visible even after opening the Urbanisme app.See the gif below:

3

@ElenaGallo ElenaGallo self-assigned this Feb 22, 2022
@tdipisa
Copy link
Collaborator Author

tdipisa commented Feb 22, 2022

@alexander-fedorenko we should fix both

1_ The sidebar moves when it activates identify while the Urbanisme app is active. See the gif below:

Both plugins (Urbanisme and Identify) take control of the map click event, therefore they cannot be active together at the same time. The Identify is automatically deactivated when the Urbanisme tool is opened but there should be a way to disable one of the Urbanisme buttons that interact with the map when the Identify is activated and vice versa (without closing the Urbanisme at all if possible). The sidebar should not move to the left in any case if there is no information to show.

2_ The Identifica marker remains visible even after opening the Urbanisme app.See the gif below:

We should try to fix it as well anyway.

alexander-fedorenko added a commit to alexander-fedorenko/geor_urbanisme_mapstore that referenced this issue Feb 22, 2022
… tool

It will not be closed anymore when:
- Identify tool is activated;
- Measure tool is activated;
- Map trigger event is changed in settings;
Instead of it active tool will be deactivated. Activation of any urbanisme tool will disable identify, close measure plugin, reset map info trigger to click.
Amending tests.
alexander-fedorenko added a commit to alexander-fedorenko/geor_urbanisme_mapstore that referenced this issue Feb 22, 2022
… tool

It will not be closed anymore when:
- Identify tool is activated;
- Measure tool is activated;
- Map trigger event is changed in settings;
Instead of it active tool will be deactivated. Activation of any urbanisme tool will disable identify, close measure plugin, reset map info trigger to click.
Amending tests.
@offtherailz
Copy link
Collaborator

Tested the PR locally worked (after a small fix). So I merged and installed. But on the server it doesn't seems work.
Maybe some misalignement or race condition. Please @alexander-fedorenko fix this and the test that was failing.
I added github actions (need to test with your PR) to provide previous checks and avoid future problems.

screencast-nimbus-capture-2022.02.28-12_33_09.mp4

alexander-fedorenko added a commit to alexander-fedorenko/geor_urbanisme_mapstore that referenced this issue Feb 28, 2022
alexander-fedorenko added a commit to alexander-fedorenko/geor_urbanisme_mapstore that referenced this issue Feb 28, 2022
@alexander-fedorenko
Copy link
Collaborator

@offtherailz I've created first PR before PR branch was on the revision with checks.yml available. I've closed that one, rebased branch on top of master and tried to recreate PR to check that tests were triggered but for some reason they weren't.
Tests issue should be solved. I was not able to reproduce issue on local installation too (I've tested in geOrchestra too), though I've tracked the possible issue directly on https://georchestra.geo-solutions.it/mapstore/ and applied test fix.

@offtherailz
Copy link
Collaborator

Sure, no problems. I noticed that doing automatic test is more useful to identify possible issues or regression
I also fixed checks.yml now.
So you can continue working on it.

alexander-fedorenko added a commit to alexander-fedorenko/geor_urbanisme_mapstore that referenced this issue Mar 2, 2022
@jusabatier
Copy link
Collaborator

I just tested v1.0.0-rc8 and it doesn't work on our platform.

Nothing happen when clicking on a plot...

Here is our plugin conf :

{
  "cfg": {
    "helpUrl": "http://docs.georchestra.org/addon_urbanisme/",
    "cadastrappUrl": "/cadastrapp/services",
    "urbanismeappUrl": "/servitudes",
    "layer": "pci:geo_parcelle",
    "idParcelleKey": "geo_parcelle"
  },
  "override": {}
}

@offtherailz
Copy link
Collaborator

could you try rc9 pre-release draft that we are actially testing?

@jusabatier
Copy link
Collaborator

Your link is broken

@jusabatier
Copy link
Collaborator

Just tested with Artefact generated from master (github actions) but it still not work

@jusabatier
Copy link
Collaborator

Notice that we use mapstore configured with EPSG:2154 on our platform, don't know if it can affect this plugin

@offtherailz
Copy link
Collaborator

Your link is broken
Probably draft PR are not accessible externally. I published it here now.

Notice that we use mapstore configured with EPSG:2154 on our platform, don't know if it can affect this plugin

We tested EPSG:2154 in a local env and it seems to work.

mmm.. you said :

Nothing happen when clicking on a plot...

Do you see any error or request in the developers tools network tab ?

@jusabatier
Copy link
Collaborator

jusabatier commented Mar 4, 2022

I have no error in console, but 2 request are sent :

First request :

https://geoportail.lepuyenvelay.fr/geoserver/wms?service=WMS&version=1.1.1&request=GetFeatureInfo&exceptions=application%2Fjson&id=__URBANISME_RASTER_LAYER__&layers=pci:geo_parcelle&query_layers=pci:geo_parcelle&x=51&y=51&height=101&width=101&srs=EPSG:2154&bbox=769084.8502007792,6438111.0366231445,770049.8676828794,6439076.054105245&feature_count=10&info_format=application%2Fjson&ENV=

Reponse :

{"type":"FeatureCollection","features":[],"totalFeatures":"unknown","numberReturned":0,"timeStamp":"2022-03-04T12:28:39.846Z","crs":null}

Second request :

https://geoportail.lepuyenvelay.fr/geoserver/wms?service=WMS&version=1.1.1&request=GetFeatureInfo&exceptions=application%2Fjson&id=__URBANISME_RASTER_LAYER__&layers=pci:geo_parcelle&query_layers=pci:geo_parcelle&x=51&y=51&height=101&width=101&srs=EPSG:2154&bbox=769084.8502007792,6438111.0366231445,770049.8676828794,6439076.054105245&feature_count=10&info_format=text%2Fhtml&ENV=

Reponse :

<html>
  <head>
    <title>Geoserver GetFeatureInfo output</title>
  </head>
  <style type="text/css">
	table.featureInfo, table.featureInfo td, table.featureInfo th {
		border:1px solid #ddd;
		border-collapse:collapse;
		margin:0;
		padding:0;
		font-size: 90%;
		padding:.2em .1em;
	}
	table.featureInfo th {
	    padding:.2em .2em;
		font-weight:bold;
		background:#eee;
	}
	table.featureInfo td{
		background:#fff;
	}
	table.featureInfo tr.odd td{
		background:#eee;
	}
	table.featureInfo caption{
		text-align:left;
		font-size:100%;
		font-weight:bold;
		padding:.2em .2em;
	}
  </style>
  <body>
  
  </body>
</html>

After that requests, nothing happen.

It look like it can't retrieve the feature.

I compared with a working equivalent request and the only difference seems to be the boundingbox parameter.

@offtherailz
Copy link
Collaborator

Thank you for this information. We will try to replicate find out the reason of this.

@offtherailz
Copy link
Collaborator

@jusabatier can you try this version?
Urbanisme.zip

@jusabatier
Copy link
Collaborator

jusabatier commented Mar 16, 2022

I can confirm you that the last merged PR (#49) solve the issue.

@offtherailz
Copy link
Collaborator

Thank you. I updated the latest release zip file with these fixes

@catmorales
Copy link
Collaborator

catmorales commented Mar 18, 2022

@tdipisa , I just deployed the v1.0.0-rc9 on portail-test and the required improvements seems to be ok.
Thank you.

@tdipisa
Copy link
Collaborator Author

tdipisa commented Mar 18, 2022

Thank you too @catmorales I'm going to close then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants