Unified stack refactor clean up
Clean up obsolete code and some warnings
parent: tbd commit: 356f714
1 | use ; |
2 | use |
3 | , |
4 | , |
5 | , | ValueUpdate
6 | , | User
7 | , |
8 | ; |
9 | use ; |
10 | |
11 | use DatabaseBackend; |
12 | |
13 | |
14 | _object: User, |
15 | _value_name: String, |
16 | _value: , |
17 | _operation_state: &StackOperationState, |
18 | |
19 | todo! |
20 | |
21 | |
22 | |
23 | _object: User, |
24 | _value_name: String, |
25 | _value: AnySetting, |
26 | _operation_state: &StackOperationState, |
27 | |
28 | todo! |
29 | |
30 | |
31 | |
32 | _object: Repository, |
33 | _value_name: String, |
34 | _value: , |
35 | _operation_state: &StackOperationState, |
36 | |
37 | todo! |
38 | |
39 | |
40 | |
41 | _object: Repository, |
42 | _value_name: String, |
43 | _value: AnySetting, |
44 | _operation_state: &StackOperationState, |
45 | |
46 | todo! |
47 | |
48 | |
49 | |
50 | _object: Repository, |
51 | _description: Description, |
52 | _user: AuthorizedUser, |
53 | |
54 | async boxed | .
55 | |
56 | |
57 | |
58 | object: Repository, |
59 | default_branch: DefaultBranch, |
60 | // Ensure user is authorized for this request |
61 | _user: AuthorizedUser, |
62 | backend: DatabaseBackend, |
63 | |
64 | async move |
65 | let mut repository_backend = backend.repository_backend.lock .await; |
66 | |
67 | repository_backend |
68 | .write_setting |
69 | &object, |
70 | , | name
71 | & to_value .unwrap, |
72 | |
73 | .await |
74 | .unwrap; |
75 | |
76 | let _set_value = ValueUpdate |
77 | object: object.to_string, |
78 | value_name: value_name .to_owned, |
79 | value: unsafe , |
80 | ; |
81 | |
82 | // Submit value update back to the daemon |
83 | // state.value_update(set_value); |
84 | Ok |
85 | |
86 | .boxed |
87 | |
88 |