DigitalCommons / mykomap

A web application for mapping initiatives in the Solidarity Economy
3 stars 0 forks source link

Data set selection in sea-map seems 'stuck' #89

Closed ColmMassey closed 3 years ago

ColmMassey commented 3 years ago

The data set selection in sea-map seems to be broken, looks like its stuck on "mixed".

See https://github.com/SolidarityEconomyAssociation/open-data-and-maps-outreach/issues/217

https://dev.newbridge.solidarityeconomy.coop/map.html

sunnydean commented 3 years ago

This is currently blocked by https://github.com/SolidarityEconomyAssociation/sea-map/issues/90

ColmMassey commented 3 years ago

This is currently blocked by #90

So this is also working now? Can I test it?

ColmMassey commented 3 years ago

This is still an issue.

ColmMassey commented 3 years ago

it is no longer stuck, but I think it may be reloading multiple times?? Untitled

wu-lee commented 3 years ago

There is something weird going on there...

wu-lee commented 3 years ago

If you look at the output from the SPARQL query for newbridge (follow the link from shipshape), it has lots of duplicates in it...

Checking Virtuoso, I see there are near-duplicate graphs for some of the datasets differing only by a trailing delimiter, i.e.

I've deleted them all and waited for regeneration... the duplicate graphs don't come back (those with trailing delimiters don't). But the duplicate initiatives do.

Experimenting with the SPARQL query for newbridge, it seems to be the activity field - those initiatives with multiple activities then get a row for each activity (all other fields duplicated, I think.) But that field has been in the newbridge query.txt since 2020/07/08, so that's not looking like a new thing. Deliberate perhaps?

Duplicates can also be introduced by switching on and off datasets. I won't be surprised if my attempt to prevent the switch closing the sidebar also lost some sort of reset action, but haven't found it yet. I see errors in the console which suggests some event handlers for links etc. get broken.

wu-lee commented 3 years ago

See also #103

ColmMassey commented 3 years ago

Just taking another look at this, it seems to be behaving even worse than before. I can't seem to select just the Newbridge data at all. This is unusable. It was at least usable not very long ago, even if buggy.

wu-lee commented 3 years ago

Agreed, although I don't know why it would get worse. You could move it up the priority queue if you like?

ColmMassey commented 3 years ago

It looks pretty close to the top of the pile. Only other ticket allocated to you that is higher is the ticket writing for murmerations.

wu-lee commented 3 years ago

Ok, looking at the commit history, testing the sea-map code just before all the ICA vocab stuff was added, and the subsequent 1.x release of sea-map, these multi-dataset bugs (this and #103) look like they're gone.

However, there are other problems I can reproduce, exceptions which occur when exercising the sidebar. I think these are the issues which stopped me from declaring this all done, but in effect they are different ones.

Ah... so it's coming back to me a bit. To replicate the problems, you need to switch datasets, and then select an activity on the sidebar. This selection operation hides pins which don't have that activity, and works fine initially, but after a switch, something is not right and there are null pointer exceptions in the code.

I've deployed the code which I'm referring to here on https://dev.newbridge.solidarityeconomy.coop/ to show what I mean. If you don't watch for exceptions in the console, it manifests as a selection click on an initiative in the side-bar resulting in the map jumping, but no longer a pin being centered with a pop-up; and the contents of the "activities" directory in the side bar being empty.

wu-lee commented 3 years ago

I've tracked down a number of problems, this code looks like it was written a bit hastily and not tested at all with multi data sets.

The result is currently pushed onto the dev server, see what you think @ColmMassey