g3w-admin icon indicating copy to clipboard operation
g3w-admin copied to clipboard

Auto-naming of uploaded `.ggs` project files is a bit confusing

Open Raruto opened this issue 1 year ago • 0 comments

Checklist

  • [X] I've searched through the existing issues and this bug has never been reported before

Subject of the issue

Sample project: g3w-suite-demo-projects/projects/geocoding-control.qgs

Here's what I get: gli_acquatici_del_parco_geocoding-controlqgs.qgs instead of buildings_geocoding-control.qgs (among others)

image

That is:

  • it should use group slug as filename prefix (eg. buildings)
  • it shouldn't add other suffixes at end of the url/file (eg. -controlqgs.gqs, -controlqgs/)

Partially related to: https://github.com/g3w-suite/g3w-admin/issues/612 https://github.com/g3w-suite/g3w-admin/issues/542 https://github.com/g3w-suite/g3w-admin/issues/661

Steps to reproduce

1. change the name of an existing group

image

2. upload the sample project in there

image

3 auto-generated filename is: gli_acquatici_del_parco_geocoding-controlqgs.qgs

image

Environment

[g3wsdk.info]

  • g3w-admin: 3.7.dev-20231124074424
  • g3w-client: 3.9.0-alpha.2.0
  • browser: Firefox 119.0
  • operating system: Windows 11 64-bit

Link to your project

http://localhost:8000/en/map/buildings/qdjango/50/

Additional info

No response

Raruto avatar Nov 24 '23 10:11 Raruto