Adriaan de Groot
941b5af3a2
[libcalamares] Rip out the guts of job-queue-running
...
- compute weights and accumulations beforehand
- mutex-lock structures so you can enqueue while running jobs
- simplify progress reporting calculations
- doesn't actually run any jobs
2020-08-19 12:54:40 +02:00
Adriaan de Groot
08ea51a344
[partition] Fix tests after removal of single-job-enqueue
2020-08-19 11:28:53 +02:00
demmm
8ad7184024
[usersq] users.qml update some config vars
...
reflect changes from users/Config.cpp
corrected id missing capital
mirror UsersQmlViewStep.cpp/h with the users versions
connections are still not made
2020-08-18 20:06:30 +02:00
Adriaan de Groot
38862660c7
Changes: credit for stringlist fixes
2020-08-18 17:20:53 +02:00
Adriaan de Groot
ecaf97aa60
[users] Tests of config-loading of groups lists
2020-08-18 17:20:37 +02:00
Adriaan de Groot
ab3e393d45
[users] Protect against a nullptr deref
...
- there is typically no GS during tests
2020-08-18 17:20:08 +02:00
Adriaan de Groot
4b4d7f3b10
[libcalamares] Print a big fat warning before a typical now-crash situation
2020-08-18 17:17:29 +02:00
Adriaan de Groot
2ac518d8b9
[libcalamares] Change in stringlist extraction also changes single-string
2020-08-18 16:44:56 +02:00
Adriaan de Groot
41e2de85b1
[libcalamares] Fix up test -- 'lam' isn't supposed to be in the loaded data
2020-08-18 16:43:18 +02:00
Adriaan de Groot
a5555c3f94
Merge pull request #1491 from asif-mahmud/calamares
...
[libcalamares] retrieving string list fix
2020-08-18 16:41:56 +02:00
Adriaan de Groot
e55def87e9
[libcalamares] Test for Variant methods
...
In advance of PR #1491 , test loading and stringlist extraction.
- from code, extraction works "normally"
- for YAML data, the stringlist isn't actually a stringlist
2020-08-18 16:40:33 +02:00
Adriaan de Groot
117859082e
[libcalamares] Merge Tests.h into Tests.cpp
...
- no real need for separate file in the utils/ tests
2020-08-18 16:40:33 +02:00
Adriaan de Groot
626ac572d9
Merge branch 'hotfix-3.2.28.2' into calamares
2020-08-18 15:19:06 +02:00
Adriaan de Groot
871b56255b
Changes: correct the release day
...
FIXES #1489 (that's the hotfix for this release)
FIXES #1480 (needed to fix the above)
2020-08-18 15:13:43 +02:00
Calamares CI
695c1ea190
i18n: [python] Automatic merge of Transifex translations
2020-08-18 14:58:18 +02:00
Calamares CI
dc81c76e5b
i18n: [calamares] Automatic merge of Transifex translations
2020-08-18 14:58:17 +02:00
Adriaan de Groot
c92e12ef74
[users] Consistent styling of status badges on input fields
...
- Use Status* icons rather than the yes/no
2020-08-18 12:48:51 +02:00
Adriaan de Groot
fd2399f702
[users] Re-check password validity on change of conditions
...
- if the user password is reused (or not) then check the
status of the passwords against the new reuse-setting
- if the allow-weak-passwords setting is changed, then
check the status of passwords (both of them) against
the new weakness setting
2020-08-18 12:46:27 +02:00
Adriaan de Groot
5d016baee9
[hostinfo] Fix up ARM "detection"
...
As explained by Kevin Kofler and abucodonosor, the
implementer line can carry a bunch of different values,
but none of them are actually interesting. Simplify
the code.
2020-08-18 12:33:42 +02:00
Adriaan de Groot
3ecab4bedb
[users] Fix test building
...
- now Config can create jobs, tests that consume Config need
to build the jobs as well; re-jig CMakeLists to make
those a little easier.
2020-08-18 11:41:43 +02:00
Adriaan de Groot
2c72524f29
[users] Move job-creation to Config
...
- this makes Config entirely stand-alone: it has all the business
logic and can be hooked up to alternate UIs or used from
other view steps or jobs
2020-08-18 11:31:32 +02:00
Adriaan de Groot
abae942e55
[users] Complete isReady move to Config
...
- give Config slots and signals for ready-status
- disconnect the page from the viewstep and use the Config object
ready-status instead
2020-08-18 11:21:53 +02:00
Adriaan de Groot
36cefe3be1
[users] Remove calculation of 'ready' from Page
...
- simplify UI update methods
- drop all the m_ready* members, that should live in Config
2020-08-17 16:18:02 +02:00
Adriaan de Groot
eb44d0c6be
[users] Move GlobalStorage wrangling to config
...
- the whole fill-GS method is a bit weird, since you might want
to reflect that "live" in GS instead.
2020-08-17 15:30:09 +02:00
Adriaan de Groot
24efce0c1d
[locale] Make sanity checks in tests more explicit
...
SEE #1490
2020-08-17 15:09:20 +02:00
Adriaan de Groot
5db4195b7e
[users] Remove most remaining business logic from the Page
...
- report password status from config
- tie config-value of fields to the text-boxes
2020-08-17 15:01:35 +02:00
Adriaan de Groot
34946ecdee
[users] Refactor validity-checking
...
- provide a structured datatype for password status
2020-08-17 14:20:54 +02:00
Adriaan de Groot
1a7b2668dc
[users] Emit password status changes
2020-08-17 14:08:59 +02:00
Adriaan de Groot
d7b895b45d
[users] Extend tests
...
- password requirements can disallow weak passwords
- start checking for signals on password changes
2020-08-17 14:05:03 +02:00
Adriaan de Groot
a16ecba2bd
[users] Inline isPasswordAcceptable
...
- the way isPasswordAcceptable was being used was buggy, leading
to test failures (now fixed)
- don't expose the function, anyway: it's an implementation
detail for passwordStatus() which in itself is an implementation
detail for status notifications.
2020-08-17 13:22:44 +02:00
Adriaan de Groot
5f2bbd179c
[users] New test for password-setting
...
- check new config for accepting empty and bogus passwords
- check a config with minor pw checks for empty and bogus passwords
2020-08-17 13:16:41 +02:00
Adriaan de Groot
1dcf56761f
[users] Apply validation to the passwords config knows about
...
- avoid update loops by checking values before emitting *Changed()
- check validity of user and root passwords when asked
- if root isn't going to be written, or re-uses the user password,
defer to those status checks.
2020-08-17 12:48:43 +02:00
Adriaan de Groot
e145bf68f1
[users] Remove extra ;
2020-08-17 12:48:43 +02:00
Adriaan de Groot
933e54a731
Changes: pre-release housekeeping
2020-08-17 11:31:26 +02:00
Asif Mahmud Shimon
3245d602db
retrieving string list fix
2020-08-14 20:52:53 +06:00
Adriaan de Groot
805850d843
Changes: pre-release housekeeping
2020-08-12 16:52:42 +02:00
Adriaan de Groot
f4eac6c86f
[users] Create all the groups needed for the user
...
- 26b8c82630
added the list of all-the-groups-for-the-user,
but didn't change the list passed to the method that
creates groups.
FIXES #1488
2020-08-12 16:50:28 +02:00
Adriaan de Groot
c296bcffa3
[libcalamares] When enqueueing jobs, pass a weight
...
- The weight is the module (instance) weight, which can be
- the default weight of 1
- the weight specified for the module (in module.desc / the module
descriptor; this defaults to 1, above)
- the weight specified for the instance (in settings.conf)
The last of these "wins"; weights are constrained to 1..100
The weight isn't actually used in progress computation yet.
2020-08-12 16:45:27 +02:00
Adriaan de Groot
a91ef65a37
[libcalamares] Make job weights integers
2020-08-12 16:08:37 +02:00
Adriaan de Groot
73b8ecd622
[unpackfs] Drop special-case for unpackfs
...
- make the module weight 12, rather than special-casing internals
2020-08-12 16:03:25 +02:00
Adriaan de Groot
c19866f887
[libcalamares] Add a module-weight to the module descriptor
2020-08-12 16:00:27 +02:00
Adriaan de Groot
14875259c7
[users] Create all the groups needed for the user
...
- 26b8c82630
added the list of all-the-groups-for-the-user,
but didn't change the list passed to the method that
creates groups.
FIXES #1488
2020-08-12 11:20:24 +02:00
Adriaan de Groot
575bc03a5c
Merge pull request #1487 from PureTryOut/alpine-initramfs
...
[mkinitfs] New module
2020-08-12 10:50:44 +02:00
Adriaan de Groot
e18cc81757
Merge pull request #1486 from demmm/calamares
...
[usersq] adding QML module usersq
2020-08-12 10:35:41 +02:00
Adriaan de Groot
0f0bae0235
Merge branch 'schema' into calamares
...
All of the schemata are now valid JSON-schema files, and all of
the example config files validate against those schema files.
2020-08-12 10:29:48 +02:00
Adriaan de Groot
050d74b4be
Fix YAML schemas for all the remaining config files
2020-08-12 10:29:24 +02:00
Adriaan de Groot
14afce538b
[netinstall] Fix schema -- the groups file still needs attention
2020-08-12 10:29:24 +02:00
Adriaan de Groot
fcbd6e38c5
[keyboard] Fix schema -- forgotten field *writeEtcDefaultKeyboard*
2020-08-12 10:29:19 +02:00
Adriaan de Groot
efab699479
[umount] Fix schema -- prefer *preservefiles* for keeping the log
2020-08-12 10:29:13 +02:00
Adriaan de Groot
2061024a03
[unpackfs] Fix schema -- new fields *exclude* and *excludeFile*
2020-08-12 10:28:27 +02:00