Git log: commit a8b5a32ff4c2d6afb7531c561e15c933c4717569
Author: James Valleroy <jvalleroy@mailbox.org>
Date: Fri Jan 22 19:33:45 2021 -0500
setup: Enable essential apps that use firewall
Tests in testing container:
- SSH, Service Discovery, and Web Server are shown as enabled on
Firewall page.
- FreedomBox interface can be accessed after disabling Cockpit.
Closes: #2016.
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
commit 566fef18b27b746288db4e70843f204507f2f068
Author: Veiko Aasa <veiko17@disroot.org>
Date: Fri Jan 22 14:19:46 2021 +0200
sharing: Update functional test to use syncthing-access group
'syncthing' group name was replaced by 'syncthing-access' in MR !1995,
update the sharing app functional test to use this new group name.
Test:
- Update the sharing app Apache2 configuration. Run the sharing app tests.
All tests pass.
Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
commit a022eed0eb3901470813e828c3521efa681dd79b
Author: Sunil Mohan Adapa <sunil@medhas.org>
Date: Thu Jan 14 17:44:26 2021 -0800
backups: Show notification on error during scheduled backups
- Keep a count of number of consecutive failures. Reset the count on a
successful backup.
- Keep the count for each repository.
Tests performed:
- Insert an exception into method for running a scheduled backup.
- When the FreedomBox is run in develop mode, it attempts to take backups every
3 minutes.
- It fails and shows the notification. Text is good. The error count is 1 and
error text is same as exception text. Go to backups button redirects to backup
page.
- In another 3 minutes another attempt is made and count increments this time.
- If the notification is dismissed, after another attempt is made, notification
comes back with incremented count.
- When the exception is removed and FreedomBox is restarted, schedule backup
succeeds and notification is dismissed automatically.
- When backup is deleted and exception is reintroduced, the notification comes
back with count reset to 1.
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
commit d4e9e7a965dfb4405e94ca738a6061022b544024
Author: Sunil Mohan Adapa <sunil@medhas.org>
Date: Thu Jan 14 10:50:51 2021 -0800
backups: Add a notification to suggest users to enable schedules
Tests performed:
- Ensure that backups module is setup from version zero by deleting entry in DB.
Start FreedomBox. Observe the notification comes up.
- Dismiss button dismiss the notification.
- Go to button takes us to the backups module.
- Incrementing the version number of the backups app does not show the
notification again.
- Starting with old code, the notification show up when FreedomBox is run.
Incrementing the version number of the backups app after that does not show the
notification again.
- Enable a schedule and the notification should be dismissed.
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
commit eb526275c77a2fefc66c068bf93a11d4935618e2
Author: Sunil Mohan Adapa <sunil@medhas.org>
Date: Tue Jan 5 16:30:36 2021 -0800
backups: Add UI to edit schedules
Closes: #1529.
Tests performed:
- Functional tests for backups app work.
- Functional tests for backup of several apps work.
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
commit b33362cb7ace8d41d696dbfce520a3a79fce76ea
Author: Sunil Mohan Adapa <sunil@medhas.org>
Date: Tue Jan 5 16:31:03 2021 -0800
backups: Trigger schedules every hour
- This will lead to backups only once a day or so.
- In case of errors, backups are tried every hour.
- Cleanups are also triggered but cleanups happen only after a successful
backup.
Tests performed:
- In development mode, a new backup is taken after 3 minutes of enabling a
repository's schedule.
- Error in one repository does not effect the backup of other repositories.
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
commit 2e3ec5ac15b5cc9e831ba846781a76a814e70fb8
Author: Sunil Mohan Adapa <sunil@medhas.org>
Date: Tue Jan 5 15:41:24 2021 -0800
backups: Add a schedule to each repository
This is a simplification of UX by allowing only a single schedule to be attached
to each repository.
Tests performed:
- Editing a schedule works for root, local and remote repositories.
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
commit dfb8b69531ddd2e3d842f4bb9c9d39a28717d686
Author: Sunil Mohan Adapa <sunil@medhas.org>
Date: Tue Jan 12 10:02:18 2021 -0800
backups: Introduce backup scheduling
Tests performed:
- Unit tests work.
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
commit 8c161431ba19e89362778d2edbcea839c5f61465
Author: Sunil Mohan Adapa <sunil@medhas.org>
Date: Fri Jan 15 15:57:33 2021 -0800
backups: repository: Simplify handling of remote repo properties
- Simplify save() method such that a simple load(uuid).save() does not destroy
data. Currently, the verified parameter is lost.
- Drop unused store_credentials argument to save().
- Make verified a property of the SSH repository and instantiate with
it properly.
Tests performed:
- Adding a new remote repository works with SSH verification from unknown and
known hosts.
- Mounting and unmounting works.
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
commit 1170e438a3578ab53d01d4b4db1af5f069182684
Author: Sunil Mohan Adapa <sunil@medhas.org>
Date: Fri Jan 15 15:42:02 2021 -0800
backups: repository: Introduce a prepare method
Useful for abstracting the mount() operation that is not available on non-remote
repositories.
- On non-remote repositories do nothing.
- On remote repositories, mount the location in preparation for operations on
the repository.
Tests performed:
- When an SSH repository is unmounted before a schedule backup, it is
automatically mounted for listing, backup and cleanup at scheduled time.
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
commit 37890488542584b28a8bea1b198823ce6ccc1d00
Author: Sunil Mohan Adapa <sunil@medhas.org>
Date: Wed Jan 6 20:07:10 2021 -0800
backups: Allow storing root repository details
- This allows schedule to be stored along with the repository information.
Tests performed:
- Storing/retrieving a schedule along with root repository works.
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
commit 01e00cdde4fe34dff2e4f590ba4d599a375ca936
Author: Sunil Mohan Adapa <sunil@medhas.org>
Date: Fri Jan 8 15:48:21 2021 -0800
backups: Allow comments to be added to archives during backup
Tests performed:
- Schedules are able to store and retrieve comments properly. Information about
schedule backups stored in comments is extracted properly.
- Unit tests run.
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
commit d3f8e815c1fa5d0b0b4c22dba320ca701a20136f
Author: Sunil Mohan Adapa <sunil@medhas.org>
Date: Sun Jan 10 10:59:05 2021 -0800
backups: tests: Fix a typo in test case name
Tests performed:
- Ran all backup related unit tests.
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
commit d79f97f75209b690064a97596fc82a22dc0db32e
Author: Sunil Mohan Adapa <sunil@medhas.org>
Date: Tue Jan 5 22:18:35 2021 -0800
ui: css: New style for select all checkbox
- Make the box look different from the rest of the options so that this it does
not look like an option without label.
- Give it the appearance of a button so that it is becomes an operation rather
than option.
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
commit 9b8388734dd730a79792d4475b8f6c9c0a381a4f
Author: Sunil Mohan Adapa <sunil@medhas.org>
Date: Tue Jan 5 22:03:34 2021 -0800
ui: js: Make select all checkbox option available more broadly
- Make the code work outside backups module.
- Move code to main.js so that any app can use this functionality.
- Make the code work for multiple such form fields in the same page.
- Use only pure JS, don't use jQuery.
- Add event handlers only after DOM content is loaded to avoid race conditions.
Tests performed:
- Checking the select-all button checks all options.
- De-checking the select-all button de-checks all options.
- De-checking one option when everything is checked, de-checks the select-all
button.
- Checking the last option when everything else is checked, checks the
select-all button.
- When loading a schedule page with all options checked, select-all button is
checked.
- When loading a schedule page with some option unchecked, select-all button is
unchecked.
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
commit 77face68b0131f9ebea4e68a1d788fe9d691467e
Author: Veiko Aasa <veiko17@disroot.org>
Date: Sun Jan 17 17:22:53 2021 +0200
syncthing: Hide unnecessary security warning
- Hide the warning 'The Syncthing admin interface is configured to allow
remote access without a password. ... '. This warning is unnecessary because
we are using authentication through Apache.
- Hide the usage reporting notification by declining reporting, if the user
has not made a choice yet.
- Call add_user_to_share_group() in setup() before starting syncthing to
avoid another syncthing daemon restart.
- Add a functional test for hidden notification messages.
- Functional tests: Improve the method to check if the javascript
loading process is complete.
Closes #1581
Tests performed:
- The syncthing app is installed successfully on Debian testing
- All syncthing tests pass on Debian stable and testing
Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
commit f892843ba5fc64f42ac8d5877cd294fa4845b14d
Author: Veiko Aasa <veiko17@disroot.org>
Date: Thu Jan 14 12:44:33 2021 +0200
syncthing: Create LDAP group name different from system group
When installing the syncthing app, create a LDAP group named "syncthing-access"
instead of "syncthing", because the app creates the "syncthing" system group
to run the syncthing daemon. Duplicate group names can cause some ambiguity as
described in #2008.
- Rename the existing "syncthing" LDAP and Django group to "syncthing-access".
- Update existing web shares to be accessible with new group name
- Functional tests: Add tests to check access to the syncthing site with a user
in the syncthing-access group and no group.
- Functional tests: Scroll to the edit button before clicking. Fixes some test
failures on a smaller browser window.
Fixes #2008
Tests performed on Debian stable and testing:
- Check that the existing "syncthing" group is renamed after upgrade:
1) Without patch applied, install syncthing, create a user in group "syncthing".
2) Apply patch, update Apache2 config file /etc/apache2/conf-available/syncthing-plinth.conf,
reload Apache2, restart plinth.
3) Check that the created user is now in the "syncthing-access" group and can
access /syncthing site.
- Check that the app upgrade succeeds when there are no users in the syncthing group.
- Create a web share accessible by the 'syncthing' group. Check that after the upgrade,
the share is accessible to a member of syncthing-access group.
- All the syncthing app tests pass.
Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
commit e16c541660b35ff4b07e99a45e19a63d12ec7f9a
Author: James Valleroy <jvalleroy@mailbox.org>
Date: Sun Jan 17 12:41:28 2021 -0500
tahoe: Disable app
The tahoe-lafs package is removed from Bullseye due to missing python3
support. The package may be reintroduced later.
I think the app can simply be disabled, because in Buster it was
marked as Advanced, and not really usable anyway.
Closes: #1856.
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
commit 31b5268d9536574e674bd202fb1214d38210ba44
Author: ikmaak <info@ikmaak.nl>
Date: Sun Jan 17 11:55:07 2021 +0000
Translated using Weblate (Serbian)
Currently translated at 10.0% (142 of 1419 strings)
commit 2ffc77ca37a4464fa36eb7ce835c234bc45905b3
Author: ikmaak <info@ikmaak.nl>
Date: Sun Jan 17 11:56:40 2021 +0000
Translated using Weblate (Galician)
Currently translated at 1.6% (24 of 1419 strings)
commit 403f08f289555b06206d3697d7145f22d4dfa025
Author: ikmaak <info@ikmaak.nl>
Date: Sun Jan 17 11:39:49 2021 +0000
Translated using Weblate (Greek)
Currently translated at 75.4% (1071 of 1419 strings)
commit 954500501e37d4192ee2a12eadfccb7de6de3f22
Author: ikmaak <info@ikmaak.nl>
Date: Sun Jan 17 11:49:25 2021 +0000
Translated using Weblate (Bulgarian)
Currently translated at 0.9% (13 of 1419 strings)
commit 3473e19667de0a9b127200bd9f1c30b64be8a10f
Author: ikmaak <info@ikmaak.nl>
Date: Sun Jan 17 11:48:52 2021 +0000
Translated using Weblate (Slovenian)
Currently translated at 6.8% (97 of 1419 strings)
commit 629119ecfa1f424047c913343b5e6a3317ed1a1b
Author: ikmaak <info@ikmaak.nl>
Date: Sun Jan 17 11:56:05 2021 +0000
Translated using Weblate (Lithuanian)
Currently translated at 0.1% (2 of 1419 strings)
commit 979c06fce64a9911ea26e53f3f756193b5499241
Author: ikmaak <info@ikmaak.nl>
Date: Sun Jan 17 11:09:42 2021 +0000
Translated using Weblate (Hungarian)
Currently translated at 90.6% (1287 of 1419 strings)
commit 6a000378b525896c6d079a556322f13b67d8caf7
Author: ikmaak <info@ikmaak.nl>
Date: Sun Jan 17 11:48:11 2021 +0000
Translated using Weblate (Ukrainian)
Currently translated at 5.6% (80 of 1419 strings)
commit 4965c8c6f35d0749260d18e50d4643394322960c
Author: ikmaak <info@ikmaak.nl>
Date: Sun Jan 17 11:37:17 2021 +0000
Translated using Weblate (Czech)
Currently translated at 68.7% (975 of 1419 strings)
commit 6eaa536f7628a220de5fb1541f7aeb10b4342f0f
Author: ikmaak <info@ikmaak.nl>
Date: Sun Jan 17 11:40:04 2021 +0000
Translated using Weblate (Hindi)
Currently translated at 54.8% (778 of 1419 strings)
commit aa208b83fffcfe92d6c5ec55acb406e1f18dfcb7
Author: ikmaak <info@ikmaak.nl>
Date: Sun Jan 17 11:35:11 2021 +0000
Translated using Weblate (Gujarati)
Currently translated at 10.2% (145 of 1419 strings)
commit 3e127e438f57ebda78c4b3f666d8f3f7394899b4
Author: ikmaak <info@ikmaak.nl>
Date: Sun Jan 17 11:38:21 2021 +0000
Translated using Weblate (Persian)
Currently translated at 18.3% (261 of 1419 strings)
commit 5765a1bec701880b24215a881cf1198db3d08329
Author: ikmaak <info@ikmaak.nl>
Date: Sun Jan 17 11:37:54 2021 +0000
Translated using Weblate (Chinese (Simplified))
Currently translated at 42.2% (600 of 1419 strings)
commit efcfdff1c30abcaea175e350ae4f0f4452d0723b
Author: ikmaak <info@ikmaak.nl>
Date: Sun Jan 17 11:08:45 2021 +0000
Translated using Weblate (Russian)
Currently translated at 95.3% (1353 of 1419 strings)
commit 36b8272d55bce98b63988b510560df68a4426bcd
Author: ikmaak <info@ikmaak.nl>
Date: Sun Jan 17 10:54:00 2021 +0000
Translated using Weblate (Swedish)
Currently translated at 99.9% (1418 of 1419 strings)
commit 9eebdb5f21623335a3585c98f6deff65f34da396
Author: ikmaak <info@ikmaak.nl>
Date: Sun Jan 17 11:47:39 2021 +0000
Translated using Weblate (Portuguese)
Currently translated at 11.6% (166 of 1419 strings)
commit 287830e7eaea308f5db7780cdc2bca7bd84d124e
Author: ikmaak <info@ikmaak.nl>
Date: Sun Jan 17 11:42:24 2021 +0000
Translated using Weblate (Dutch)
Currently translated at 100.0% (1419 of 1419 strings)
commit c4382a8535b3e1ce17f366575d1ad51645f8a92a
Author: ikmaak <info@ikmaak.nl>
Date: Sun Jan 17 10:59:25 2021 +0000
Translated using Weblate (Norwegian Bokmål)
Currently translated at 82.8% (1175 of 1419 strings)
commit 453f74ce88e089939c7e90f823b98c2b60f56817
Author: ikmaak <info@ikmaak.nl>
Date: Sun Jan 17 11:15:34 2021 +0000
Translated using Weblate (Italian)
Currently translated at 55.1% (782 of 1419 strings)
commit 906567c215d993d2bae15485ce652b3b840a6b8e
Author: ikmaak <info@ikmaak.nl>
Date: Sun Jan 17 10:54:56 2021 +0000
Translated using Weblate (French)
Currently translated at 99.7% (1415 of 1419 strings)
commit 8c93d3c89718749f773871d2930a161f61a1a105
Author: ikmaak <info@ikmaak.nl>
Date: Sun Jan 17 11:46:38 2021 +0000
Translated using Weblate (Danish)
Currently translated at 47.5% (675 of 1419 strings)
commit 10c9e89eb8983bb1993b80a693c8c9014d5f15b5
Author: Ouvek Kostiva <ouvek.kostiva@gmail.com>
Date: Fri Jan 15 18:18:19 2021 +0000
Translated using Weblate (Chinese (Traditional))
Currently translated at 6.8% (97 of 1419 strings)
commit 565bfbe48505a1f7bb285160c71531e67c33ca6e
Author: Doma Gergő <domag02@gmail.com>
Date: Thu Jan 14 22:32:15 2021 +0000
Translated using Weblate (Hungarian)
Currently translated at 90.6% (1286 of 1419 strings)
commit 02365032c56d34afd4bdbe411f915daa4b45430d
Author: ikmaak <info@ikmaak.nl>
Date: Thu Jan 14 11:40:22 2021 +0000
Translated using Weblate (Polish)
Currently translated at 33.8% (481 of 1419 strings)
commit 3b87134028572d154238044b66d9c0e1cf030aa2
Author: John Doe <thraex@numericable.fr>
Date: Thu Jan 14 15:41:37 2021 +0000
Translated using Weblate (Turkish)
Currently translated at 100.0% (1419 of 1419 strings)
commit bb621d793dceaa2af816501e087207e12d8347b5
Author: Burak Yavuz <hitowerdigit@hotmail.com>
Date: Tue Jan 12 05:32:32 2021 +0000
Translated using Weblate (Turkish)
Currently translated at 100.0% (1419 of 1419 strings)
commit 4e3b60afd42881217e818cca7dd0ebe42a677ffe
Author: ikmaak <info@ikmaak.nl>
Date: Tue Jan 12 15:12:17 2021 +0000
Translated using Weblate (Dutch)
Currently translated at 100.0% (1419 of 1419 strings)
commit c8ccaeffc5d0c96a36e1596b9ebd14e65b4ade1c
Author: ikmaak <info@ikmaak.nl>
Date: Tue Jan 12 12:26:38 2021 +0000
Translated using Weblate (Spanish)
Currently translated at 99.8% (1417 of 1419 strings)
commit 6c4b0df082f75708b4761216f3516b7c578bb7d8
Author: ikmaak <info@ikmaak.nl>
Date: Tue Jan 12 12:22:14 2021 +0000
Translated using Weblate (German)
Currently translated at 100.0% (1419 of 1419 strings)