qwat-data-model icon indicating copy to clipboard operation
qwat-data-model copied to clipboard

fk_locationtype

Open tudorbarascu opened this issue 7 years ago • 8 comments

On my way on migrating to the newest model, I noticed the pipe fk_locationtype lots of empty arrays {} and NULLS.

Further investigating it seems empty arrays are always created when editing through QGIS Value relation widget. Checking or not the Allow NULL value doesn't change anything.

Do you think that we should search for consistency here? (e.g. where no one completed anything database side should be either NULL or {})

I would have expected the widget to insert NULL values as everything is empty and no one touched it.

Thoughts?

tudorbarascu avatar Jul 06 '17 16:07 tudorbarascu

in QGIS 3. custom UI doesn't work for fk_locationtype (arrays..) Issue https://issues.qgis.org/issues/20714

tudorbarascu avatar Dec 05 '18 08:12 tudorbarascu

We do not use fk_locationtype in Pully, If there's a bug with the value relation widget, it could be interesting to check with @dsavary, he's using much more than I do now.

ponceta avatar Dec 06 '18 09:12 ponceta

@haubourg As I read somewhere on issues.qgis.org you're updating the qwat.qgs project to version 3, for the fk_locationtype in the .ui files you need to change the type from list widget to table widget. Any timeframe/deadline for updating as I would like to update the VM that holds qwat/qgep. Thank you! We can close this issue if it doesn't serve others as it's solved from my part. More details here: https://issues.qgis.org/issues/20714

tudorbarascu avatar Feb 20 '19 07:02 tudorbarascu

@tudorbarascu In fact, I'm evaluating the work for a complete migration and move the forms from UI to drag and drop designer.

@ponceta any will on your side to push forward that migration work ?

you need to change the type from list widget to table widget.

If we go to a drag and drop form, I suppose we will workaround that issue right?

haubourg avatar Feb 21 '19 09:02 haubourg

Yes.. that would surely work. Last time I tested the drag&drop forms were loading considerably slower than custom UI-s. I haven't tested in the last few months and things may have changed.. so..just FYI.

tudorbarascu avatar Feb 21 '19 09:02 tudorbarascu

@tudorbarascu ok, I'll focus on that performance part then, thanks!

haubourg avatar Feb 21 '19 09:02 haubourg

@tudorbarascu In fact, I'm evaluating the work for a complete migration and move the forms from UI to drag and drop designer.

That would be great yes!

@ponceta any will on your side to push forward that migration work ?

Like discussed, migration is in progress, some 3D stuff and IT ressources are still blocking us from getting full QGIS 3. But it's a matter of weeks.

Yes.. that would surely work. Last time I tested the drag&drop forms were loading considerably slower than custom UI-s. I haven't tested in the last few months and things may have changed.. so..just FYI.

QGIS 3 is a lot faster than QGIS 2 on many relationnal widgets. We want to adress this issue since a long time with @dsavary, there are many points for improvement, we will need to have a strategy to solve these progressively.

Do we close or rename / reopen a(some) new issue(s) for all good points mentionned here above?

ponceta avatar Mar 01 '19 14:03 ponceta

@ponceta

Do we close or rename / reopen a(some) new issue(s) for all good points mentionned here above?

Whatever looks more suiting to you, I don't have any preference.

QGIS 3 is a lot faster than QGIS 2 on many relationnal widgets.

The tests and the speed difference were observed on QGIS 3.

tudorbarascu avatar Mar 03 '19 06:03 tudorbarascu