Ghostkeeper
c6af6565a3
More descriptive and appropriate logging
...
Contributes to issue CURA-7488.
2020-06-08 17:58:42 +02:00
Ghostkeeper
7e10e74e9e
Don't send print job in chunks
...
Previously the print job was sent with multiple PUT requests. This was necessary since the request was made with the Python Requests library, which freezes the interface while it's running. By breaking the upload up in chunks, it would at least periodically keep updating the interface (4 times per second or so, depending on your internet speed and Ultimaker's). Later on, this was replaced by a QNetworkRequest which doesn't freeze the interface in a refactor, but it was still broken up in chunks.
Recently that was again refactored to use Uranium's HttpRequestManager, which under the covers also uses QNetworkRequest. This also doesn't freeze while uploading, which is good. However for some reason the second chunk would always give a QNetworkReply::ProtocolUnknownError, which is a bit of a catch-all error for any HTTP status codes not supported by Qt. I was not able to figure out what was really going wrong there, but it has something to do with the content-range header and making multiple requests.
Instead of fixing that, I've removed the chunking. This simplifies the code a lot and doesn't have any implications for the user, since it still doesn't freeze the interface while the network request is ongoing. It should be slightly faster to upload, and reduce load on the server too.
However the disadvantage is that the original bug is probably still there if it was a bug in the HttpRequestManager. If it was a bug in the ToolPathUploader I probably deleted the bug here.
Contributes to issue CURA-7488.
2020-06-08 17:55:07 +02:00
Kostas Karmas
42daef0a75
Remove spam info message
2020-06-05 13:20:38 +02:00
Gabriel Vogel
2ebf32831a
remove duplicate updates for model properties
2020-06-04 13:50:24 +02:00
Ghostkeeper
b2ce1419cf
Don't crash when syncing material that has no colour code
...
Use the colour code for Generic PLA then.
2020-06-03 17:48:28 +02:00
Kostas Karmas
be9aec624a
Use the um_cloud_cluster_id metadata when removing the cloud printer
...
CURA-7457
2020-06-03 11:13:21 +02:00
Kostas Karmas
d0534c0476
Update _remote_clusters dict when cloud printer is removed from Cura
...
CURA-7457
2020-06-02 15:23:35 +02:00
Jaime van Kessel
f1d3c2272e
Merge branch 'CURA-7458_Add_offline_cloud_printers_in_Cura' of github.com:Ultimaker/Cura
2020-06-02 10:55:21 +02:00
Nino van Hooff
89f0970a88
Remove trailing whitespace from Python files
2020-05-29 14:30:33 +02:00
Nino van Hooff
1e33360c35
Fix merge mistake in ToolPathUploader
2020-05-29 14:12:47 +02:00
Kostas Karmas
5aff6218d5
Add the offline cloud printers in Cura when they are discovered
...
CURA-7458
2020-05-29 14:02:36 +02:00
Nino van Hooff
58ffc9dcae
Merge remote-tracking branch 'origin/master' into doxygen_to_restructuredtext_comments
...
# Conflicts:
# cura/API/__init__.py
# cura/Settings/CuraContainerRegistry.py
# cura/Settings/ExtruderManager.py
# plugins/PostProcessingPlugin/scripts/PauseAtHeight.py
# plugins/UM3NetworkPrinting/src/Cloud/CloudApiClient.py
# plugins/UM3NetworkPrinting/src/Cloud/ToolPathUploader.py
# plugins/UM3NetworkPrinting/src/Network/LocalClusterOutputDeviceManager.py
2020-05-28 17:31:24 +02:00
Konstantinos Karmas
56e8827d00
Merge pull request #7831 from Ultimaker/CURA-7437_no_internet_cloud_status
...
CURA-7437_no_internet_cloud_status
2020-05-28 10:02:15 +02:00
Nino van Hooff
ca333b4e8a
Revert commented lines
...
CURA-7437
2020-05-26 16:45:17 +02:00
Jaime van Kessel
280d3f07a6
Merge branch 'CURA-7290_manual_account_sync' of github.com:Ultimaker/Cura
2020-05-26 11:52:14 +02:00
Nino van Hooff
eef347ed6c
Add an cloud unavailable icon to the active printer icon
...
CURA-7437
2020-05-20 17:20:40 +02:00
Kostas Karmas
b5e971f9ec
Update remove cloud printer pop-up message
...
CURA-7436
2020-05-20 15:21:57 +02:00
Nino van Hooff
e7af27ff80
Add type hint to plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py
...
Co-authored-by: Jaime van Kessel <nallath@gmail.com>
2020-05-19 14:14:59 +02:00
Nino van Hooff
252b993169
Refactor removal warning message to CloudOutputDeviceManager
...
CURA-7436
2020-05-18 16:22:55 +02:00
Jaime van Kessel
8f22e62675
Fix typing issues
...
CURA-7290
2020-05-18 13:47:03 +02:00
Nino van Hooff
5eb5ffd916
Convert doxygen to rst for UM3NetworkPrinting
2020-05-15 15:05:38 +02:00
Nino van Hooff
9acf8b6122
Revert "Add a sync timeout to CloudOutputDeviceManager"
...
Stopgap solution is not necessary anymore after CloudOutputDeviceManager
after implementing timeouts on the http-level.
This reverts commit 15f813a4
2020-05-15 11:32:49 +02:00
Nino van Hooff
f3c66c3189
Refactor CloudApiClient (and ToolpathUploader) to use HttpRequestManager
...
Has the benefit of a more unified Http request management + timeouts
CURA-7290
2020-05-15 11:28:17 +02:00
Nino van Hooff
15f813a4ff
Add a sync timeout to CloudOutputDeviceManager
...
Fixes an issue where printer syncing breaks when switching networks etc.
CURA-7290
2020-05-14 15:47:45 +02:00
Nino van Hooff
b40b8e8489
Merge remote-tracking branch 'origin/master' into CURA-7290_manual_account_sync
...
# Conflicts:
# cura/API/Account.py
2020-05-12 14:59:01 +02:00
Nino van Hooff
1ae050bbc5
Expose Account.SyncState as an Enum to QML
...
Provides a single source of truth
CURA-7290
2020-05-08 11:09:48 +02:00
Nino van Hooff
9b79b70f2b
Merge branch 'CURA-7290_auto_sync_packages' into CURA-7290_manual_account_sync
...
# Conflicts:
# cura/API/Account.py
# plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py
2020-05-06 16:03:37 +02:00
Nino van Hooff
bfae7e9fb1
Replace some hard-coded sync states
...
CURA-7290
2020-05-06 12:54:07 +02:00
Remco Burema
2687578a86
Merge pull request #7624 from Ultimaker/CURA-7022_Add_cloud_printer_within_add_a_connected_printer
...
Cura 7022 add cloud printer within add a connected printer
2020-05-06 11:13:27 +02:00
Nino van Hooff
eac884fcd2
Convert SYNC_STATES to Enum
...
CURA-7290
2020-05-04 17:26:38 +02:00
Nino van Hooff
88ff68e40c
Also check for package updates automatically
...
Moves the 30-second sync timer from CloudOutputDeviceManager to
Account and subscribes CloudPackageChecker to the timer.
CURA-7290
2020-05-04 16:56:09 +02:00
Nino van Hooff
049c1946d4
Create Account sync state interface to allow for multiple sync services
...
Needed to add the package sync
CURA-7290
2020-05-04 13:52:40 +02:00
Nino van Hooff
81d02d5d58
Implement printer cloud sync error state
...
CURA-7290
2020-05-04 13:19:16 +02:00
Nino van Hooff
0aed6d3731
Connect the manual sync button
...
CURA-7290
2020-05-01 15:56:09 +02:00
Kostas Karmas
80a4cfbd75
Remove duplicated line
...
This line is called both outside and inside of _setOutputDeviceMetadata(...)
CURA-7055
2020-04-30 14:03:34 +02:00
Kostas Karmas
b008f1e823
Merge branch 'master' into CURA-7022_Add_cloud_printer_within_add_a_connected_printer
2020-04-29 15:37:53 +02:00
Ghostkeeper
dcac9b6a87
Prevent a crash when retrying even though it completed in the meanwhile
...
Fixes Sentry issue CURA-NA.
2020-04-29 14:07:03 +02:00
Jaime van Kessel
084e80bcda
Only connect a cloud printer if it's the active one
...
By splitting up the correctly setting of metadata and actually
connecting, the distinction can be made.
CURA-7055
2020-04-29 13:48:06 +02:00
Kostas Karmas
eda868f938
Make the discovered cloud printers model generic
...
Removed the dependency of the DiscoveredCloudPrintersModel on CloudOutputDevice,
which is Ultimaker specific. This can allow even external plugins to add to this
model in the future.
CURA-7022
2020-04-29 13:31:45 +02:00
Kostas Karmas
ea404af973
Transfer cloudPrintersDetectedChanged in DiscoveredUltimakerCloudPrintersModel
...
CURA-7022
2020-04-28 14:19:28 +02:00
Kostas Karmas
6583f5f5ac
Reset the model when pressing the Add cloud printer button
...
CURA-7022
2020-04-28 12:08:48 +02:00
Kostas Karmas
49cb1d325e
Update the DiscoveredCloudUltimakerPrinters model
...
Whenever new cloud devices are detected on the ultimaker account, add
them to the model
CURA-7022
2020-04-24 19:17:34 +02:00
Nino van Hooff
3ba284b36c
Merge pull request #7539 from Ultimaker/CURA-7019_Move_sign_in_screen_in_front_of_add_printer_in_first_run_wizard
...
Cura 7019 move sign in screen in front of add printer in first run wizard
2020-04-23 14:56:31 +02:00
Jaime van Kessel
0bf862f9a9
Merge branch 'master' of github.com:Ultimaker/Cura
2020-04-23 11:39:04 +02:00
Jaime van Kessel
45dc8bcc68
Fix warnings about output device not being detected
...
CURA-7055
2020-04-23 11:38:34 +02:00
Ghostkeeper
d9cdea9496
Don't crash when material file is missing
...
This could happen because a material is deleted right at that moment, since the SendMaterialJob is done on a separate thread.
Fixes Sentry issue CURA-JZ.
2020-04-23 11:10:52 +02:00
Jaime van Kessel
6746106608
Also connect with cloudOutput device if it was added
...
CURA-7055
2020-04-23 11:07:21 +02:00
Jaime van Kessel
7c7c1ad96c
Fix remote_clusters not being added in second boot
...
CURA-7055
2020-04-23 10:58:16 +02:00
Kostas Karmas
1602b71841
Inform the Cloud page about new cloud printers
...
Properly close the welcome screen if the user has signed in and has
cloud printers linked to his/her account. If he doesn't have any, move
to the next page of the welcome wizard.
CURA-7019
2020-04-23 09:59:32 +02:00
Kostas Karmas
1262d1f641
Activate the first available Cloud printer if the activeMachine is empty
...
CURA-7019
2020-04-22 18:31:04 +02:00