-
-
Notifications
You must be signed in to change notification settings - Fork 392
Open
Labels
affects: uxRelated to user experienceRelated to user experiencereadyReady for implementationReady for implementationtype: enhancementuser reportedReported by a Mathesar userReported by a Mathesar userwork: backendRelated to Python, Django, and simple SQLRelated to Python, Django, and simple SQLwork: frontendRelated to frontend code in the mathesar_ui directoryRelated to frontend code in the mathesar_ui directory
Milestone
Description
Problem
We currently don't support adding (or redefining) column defaults that are dynamic. Also, currently we're not set up to provide arbitrary dynamic defaults without compromising security of Mathesar.
Proposed solution
We can allow setting dynamic defaults for a column, without compromising security, by restricting the possible dynamic defaults to a whitelist. How a whitelist could be compiled was discussed here: we decided that a manually compiled whitelist is the most practical option.
Additional context
Dynamic defaults feature discussion thread: #2272
User's request for dynamic defaults: #2754
Discussion on how to generate the whitelist: #3078
Tasks
Incomplete list of tasks see posts in this thread for an adhoc articulation of what a full solution would involve.
Metadata
Metadata
Assignees
Labels
affects: uxRelated to user experienceRelated to user experiencereadyReady for implementationReady for implementationtype: enhancementuser reportedReported by a Mathesar userReported by a Mathesar userwork: backendRelated to Python, Django, and simple SQLRelated to Python, Django, and simple SQLwork: frontendRelated to frontend code in the mathesar_ui directoryRelated to frontend code in the mathesar_ui directory