Commit be398f6
fix: extract transformation router and improve RBAC error handling (VAPT #1)
Backend:
- Create dedicated transformation router with RESOURCE_NAME="configmodels"
so RBAC checks against DATA_TRANSFORMATION instead of projectdetails
- Move 9 transformation endpoints from projects/views.py to
transformation/views.py (save_model_file, set_model_config_and_reference,
set/delete_model_transformation, set_model_presentation, validate_model_file,
get_transformation_columns, get_supported_models, generate_formula)
- Fix handle_http_request overriding 403 status to 200 — now preserves
4xx/5xx status codes from permission checks
Frontend:
- Add error notification on set-model 403 instead of silently closing modal
- Add setIsLoading(false) in .finally to stop loader on error
- Show contextual notification headers (Access Denied, Not Found, Too Many
Requests) based on HTTP status instead of generic "Failed"
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 26dfa7e commit be398f6
9 files changed
Lines changed: 319 additions & 315 deletions
File tree
- backend/backend/core
- routers
- projects
- transformation
- frontend/src
- ide/editor/no-code-model
- service
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | | - | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
| |||
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
24 | | - | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 25 | | |
33 | | - | |
34 | 26 | | |
35 | | - | |
36 | 27 | | |
37 | 28 | | |
38 | 29 | | |
| |||
116 | 107 | | |
117 | 108 | | |
118 | 109 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | 110 | | |
173 | 111 | | |
174 | 112 | | |
| |||
192 | 130 | | |
193 | 131 | | |
194 | 132 | | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | 133 | | |
201 | 134 | | |
202 | 135 | | |
| |||
205 | 138 | | |
206 | 139 | | |
207 | 140 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | 141 | | |
215 | 142 | | |
216 | 143 | | |
| |||
231 | 158 | | |
232 | 159 | | |
233 | 160 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | 161 | | |
242 | 162 | | |
243 | | - | |
244 | 163 | | |
245 | 164 | | |
246 | 165 | | |
247 | 166 | | |
248 | 167 | | |
249 | | - | |
250 | 168 | | |
251 | 169 | | |
252 | 170 | | |
| |||
0 commit comments