Giter VIP home page Giter VIP logo

qwc-admin-gui's People

Contributors

benoitblanc avatar cazitouni avatar danimarinbg avatar dependabot[bot] avatar ducarouge avatar gwenandres avatar hirtarmin avatar husseinkabbout avatar manisandro avatar mwa avatar pka avatar stephaschu avatar tobias-brunner avatar w0pr avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qwc-admin-gui's Issues

Themes plugin not working

I'm using qwc-docker image sourcepole/qwc-admin-gui:v2023.05.12 and have added "themes" to the plugin array in tenantConfig.json, but it does not show up in admin GUI, the config_editor however does and is working fine.

image

This is the part of the tenantConfig.json:
image

Any ideas?

Display config-generator output

Requires that the config-generator service also returns the log output.

Button title should be changed to "Generate service configuration" or similar. And the flash text is replaced by the config-generator output.

Plugins not connecting

Greetings!

I'm using qwc-docker service. Try to enable plugins (themes and config_editor) in tenantConfig.json

"name": "adminGui",
      "config": {
        "db_url": "postgresql:///?service=qwc_configdb",
        "config_generator_service_url": "http://qwc-config-service:9090",
        "totp_enabled": false,
        "user_info_fields": [],
        "proxy_url_whitelist": [],
        "proxy_timeout": 60,
        "plugins": ["themes", "config_editor"],
        "input_config_path": "/srv/qwc_service/config-in",
        "qwc2_path": "/qwc2/",
        "qgs_resources_path": "/data",
        "ogc_service_url": "/ows/"

Config_editor plugin is appear but I have message '[Errno 2] No such file or directory: '/srv/qwc_service/config-in/default/tenantConfig.json''
image
Themes plugin doesn't work
What am I doing wrong?

Make login/logout URL configurable

Currently, $TENANT_PREFIX/auth/login is hardcoded for login redirects. We should also support other login URL's like /intranet/ldap-auth/login

Themes plugin : No tiled option

There is no option for the tiled mode in the theme plugin for QWC admin despite the fact that the option exists if you write it mannually in the json config. (tiled : true)
It could be a great addition to add this option into the plugin.

No module named server found using latest image

Since 5117100 it's now impossible for me to start the latest container with the following error :

qwc-docker-qwc-admin-gui-1 | ModuleNotFoundError: No module named 'server'

Could it be related to the fact that some file have been moved into /src ?

Thanks in advance,
Regards, Clément.

Is there a way to define info_templates and associated permissions via qwc_admin ?

Hello,

I've came across the possibility to use html forms via the feature info service.
But I try it by hardcoding text in the config, it renders well but it's not really covenient to do that.
I would like to know if there is a possibility to use the admin console for that purpose.
By adding a ressource and a permission for example ?

Maybe I missed something but I would enjoy to be able to do that.

Layer import fails when importing categorized layer with default category

First of all, I am creating this issue here, but you may decide whether it may be rather moved against QGIS Desktop.

I have made the attached QGIS project "Modena1.qgs" having a layer defined on a database table in a postgres/postGIS databsase.
Modena1.zip

Layer items are categorized by the entity field called "modello".
When categorizing the layer in QGIS Desktop (by Layer -> Layer Properies + Symbols -> Categorized and then Classify button), QGIS Desktop adds a "default" layer mapping items having field values different from those identified at creation time.
Looking into the QGIS file I can see that this "default" layer misses both "label" and "value" attributes:

    <categories>
      <category symbol="0" label="Arduino" value="Arduino" render="true"/>
      <category symbol="1" label="ESP-32" value="ESP-32" render="true"/>
      <category symbol="2" label="Raspberry" value="Raspberry" render="true"/>
      <category symbol="3" label="" value="" render="true"/>
    </categories>

When trying to import this project by means of the qwc-admin, the layer import phase will fail and the layer will not be imported. If this is the only layer in the project, the whole project will not be imported.
After investigation, I ascertained that this is caused by an exception in resources_controller.py when importing the categorized symbols as map's layers (line 442):

# add additional maps to ConfigDB
    new_maps = sorted(list(set(maps_from_config) - set(maps)))

This fails with exception when sorting the list with an item having label as None (the "default" category)

My suggestion is either to handle upfront the case of an empty labelled layer before calling sorted()
Or addressing the issue within QGIS Desktop

Plugin themes : upload projects or files on server

Hi @mwa @manisandro ,

I have discovered recently the themes plugin in qwc-admin-gui and it is a nice feature to edit themesConfig.

I was wondering if it would be great for the user to be able to upload new QGIS projects or files from his/her desktop to the server ?

I have started something which looks like this :

image

User can add or delete QGS projects or geospatial files in qgs_resources_path on server. After uploading files, he could add project to the app by creating a new theme in Theme configuration tab.

Please tell me if it could be interesting to add new projects this way. Also, if you have some remarks or ideas on what I started to develop, do not hesitate !

Thanks,
Benoît Blanc

disalow renaming of 'admin' Role

I've seen a user rename the 'admin' role.

The string "admin" is hardcoded in the qwc-admin code and is used to find out whether a given login user is able to log in as an admin.

So if the 'admin' role gets renamed by a user then login into the admin UI is no more possible and the user can't do anything about it, short of renaming the name of the role back via psql.

I suggest to add a javascript snippet to the code that will check whether the role being edited is the 'admin' role and in that case disable the editing of the "name" field.

Themes Plugin internal error 500 with solr search provider

(tenantConfig.json attached)

Add a solr search configuration as a search provider for a theme and configure it by directly editing tenantConfig.json.

Open QWC Admin and generate the configuration.

Restart the browser

Check the Theme in the website and confirm that the search is configured and running properly, so the configuration is definitely good.

Open QWC Admin.
Open Themes

Attempt to load the Theme Configuration form for the project configured for the search provider.

You will get a 500 error. It will only happen for the project with the solr search provider.

Presumably, this could be because the Project form has an entry for search providers, and it doesn't support more than simple search provider names, while solr has a more complicated config.

.#
'''
"searchProviders": [
"coordinates",
"nominatim",
{
"provider": "solr",
"default": [
"Gemeinden"
],
"layers": {
}
}
],

[tenantConfig.zip](https://github.com/qwc-services/qwc-admin-gui/files/8061190/tenantConfig.zip)

[Improvement] Please provide ARM64 docker image

I found your Docker images don't provide arm64 images.
This is very unfriendly to mac with m-series chips which is the ARM architecture.
Can you please provide both two architecture images on the docker hub?

Suggestion:
You could push the image with 'buildx' tool in Docker.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.