Commit cff7785
committed
feat: keep device information up to date
Previously, we only fetched the device information (including the
compliance state) once when loading the accounts. However the compliance
state can change over time (it is updated approximately every 1 hour).
To always show an up-to-date version, we refresh it if it is older than
30 mins. To avoid frequent API calls to MS, we perform the refresh lazily
when opening the UI.
Signed-off-by: Felix Moessbauer <[email protected]>1 parent 1e43440 commit cff7785
2 files changed
+22
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
105 | 110 | | |
106 | 111 | | |
107 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
27 | 42 | | |
28 | 43 | | |
29 | 44 | | |
| |||
50 | 65 | | |
51 | 66 | | |
52 | 67 | | |
| 68 | + | |
53 | 69 | | |
| 70 | + | |
54 | 71 | | |
55 | 72 | | |
56 | 73 | | |
| |||
0 commit comments