FLO-2DSoftware / qgis-flo-2d-plugin

A plugin for pre-processing/post-processing FLO-2D models
5 stars 7 forks source link

Old gpkg Layers issue #1369

Closed FLO-2DKaren closed 2 weeks ago

FLO-2DKaren commented 4 weeks ago

Hi Robson,

We deleted the tables in this video years ago but apparently I'm testing my video on a very old projejct.

https://github.com/FLO-2DSoftware/qgis-flo-2d-plugin/assets/20424460/d996b10d-a8a3-46de-89c4-e1606c140b89

Test Project Lesson 6 Complete.zip

FLO-2DKaren commented 4 weeks ago

@rpachaly

I found this because I was resetting so I could do the video for you.

https://github.com/FLO-2DSoftware/qgis-flo-2d-plugin/assets/20424460/6a0445ef-52e5-42b3-a2b6-f39a6efdc34f

FLO-2DKaren commented 4 weeks ago

When you hit Save and say No, you have to say no again and again. I think we need a way to recognize that the layer is already listed in the qgz file and skip it and just save.

https://github.com/FLO-2DSoftware/qgis-flo-2d-plugin/assets/20424460/94711745-b143-47a2-8cdb-9f9cbea360b7

FLO-2DKaren commented 4 weeks ago

If you need a meeting, let me know.

rpachaly commented 4 weeks ago

I'm trying to get a Porting data video for Plugin 1 and I found an issue. I'm not sure how to approach this but maybe flag old tables and skip them?

I added them into a list of 'do_not_port'. If there are more tables like this, let me know.

K Those are the only ones I can think of. They would have showed up if there were others. It isn't typical to delete tables.

rpachaly commented 4 weeks ago

I found another one. Sorry Robson. You can test this on any project. Just add a layer, remove the layer then remove the group and load the layer again.

The solution that I've found for this one is always placing layers added into the project on top of the layer tree. Even if you drag and drop it into a group, it will go to the top. I like this because it will be difficult to add layers and 'lose' them into the groups. Let me know what do you think. If you don't like this approach, I can find another solution.

FLO-2DKaren commented 4 weeks ago

I found another one. Sorry Robson. You can test this on any project. Just add a layer, remove the layer then remove the group and load the layer again.

The solution that I've found for this one is always placing layers added into the project on top of the layer tree. Even if you drag and drop it into a group, it will go to the top. I like this because it will be difficult to add layers and 'lose' them into the groups. Let me know what do you think. If you don't like this approach, I can find another solution.

I think this solution will work but I'll test it as comprehensively as I can.

rpachaly commented 3 weeks ago

Hi @FLO-2DKaren

This is done. I had to change the FLO-2D Geopackage Management in order to improve it. I'm sorry if you already finished the documentation.

See the video:

https://github.com/FLO-2DSoftware/qgis-flo-2d-plugin/assets/39889306/f6506107-c54f-4dfe-9a99-2440a5a17e20

Done on https://github.com/FLO-2DSoftware/qgis-flo-2d-plugin/pull/1371

FLO-2DKaren commented 3 weeks ago

Hi Robson,

That looks very nice. I did some documentation but I was waiting to finish a video so I could post a video on the Documentation. I think this will be good. Can we merge it?

FLO-2DKaren commented 2 weeks ago

All seems well with my testing.