1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2025-03-15 00:22:03 +00:00
Commit graph

844 commits

Author SHA1 Message Date
Sam
3c3c19716d
Merge branch 'master' into issue1799 2024-05-04 04:03:24 +05:30
Manu
9cabbbd193 Input to change macOS version for building 2024-04-08 16:24:31 +01:00
Aryaman Sharma
3268bf1599
Notify after post_backup_tasks. By @TheLazron (#1940) 2024-04-07 18:05:04 +01:00
Manu
7642002573 Fix stalebot config 2024-04-07 08:40:45 +01:00
Sam
58137f004d
Add new exclusion presets (#1970) 2024-04-06 22:35:31 +01:00
Parnassius
9b8dbcecfb
Sort profiles in the Backup Now tray menu (#1899)
The profile list in the main window is already sorted by name (alphabetically, case-sensitive). However the profile list in the *Backup Now* action found in the tray menu wasn't. This commit constructs the sql query to return the profiles in order.

* src/vorta/tray_menu.py
2024-04-01 21:00:53 +02:00
Sam
49bfe55777
Merge branch 'borgbase:master' into issue1799 2024-04-01 23:08:44 +05:30
Adwait
bde55188e4
Disabled "Collapse" button in "Flat" view (#1855)
Our `DiffResultDialog` and `ExtractDialog` show a context menu for items of the list/tree view. The collapse action in this menu only makes sense for the tree mode of the view. This commit therefore enables the option only for this view mode.

* src/vorta/views/extract_dialog.py
* src/vorta/views/diff_result.py

* tests/unit/test_diff.py : Add tests for the new behaviour.
* tests/unit/test_extract.py
2024-04-01 16:37:58 +02:00
yfprojects
978304fe89
Merge branch 'master' into issue1799 2024-04-01 12:58:37 +00:00
Shivansh Singh
d721011c90
VSC and Android exclusion patterns. By @shivansh02 (#1967) 2024-03-15 11:51:42 +00:00
Sam
41ea359cab fix for remote repos 2024-02-25 12:54:21 +05:30
Sam
88cb2dcb8e
Merge branch 'borgbase:master' into issue1799 2024-02-22 15:53:26 +05:30
Shivansh Singh
b2cf5b1fc9
Move log file link below logs table. By @shivansh02 (#1939) 2024-02-21 20:11:45 +00:00
Shivansh Singh
472c7c8996
Fix About dialog wording and year. By @shivansh02 (#1936)
* fix: about dialogue grammar and copyright year
* fix: made about dialogue copyright year dynamic
2024-02-14 11:35:33 +00:00
Hofer-Julian
d8cce255eb
Add developer name to appdata (#1922)
* Add developer name to appdata

Flathub is getting more and more strict when it comes to metadata.
I've added "Vorta developers" no, I can also be more specific if people prefer that.

* Update com.borgbase.Vorta.appdata.xml
2024-02-08 11:29:14 +00:00
Jeff Ramnani
634f984e78
Improve metered connection detection for macOS. By @jramnani (#1902)
* Add dependency for pyobjc-CoreWLAN on darwin

* Rename existing implementation with Android

The current implementation was tested with Android, but does not work
with iOS.

Move the existing implementation and include android in the name to make
room for adding a new iOS metered connection detection strategy.

* get_current_wifi works with objc

Switch from using command line tools to using the Objective-C Cocoa API
to get the Wi-Fi status information.

Cocoa has an API to specifically check whether a Wi-Fi connection is
using a Personal Hotspot on iOS.

I'm using a private method to get the Wi-Fi interface object in Cocoa.
The reason for this is that cleaning up mocks on PyObjC/ObjC objects is
much harder than mocking out methods on objects in our control. Using
test doubles also let's me check for different states the Wi-Fi network
could be in.

* get_known_wifis works on darwin

Use the networksetup command on macOS to get the list of the user's
Wi-Fi networks.

  networksetup -listpreferredwirelessnetworks bsd_device

It looks like this command and option has existed on macOS since at
least 2013.

Also add some type annotations around the PyObjC return values to help
the reader know what they're dealing with at each step.

* Add test for get_current_wifi when wifi is off

The user might have Wi-Fi turned off. Account for that use case.

* Add iOS Personal Hotspot support to is_network_metered

The DarwinNetworkManager can now determine if the user is connected to
a Personal Hotspot Wi-Fi network from iOS.

Account for whether the user has Wi-Fi turned on and off.

* Refactor to avoid deprecated API in Cocoa

According to Apple's developer documentation, creating CWInterface
objects directly are discouraged. Instead, they prefer to use
CWInterface objects created by CWWiFiClient.

This also happens to be more compliant with Apple's application sandbox.
Creating CWInterface objects directly accesses raw BSD sockets which is
not allowed in the sandbox.

More details here:
https://developer.apple.com/documentation/corewlan/cwinterface

* Add test case for blank Wi-Fi network name

I have one of these in my list of networks in Vorta. And this also
covers a missing branch in get_known_wifis.

* Move private method below public methods

This is to provide a little more clarity. Especially since this class is
subclassing another one.

* Account for when there is no wifi interface

When a Mac does not have a Wi-Fi interface, CWWiFiClient.interface() can
return None.

Update the type annotation to mark it as Optional, and account for the
null condition in the other methods.

* Fix type annotation error

The CI tests failed on python 3.8.

I used the wrong type annotation to describe a list of SystemWifiInfo's.

The tests now pass for me when I run 'make test-unit' using a python 3.8
interpreter.

* Fix linter issue with imports
2024-02-02 12:05:47 +00:00
Hofer-Julian
0cc15e3d3d
Update appdata.xml (#1885)
The appdata.xml doesn't pass validation of flathub

1. The `launchable` tag is nowadays required
2. Flatpak doesn't like the beta releases. In the end, it only made sense to remove them from the xml
2024-01-25 11:06:56 +01:00
Manu
4665972076
Fix issue after Qt6 migration to save allowed Wifis (#1903) 2024-01-20 10:26:06 +00:00
Sam
d3320428bb
Merge branch 'borgbase:master' into issue1799 2024-01-11 15:17:56 +05:30
Manu
9cc7a98838 Minor: color settings icon 2024-01-11 08:27:25 +00:00
Manu
1d85cb48dc Bump version to v0.9.1 2024-01-10 13:20:01 +00:00
Manu
be6e08552a
Update screencast for v0.9 (#1881) 2024-01-10 13:11:38 +00:00
Manu
115ec2864e
Merge branch 'master' into issue1799 2024-01-09 08:10:17 +00:00
TW
675010e401
Random cleanups by @ThomasWaldmann (#1879)
* fix PEP8 E721

do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()`

* remove redundant parentheses

* fix SiteWorker.run for empty job queue

local variable job is not assigned if queue was empty
when calling .run(), but it is used in exception handler.

* remove unreachable code in parse_diff_lines

* bug fix for unreachable code in is_worker_running

the code intended to check if *any* worker is running for
any site was *unreachable*.

this caused false negative results for site=None.

* check_failed_response: remove outdated part of docstring

* pull request template: fix relative path to LICENSE.txt

* fix typos

* use logger.warning, .warn is deprecated
2024-01-09 08:06:48 +00:00
Manu
1f062359d8 Minor: include exclusion presets for macos package 2023-11-30 11:34:03 +00:00
Manu
3fdc4eca3c Bump version to v0.9.1-beta3 2023-11-30 07:09:49 +00:00
Manu
b502fc3fd3
Exclude GUI. By @diivi (#1846) 2023-11-24 21:19:28 +00:00
Adwait
c9f170aecf
Backup settings.db before migrations. By @AdwaitSalankar (#1848) 2023-11-24 15:29:28 +00:00
Sam
75f276e195
Merge branch 'borgbase:master' into issue1799 2023-11-17 18:38:33 +05:30
Stefano Rivera
98b64621c2
Loosen platformdirs dependency (#1843)
4.x is backwards compatible with 3.x except that site_cache_dir has
moved to /var/cache. Vorta doesn't use this.

https://github.com/platformdirs/platformdirs/releases/tag/4.0.0
2023-11-14 15:54:20 +00:00
Sam
1b57400085
Merge branch 'borgbase:master' into issue1799 2023-11-08 15:35:54 +05:30
Manu
b3550991e3 Bump version to v0.9.1-beta2 2023-10-27 13:39:42 +01:00
Manu
4c7b119b3e Minor: add missing notarization env var 2023-10-27 12:07:59 +01:00
Manu
8d0870ea3b
Update macOS notarization for use with notarytool (#1831) 2023-10-24 11:37:40 +01:00
Ted Lawson
071dd86ded
Profile sidebar and new setting interface. By @bigtedde (#1809) 2023-10-24 09:36:50 +01:00
real-yfprojects
cff9e3a26d
Pass is_remote_repo attribute between the dialog.
Now when the `AddRepoWindow` with the values from `ExistingRepoWindow` the `is_remote_repo` attribute will be restored,
preventing an error message when trying to add the repository.

* src/vorta/views/repo_add_dialog.py
2023-10-20 19:40:31 +02:00
real-yfprojects
f71c8f8675
Store full error (log) messages for borg jobs and fix new feature.
This allows accessing `msgid` from `ExistingRepoWindow`.

* src/vorta/application.py
* src/vorta/borg/borg_job.py
* src/vorta/views/repo_add_dialog.py
* tests/unit/test_repo.py
2023-10-06 19:08:42 +02:00
real-yfprojects
45176f8b4a
Simplify code, make it more modular.
This improves the code that open the `AddRepoWindow` when one tries to add an existing repo although it doesn't exist.

* src/vorta/views/repo_add_dialog.py
2023-10-06 18:32:06 +02:00
Sam
b0ec304cc0
Merge branch 'borgbase:master' into issue1799 2023-10-05 06:10:36 +00:00
Ted Lawson
60f9fc27b4
Unit test improvements and coverage increase. By @bigtedde (#1787) 2023-10-01 09:19:39 +01:00
Sam
0ec083e88f
Merge branch 'borgbase:master' into issue1799 2023-09-29 21:16:26 +05:30
Manu
c807f93faf Bump version to v0.9.1-beta1 2023-09-27 11:20:55 +01:00
Ted Lawson
15fa46ff85
Improve SSH key process. By @bigtedde (#1802) 2023-09-26 14:22:54 +01:00
Ted Lawson
cff00ad8e1
Add '.log' suffix to log files. By @bigtedde (#1710) 2023-09-25 22:51:17 +01:00
Sam
92cc9aeae8
Merge branch 'borgbase:master' into issue1799 2023-09-20 17:02:46 +05:30
Sam
780082e3b8 shortened 2023-09-19 18:14:35 +05:30
Ted Lawson
43140beda1
Refactor archive context menu. By @bigtedde (#1793) 2023-09-19 11:09:55 +01:00
Pradyot Ranjan
3573bdbc78
Minor: README type. By @prady0t (#1822) 2023-09-19 10:02:47 +01:00
Sam
7023ab6959 added differentiation for adding repo via folder and remote, implementing setting of values from the values method 2023-09-15 19:14:30 +05:30
Sam
44639daafe added differentiation for adding repo via folder and remote, implementing setting of values from the values method 2023-09-15 18:17:57 +05:30