1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/superset_ynh.git synced 2024-09-03 20:26:31 +02:00

Fixes and linter appeasement

This commit is contained in:
tituspijean 2024-01-26 00:13:43 +01:00
parent a8e265b12c
commit ef9b24475f
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
10 changed files with 57 additions and 4 deletions

21
LICENSE Normal file
View file

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2024 YunoHost contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

15
doc/DESCRIPTION.md Normal file
View file

@ -0,0 +1,15 @@
Superset is a modern data exploration and data visualization platform. Superset can replace or augment proprietary business intelligence tools for many teams. Superset integrates well with a variety of data sources.
Superset provides:
- A no-code interface for building charts quickly
- A powerful, web-based SQL Editor for advanced querying
- A lightweight semantic layer for quickly defining custom dimensions and metrics
- Out of the box support for nearly any SQL database or data engine
- A wide array of beautiful visualizations to showcase your data, ranging from simple bar charts to geospatial visualizations
- Lightweight, configurable caching layer to help ease database load
- Highly extensible security roles and authentication options
- An API for programmatic customization
- A cloud-native architecture designed from the ground up for scale
*-- Superset's Github repository*

BIN
doc/screenshots/explore.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 435 KiB

View file

@ -0,0 +1,4 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=https://github.com/
HostUrl=https://raw.githubusercontent.com/apache/superset/master/superset-frontend/src/assets/images/screenshots/explore.jpg

View file

@ -23,7 +23,7 @@ yunohost = '>= 11.2'
architectures = "all" architectures = "all"
multi_instance = true multi_instance = true
ldap = true ldap = true
sso = "false" sso = false
disk = "1G" disk = "1G"
ram.build = "500M" ram.build = "500M"
ram.runtime = "500M" ram.runtime = "500M"
@ -40,6 +40,8 @@ ram.runtime = "500M"
[install.init_admin_permission] [install.init_admin_permission]
type = "group" type = "group"
default = "admins" default = "admins"
ask.en = "Select which group should have Admin role in Superset. Other roles (Alpha, Gamma, Public) can be defined after installation."
ask.fr = "Sélectionnez quel groupe devrait avoir le rôle Admin dans Superset. Les autres rôles (Alpha, Gamma, Public) pourront être définis après installation."
[resources] [resources]

View file

@ -14,6 +14,8 @@ source /usr/share/yunohost/helpers
#================================================= #=================================================
ynh_print_info --message="Declaring files to be backed up..." ynh_print_info --message="Declaring files to be backed up..."
ynh_backup --src_path="$install_dir"
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_backup --src_path="/etc/logrotate.d/$app" ynh_backup --src_path="/etc/logrotate.d/$app"

View file

@ -82,7 +82,7 @@ ynh_use_logrotate
ynh_script_progression --message="Starting app's systemd service..." ynh_script_progression --message="Starting app's systemd service..."
# Start a systemd service # Start a systemd service
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="Running on http" --timeout=30
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT

View file

@ -13,7 +13,7 @@ source /usr/share/yunohost/helpers
#================================================= #=================================================
ynh_script_progression --message="Removing user database for $app..." ynh_script_progression --message="Removing user database for $app..."
ynh_mysql_remove_db --db_user=$userdata_db_user --db_name=$userdata_db_user ynh_mysql_remove_db --db_user=$userdata_db_user --db_name=$userdata_db_name
#================================================= #=================================================
# REMOVE SYSTEM CONFIGURATIONS # REMOVE SYSTEM CONFIGURATIONS

View file

@ -78,7 +78,7 @@ ynh_use_logrotate --non-append
#================================================= #=================================================
ynh_script_progression --message="Starting a systemd service..." ynh_script_progression --message="Starting a systemd service..."
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="Running on http" --timeout=30
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT

9
tests.toml Normal file
View file

@ -0,0 +1,9 @@
#:schema https://raw.githubusercontent.com/YunoHost/apps/master/schemas/tests.v1.schema.json
test_format = 1.0
[default]
preinstall = """
sudo yunohost user group add admins package_checker
"""