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

Fix upgrade from previous versions #229

Merged
merged 3 commits into from
Jan 5, 2025
Merged

Conversation

matjack1
Copy link
Contributor

@matjack1 matjack1 commented Jan 1, 2025

Problem

When updating the YunoHost patches were not applied and so the installation wasn't working properly, for example the login wasn't working as expected.

Existing reports:

The existing conversation in the forum: https://forum.yunohost.org/t/cannot-log-in-with-latest-wallabag-update/31073

Solution

Following the documentation https://doc.yunohost.org/en/packaging_apps_helpers_v2.1#ynh-setup-source (open the toggle for the full description) I moved the patches to the right folder:

Patches named patches/${src_id}/*.patch will be applied to $dest_dir

So the patches are correctly applied and SSO is working again.

PR Status

  • Code finished and ready to be reviewed/tested
  • The fix/enhancement were manually tested (if applicable)

Automatic tests

Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/ after creating the PR, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)

@lapineige lapineige changed the base branch from master to testing January 1, 2025 17:59
@lapineige
Copy link
Member

Please never try to merge into master :)

@lapineige
Copy link
Member

!testme

@yunohost-bot
Copy link
Contributor

Alrighty!
Test Badge

@yunohost-bot
Copy link
Contributor

Living in the past, are we? 🐮👁️
Test Badge

@matjack1
Copy link
Contributor Author

matjack1 commented Jan 1, 2025

Please never try to merge into master :)

oh sorry! I didn't know, is there a place where I can read more contributing guidelines? Anyway, thank you for checking the PR immediately! :)

@lapineige
Copy link
Member

Ok then it seems to work for the basic CI tests.
Someone else has to try fresh install and upgrade (from broken instance too) to know if it fixes logging.

@ed0mm
Copy link

ed0mm commented Jan 5, 2025

Upgraded to 2.5.4-ynh11 from an installation working thanks to setting it to a previous php-mysql + setting user with a workaround.
Everything working as expected from login, ldap looks fixed!!

@lapineige
Copy link
Member

thanks to setting it to a previous php-mysql

What do you mean ?

@lapineige lapineige merged commit bff1cd9 into YunoHost-Apps:testing Jan 5, 2025
@lapineige
Copy link
Member

Based on feedback on the forum, it looks ok to merge soon.

lapineige added a commit that referenced this pull request Jan 5, 2025
* Update manifest.toml

* Auto-update READMEs

* Update manifest.toml

* Auto-update READMEs

* Fix upgrade from previous versions (#229)

* Move patches to the right folder

Following the documentation here: https://doc.yunohost.org/en/packaging_apps_helpers_v2.1#ynh-setup-source

* Bump version

---------

Co-authored-by: lapineige <[email protected]>

* Auto-update READMEs

---------

Co-authored-by: yunohost-bot <[email protected]>
Co-authored-by: Matteo Giaccone <[email protected]>
Co-authored-by: lapineige <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants