156 Commits

Author SHA1 Message Date
Jaime van Kessel
86f4fd65c3 Add a property that lists all ID's that have an update available
CURA-6151
2019-03-22 11:56:53 +01:00
Jaime van Kessel
fd015c0381 Detach the data request and the showing of the dialog from eachother.
This way we can fetch the data without having to show the marketplace.
CURA-6151
2019-03-22 11:30:22 +01:00
Jaime van Kessel
0fded58988 Add / fix typing 2019-01-25 13:35:24 +01:00
Jaime van Kessel
662dd80a1d Add logging if the status code of toolbox request is not 200 2019-01-17 16:06:10 +01:00
Jaime van Kessel
9d94b55596 Ensure that the toolbox correctly handles multiple supported SDK versions
CURA-6087
2019-01-14 13:35:10 +01:00
Jaime van Kessel
b363be4afb Fix typing 2019-01-04 11:48:06 +01:00
Diego Prado Gesto
da69c16e09 Split the constants in to files, indicating which constants each file
stores.

Contributes to CURA-6005.
2018-12-18 16:14:13 +01:00
Diego Prado Gesto
e62a570210 Merge branch '4.0' into CURA-6005_cura_drive_plugin 2018-12-17 11:25:19 +01:00
Lipu Fei
3225512851 Fix typing
CURA-6013
2018-12-13 15:48:06 +01:00
Lipu Fei
b6ea61612e Fix merge conflicts 2018-12-12 13:26:01 +01:00
Jaime van Kessel
e30ca20c54 Merge branch '4.0' of github.com:Ultimaker/Cura into CURA-6013-rate-packages 2018-12-12 11:50:26 +01:00
Lipu Fei
f302a76d3a Fix typing issue in Toolbox
CURA-6006
2018-12-12 10:47:18 +01:00
Lipu Fei
2275e5c71f Refactor code to use constants in CuraConstants
CURA-6005
2018-12-11 12:13:46 +01:00
Jaime van Kessel
70b9a44ae4 Removed import of CuraVersion
CURA-6013
2018-12-10 13:04:02 +01:00
Jaime van Kessel
f4220da550 Adds rough first version of rating stars
It's not fully polished just yet

CURA-6013
2018-12-07 15:31:33 +01:00
Jaime van Kessel
2c9c9d8c96 Handle non-happy path for downloading
CURA-6006
2018-12-06 17:23:02 +01:00
Jaime van Kessel
54def4edee Revert "Moved qml pages of toolbox to a loader"
This reverts commit 838949dac74831e38e9f07fe7d628af7807320db.
2018-12-06 14:12:35 +01:00
Jaime van Kessel
2602d5bf02 Add changed checks to prevent unneeded signals from being fired
CURA-6006
2018-12-06 10:46:19 +01:00
Jaime van Kessel
838949dac7 Moved qml pages of toolbox to a loader
This dramatically improves the loading of the toolbox dialog

CURA-6006
2018-12-06 09:45:27 +01:00
Jaime van Kessel
00e95e68eb Removed unneeded Marketplace tag in logging
The logger does that all by itself already. CURA-6006
2018-12-05 14:26:47 +01:00
Jaime van Kessel
d6630b6881 Removed some more cases where data was duplicated and re-used for different purposes
CURA-6006
2018-12-05 14:09:55 +01:00
Jaime van Kessel
a52f866f81 Move most models out of dictionary
CURA-6006
2018-12-05 14:03:32 +01:00
Jaime van Kessel
07d210483c Greatly decrease the bloat / complexity of the toolbox
There was a lot of stuff going on that didn't need to happen, so I cut those parts out in order
to improve the overview.
2018-12-05 13:42:13 +01:00
Jaime van Kessel
b1440737e6 Remove a whole bunch of unused code
CURA-6006
2018-12-05 13:21:17 +01:00
Jaime van Kessel
d9135ac72f Fix more codestyle issues
CURA-6006
2018-12-05 11:06:14 +01:00
Jaime van Kessel
978a01e4c8 Fix typing & codestyle
CURA-6006
2018-12-05 10:51:05 +01:00
Jaime van Kessel
700ae4bebb Removed super spammy logging
CURA-6006
2018-12-05 10:48:06 +01:00
Ghostkeeper
e9216936d7
Compare SDK version as Version instances
This allows it to compare versions that are remote as integer and local as string, or vice-versa. Much more robust.

Contributes to issue CURA-5940.
2018-11-15 15:20:21 +01:00
Ghostkeeper
78e6494430
Read SDK version from new semver field
The sdk_version field should stay the ordinary plain number (the major version number of the semver field) so that older Cura versions don't break. Newly built packages will get built with both sdk_version_semver and the normal sdk_version, so that the packages can be read with any Cura version from 3.6 onwards.

Contributes to issue CURA-5940.
2018-11-15 15:13:36 +01:00
Remco Burema
5f4e3948d3 Merge branch 'master' into CURA-5840-make-plugin-sdk-use-semantic-versioning 2018-11-13 13:16:22 +01:00
Ghostkeeper
7f54cacd0f
Code style
Discovered during work on CURA-5840.
2018-11-09 14:11:38 +01:00
Lipu Fei
75f2f40534 Make API version configuration for Application
CURA-5840
2018-11-08 12:04:43 +01:00
Jaime van Kessel
9a93f6866a Fix crash of toolbox when metadata got corrupted 2018-11-07 12:03:32 +01:00
Jaime van Kessel
44954c4cad Fixes required for semantic versioning
CURA-5840
2018-11-01 14:15:16 +01:00
Remco Burema
5cb72e298d
Merge pull request #4700 from Ultimaker/CURA-5873_fix_duplicated_generic_materials
Fix duplicated generic materials
2018-10-31 11:47:09 +01:00
Diego Prado Gesto
3e37f2a09d Reset the list of generic materials to emtpy when creating the models.
Contributes to CURA-5873.
2018-10-31 10:31:20 +01:00
Diego Prado Gesto
33da50df26 Rename other entries of the Toolbox to Marketplace.
Add a line in the Changelog indicating that the Toolbox was renamed.

Contributes to CURA-5874.
2018-10-31 09:45:29 +01:00
Diego Prado Gesto
77fd05ac70 Disable other buttons while toolbox is downloading to avoid crashes.
I did it that way to not be risky because we're close to the release.

Contributes to CURA-5778.
2018-10-01 17:21:34 +02:00
Lipu Fei
a33ce8178a Support mulitple bundled_packages JSON files
CURA-5718
2018-09-18 15:53:56 +02:00
Lipu Fei
da047ea674 isInstalled() should check old plugins as a fallback 2018-09-17 17:26:38 +02:00
Lipu Fei
15657f4cfc Remove unneeded code 2018-09-17 17:26:19 +02:00
Lipu Fei
4db213c55a Fix missing import 2018-09-17 16:24:10 +02:00
Lipu Fei
a4b20e046d Merge remote-tracking branch 'origin/3.5' into CURA-5718_fix_upgrade_for_bundled_plugins 2018-09-17 16:22:22 +02:00
Lipu Fei
6d1db55072 Fix SDK version comparison 2018-09-17 16:14:28 +02:00
Lipu Fei
3ac5a316d3 Check package upgradable using PM first, old plugins later
CURA-5718

For package upgradable, we need to check if a package is installed
local. For that, we first check in the package manager, if nothing, then
we fall back to check the old plugins.
2018-09-17 12:05:10 +02:00
Lipu Fei
1064d837ed Exclude bundled plugins in the old plugins list 2018-09-17 12:05:10 +02:00
Jaime van Kessel
4c460b6fa5 Prevent crash if sdk_version is "dev" 2018-09-14 16:15:56 +02:00
Lipu Fei
b39d6c7d87 Package upgrade should also check SDK version 2018-09-13 13:42:53 +02:00
Lipu Fei
d1301d16a9 Skip the do-not-handle URLs instead of returning
CURA-5718

The request-url dict is not ordered so you cannot garuantee the ordering
when you use .items(). This can cause a problem that if a do-not-handle
item occurs first then nothing will be handled at all.
2018-09-12 16:58:22 +02:00
Diego Prado Gesto
e3681ddd9f Also hack the way to get the generic materials, since the tag-filtered
calls to the api don't work yet.

Contributes to CURA-5670.
2018-09-11 13:39:53 +02:00