qwc-services / qwc-admin-gui Goto Github PK
View Code? Open in Web Editor NEWQWC Admin GUI
License: MIT License
QWC Admin GUI
License: MIT License
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.
If I have removed a theme and project with the themes plugin, then the topic still appears in QWC2 in the themes list. So it will not be deleted.
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''
Themes plugin doesn't work
What am I doing wrong?
When there are some groups defined in Themes configuration, and I want to add a new WMS/WMTS background layer, groups are deleted from tenantConfig.json
.
Currently, $TENANT_PREFIX/auth/login
is hardcoded for login redirects. We should also support other login URL's like /intranet/ldap-auth/login
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.
At the moment it is not possible to change the configuration of a defined background layer. Beside the delete button an edit button should be available.
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.
#15 adds the correct parent name in the HTML list, but always the same in the dropdown:
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.
admin-gui should start without adminGuiConfig.json
. Requires maybe a a change in core lib (to be discussed with @mwa). Env-Vars DB_URL
and CONFIG_GENERATOR_SERVICE_URL
should be enough for running.
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
Themes
https://sgx.geodatenzentrum.de/wms_topplus_open
as WMS URL and click Connect
TopPlusOpen
save
=> Internal Server Error
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 :
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
note to @HusseinKabbout / myself -> revert internal change e1cc9fc7
Some configs are still read from env vars only:
Instead of the v1 config update we call the new service qwc-services/qwc-config-generator#2 for updating runtime configration files. The current tenant is available via self.handler.tenant
After i run 'python server.py' on http://localhost:5031 I have message 'FileNotFoundError: [Errno 2] No such file or directory: 'config/default/adminGuiConfig.json''.
How to insert this file?
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.
(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)
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.