Commit 904a5ad
Csv template admin set context (#1119)
* Support context-aware CSV template and validation via admin set context
- Pass admin_set_id to CSV template generation and validation so the downloaded
template and validation use the admin set's metadata context (HYRAX_FLEXIBLE)
- Use Hyrax.schema_for(klass:, admin_set_id:) so context-gated properties
(e.g. dimensions for ImageResource in special_context) appear in the template
and in validation
- Update download template link via JS to include selected admin set
- ValkyrieObjectFactory and SchemaAnalyzer use keyword args for schema_for
Co-authored-by: Cursor <cursoragent@cursor.com>
* Address PR review: spec backward compatibility and link text
- In sample_csv_file spec, expect generate_template to be called with admin_set_id: nil when param is omitted
- Restore "a" in download link text: "Download a CSV template for your tenant"
---------
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 6ada077 commit 904a5ad
File tree
4 files changed
+29
-2
lines changed- app
- assets/javascripts/bulkrax
- controllers/bulkrax
- views/bulkrax/importers
- spec/controllers/bulkrax
4 files changed
+29
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| |||
335 | 336 | | |
336 | 337 | | |
337 | 338 | | |
| 339 | + | |
338 | 340 | | |
339 | 341 | | |
340 | 342 | | |
| |||
1638 | 1640 | | |
1639 | 1641 | | |
1640 | 1642 | | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
1641 | 1656 | | |
1642 | 1657 | | |
1643 | 1658 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
265 | 276 | | |
266 | 277 | | |
267 | 278 | | |
| |||
0 commit comments