Skip to content

Only display the public key when the repo is remote via SSH - #207

Open
olberger wants to merge 11 commits into
YunoHost-Apps:testingfrom
olberger:patch-9
Open

Only display the public key when the repo is remote via SSH#207
olberger wants to merge 11 commits into
YunoHost-Apps:testingfrom
olberger:patch-9

Conversation

@olberger

@olberger olberger commented May 8, 2025

Copy link
Copy Markdown
Contributor

Problem

When a repository is local, the public key setting is displayed nevertheless

PR Status

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

@ericgaspar
ericgaspar changed the base branch from master to testing August 15, 2025 14:39

@fflorent fflorent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you! The intent makes sense.

I think it could be worth to rather use visible prop in config panel:

https://doc.yunohost.org/packaging/advanced/config_panels#visible--enabled-expression-evaluation

Which can be used using match().

If I am correct, it should be simpler, and should simply hide the prompt (which is simply useless).

Regarding the get__ssh_public_key() function, I have added the echo "N/A", which assumes probably too quickly that the missing key suggests that the repository is just a local one. Probably this could be removed.

@fflorent
fflorent force-pushed the testing branch 2 times, most recently from b613794 to 23a9b38 Compare October 9, 2025 20:35
---------

Co-authored-by: Yunohost-Bot <>
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
Co-authored-by: Salamandar <6552989+Salamandar@users.noreply.github.com>
Co-authored-by: Olivier Berger <oberger@ouvaton.org>
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
Co-authored-by: Florent <florent.git@zeteo.me>
Co-authored-by: Kay0u <pierre@kayou.io>
Co-authored-by: Grena <grena@grenabox.fr>
Co-authored-by: JocelynDelalande <JocelynDelalande@users.noreply.github.com>
Co-authored-by: Eauchat <34686393+eauchat@users.noreply.github.com>
Co-authored-by: Olivier Berger <olivier.berger@telecom-sudparis.eu>
Co-authored-by: shukon <shukon@users.noreply.github.com>
Co-authored-by: ljf (zamentur) <zamentur@users.noreply.github.com>
Co-authored-by: Robles Rodolphe <rodolphe.robles@sfr.fr>
yunohost-bot and others added 10 commits October 12, 2025 22:16
According to the documentation:
> BORG_FILES_CACHE_SUFFIX
>    When set to a value at least one character long, instructs borg to use a specifically named (based on the suffix) alternative files cache. This can be used to avoid loading and saving cache entries for backup sources other than the current sources.

Also it is expected that it would speed up borg when many apps are installed (and this would be an alternate fix for YunoHost-Apps#135)
Add custom YAML formatting for systemd timer patterns.
@fflorent
fflorent force-pushed the testing branch 2 times, most recently from 21174e9 to 5470ffe Compare August 14, 2026 08:26
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