Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage default application with DomainConfigPanel #1406

Merged
merged 4 commits into from Jan 24, 2022
Merged

Manage default application with DomainConfigPanel #1406

merged 4 commits into from Jan 24, 2022

Conversation

Tagadda
Copy link
Contributor

@Tagadda Tagadda commented Jan 7, 2022

The problem

yunohost app makedefault my_app is great!

Fix YunoHost/issues#40

Solution

yunohost domain config set domain.tld feature.app.default_app -v myapp or using the webadmin!

Then it's generated in app_ssowatconf, not in conf.json.persistent anymore.

The redirection is updated when the app change url or is removed. ✨

I made makedefault use the config system too so it's not broken o/

PR Status

Tested locally and ready for reviews. 🎊

I'm not sure about the webadmin, I don't know what I'm doing with Vue but it-works! ™️

How to test

Using ynh-dev, pull this PR and the yunohost-admin PR.

cp /ynh-dev/yunohost/data/other/config_domain.toml /usr/share/yunohost/other/

@Tagadda Tagadda marked this pull request as draft January 9, 2022 14:21
@Tagadda Tagadda marked this pull request as ready for review January 9, 2022 14:29
Copy link
Member

@alexAubin alexAubin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (no major issue), still need to give this a try

src/yunohost/utils/config.py Outdated Show resolved Hide resolved
src/yunohost/app.py Outdated Show resolved Hide resolved
src/yunohost/app.py Outdated Show resolved Hide resolved
src/yunohost/app.py Outdated Show resolved Hide resolved
@Tagadda Tagadda marked this pull request as draft January 14, 2022 03:42
@Tagadda Tagadda marked this pull request as ready for review January 14, 2022 05:14
Tagadda and others added 4 commits January 19, 2022 23:04
[enh] makedefault with domain_config_set()

[enh] Allow webadmin to reverse makedefault

[legacy] translate legacy redirections to new domain config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants