nens / threedi-api-qgis-client

3Di Models & Simulations plugin
https://plugins.lizard.net/
Other
2 stars 0 forks source link

[3Di]: add 'only show own simulations' option to download results interface #368

Open Patrick-Nijman opened 2 years ago

Patrick-Nijman commented 2 years ago

Contact Details

Olof

What happened?

When downloading your results, it would be nice to have an option to filter out all simulations by other users, just like in the management screens.

image image

Patrick-Nijman commented 1 year ago

@leendertvanwolfswinkel Kan jij deze inplannen / timeframen. Lijkt me een nice feature maar niet heel ingewikkeld om te maken. Maar ik kan het mis hebben 😄

ldebek commented 2 months ago

@leendertvanwolfswinkel SimulationStatus returned by threedi-api-client have no unique user ID which I could use to undoubtedly identify user which started the simulation. I could use simulation_user_first_name and simulation_user_last_name combination but I'm not sure that this combination will be unique?

leendertvanwolfswinkel commented 1 month ago

@ldebek I think that is fine, but we should make it explicit. I propose to make it an option "Filter on user name", with two fields "First name" and "Last name", prepopulated with the logged-in users First name and Last name.

Please also (re-)add the column "User name" to the table, which should show the `f"{simulation_user_first_name} simulation_user_last_name" to the downloadable results list view?

leendertvanwolfswinkel commented 1 week ago

@ldebek while you are at it, I have two additional wishes... Let me make a complete list including the stuff mentioned above:

Artist's impression:

image.png
leendertvanwolfswinkel commented 6 days ago

@ldebek love it, please merge