Commit 8d464ba
committed
refactor(constants): remove hardcoded WORKSPACE_ZONES and ROLE_CHOICES
Remove hardcoded constants that have been replaced with
dynamic config loading:
Removed constants:
- WORKSPACE_ZONES - Now loaded via get_workspace_choices()
- ROLE_CARISTE - Kept (still used in template example)
- ROLE_PREPARATEUR - Removed
- ROLE_MAGASINIER - Removed
- ROLE_RECEVEUR - Removed
- ROLE_EXPEDITEUR - Removed
- ROLE_CHOICES - Now loaded via get_role_choices()
- CONTRACT_TYPE_CHOICES - Now loaded via get_contract_type_choices()
These constants were causing the application to ignore
user-defined workspaces and roles in config.yaml.
Note: ROLE_CARISTE is kept as it's still used in template examples.1 parent a725757 commit 8d464ba
1 file changed
Lines changed: 0 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
| |||
189 | 187 | | |
190 | 188 | | |
191 | 189 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | 190 | | |
211 | 191 | | |
212 | 192 | | |
| |||
0 commit comments