Daniel Calviño Sánchez
0dfd0ec77a
Respect additional user settings not covered by the controller
...
"AccountManager::updateUser()" wipes previous user data with whichever
user data is given (except for some adjustments, like resetting the
verified status when needed). As the controller overrode the properties
those properties would lose some of their attributes even if they are
not affected by the changes made by the controller. Now the controller
only modifies the attributes set ("value" and "scope") to prevent that.
Note that with this change the controller no longer removes the
"verified" status, but this is not a problem because, as mentioned,
"AccountManager::updateUser()" resets them when needed (for example,
when the value of the website property changes).
This change is a previous step to fix overwritting properties with null
values, and it will prevent the controller from making unexpected
changes if more attributes are added in the future.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-04-23 16:53:56 +02:00
Daniel Calviño Sánchez
bedb97fd57
Add more unit tests for setting user settings
...
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-04-23 16:53:55 +02:00
Daniel Calviño Sánchez
1c8295610b
Change default test data to values less similar to empty values
...
Right now it makes no difference, but this should make future tests
clearer, specially in case of failure.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-04-23 16:53:52 +02:00
Daniel Calviño Sánchez
91e06bc08a
Extract default test data to a helper getter
...
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-04-23 16:53:49 +02:00
Daniel Calviño Sánchez
32fd379b66
Use constants from interface rather than class
...
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2021-04-23 16:53:48 +02:00
Nextcloud bot
a335ff969d
[tx-robot] updated from transifex
2021-04-23 02:26:35 +00:00
Morris Jobke
3c9b923eb1
Merge pull request #26684 from nextcloud/backport/26474/stable20
...
[stable20] Mention MariaDB in MySQL support warning
2021-04-22 09:47:45 +02:00
Nextcloud bot
bef596de06
[tx-robot] updated from transifex
2021-04-22 02:26:44 +00:00
Claas Augner
3082777bfd
Mention MariaDB in MySQL support warning
2021-04-21 14:45:41 +00:00
Nextcloud bot
80d93acff0
[tx-robot] updated from transifex
2021-04-21 02:26:25 +00:00
Nextcloud bot
a4c55e4601
[tx-robot] updated from transifex
2021-04-20 02:26:21 +00:00
Nextcloud bot
ed5f446ec1
[tx-robot] updated from transifex
2021-04-19 02:26:26 +00:00
Nextcloud bot
36a16bcf63
[tx-robot] updated from transifex
2021-04-17 02:24:25 +00:00
Nextcloud bot
e57f65cdfe
[tx-robot] updated from transifex
2021-04-16 02:26:13 +00:00
Nextcloud bot
36d2bb05cf
[tx-robot] updated from transifex
2021-04-15 02:25:32 +00:00
Nextcloud bot
d35011b3f7
[tx-robot] updated from transifex
2021-04-14 02:27:12 +00:00
Nextcloud bot
bb6dc44afb
[tx-robot] updated from transifex
2021-04-13 02:25:18 +00:00
Nextcloud bot
0cdfea022d
[tx-robot] updated from transifex
2021-04-12 02:25:16 +00:00
Nextcloud bot
e78e509618
[tx-robot] updated from transifex
2021-04-09 02:25:30 +00:00
Nextcloud bot
e09760f2bc
[tx-robot] updated from transifex
2021-04-08 02:24:23 +00:00
Nextcloud bot
f1fd067db1
[tx-robot] updated from transifex
2021-04-07 02:24:36 +00:00
Nextcloud bot
45e63c949c
[tx-robot] updated from transifex
2021-04-06 02:25:51 +00:00
Nextcloud bot
ef6a2cfc8f
[tx-robot] updated from transifex
2021-04-05 02:25:05 +00:00
Nextcloud bot
bc1331f2c9
[tx-robot] updated from transifex
2021-04-04 02:25:07 +00:00
Nextcloud bot
9d0c2b1984
[tx-robot] updated from transifex
2021-04-03 02:43:54 +00:00
Nextcloud bot
7eb7a91b06
[tx-robot] updated from transifex
2021-04-02 02:26:26 +00:00
Nextcloud bot
9df8953adf
[tx-robot] updated from transifex
2021-04-01 02:24:59 +00:00
Nextcloud bot
35db1b5996
[tx-robot] updated from transifex
2021-03-31 02:25:11 +00:00
Nextcloud bot
60aa785092
[tx-robot] updated from transifex
2021-03-30 02:24:39 +00:00
Nextcloud bot
dae4431427
[tx-robot] updated from transifex
2021-03-29 02:24:18 +00:00
Nextcloud bot
86850feaf9
[tx-robot] updated from transifex
2021-03-28 02:24:24 +00:00
Nextcloud bot
1a05043008
[tx-robot] updated from transifex
2021-03-26 02:25:53 +00:00
Nextcloud bot
f6cbda9e60
[tx-robot] updated from transifex
2021-03-25 02:25:57 +00:00
Nextcloud bot
c555e86e63
[tx-robot] updated from transifex
2021-03-24 02:25:25 +00:00
Nextcloud bot
1c9904aafc
[tx-robot] updated from transifex
2021-03-23 02:24:24 +00:00
Nextcloud bot
208f84d2e4
[tx-robot] updated from transifex
2021-03-22 02:24:06 +00:00
Nextcloud bot
01d05c6435
[tx-robot] updated from transifex
2021-03-20 02:24:00 +00:00
Nextcloud bot
97d9b3fe0c
[tx-robot] updated from transifex
2021-03-19 02:25:14 +00:00
Nextcloud bot
fdabe1172b
[tx-robot] updated from transifex
2021-03-17 02:24:39 +00:00
Nextcloud bot
7332b6f75e
[tx-robot] updated from transifex
2021-03-16 02:25:00 +00:00
Nextcloud bot
25f27569f5
[tx-robot] updated from transifex
2021-03-15 02:24:17 +00:00
Nextcloud bot
049895f3e7
[tx-robot] updated from transifex
2021-03-14 02:23:58 +00:00
Nextcloud bot
b6af167c65
[tx-robot] updated from transifex
2021-03-13 02:23:14 +00:00
Nextcloud bot
60756e8e3e
[tx-robot] updated from transifex
2021-03-12 02:23:01 +00:00
Nextcloud bot
28378720f1
[tx-robot] updated from transifex
2021-03-11 02:23:28 +00:00
Nextcloud bot
8dc2b22e35
[tx-robot] updated from transifex
2021-03-10 02:23:17 +00:00
Nextcloud bot
df04689af7
[tx-robot] updated from transifex
2021-03-09 02:24:13 +00:00
Nextcloud bot
f209e862c2
[tx-robot] updated from transifex
2021-03-06 02:22:41 +00:00
Nextcloud bot
21ff951ca3
[tx-robot] updated from transifex
2021-03-04 02:22:30 +00:00
Nextcloud bot
25fbc9fdd6
[tx-robot] updated from transifex
2021-03-03 02:21:42 +00:00