mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
feat: annotations list CRUD view (#11446)
* annotations list CRUD view * comment out modal * update test * fix lint
This commit is contained in:
@@ -79,14 +79,15 @@ class AnnotationRestApi(BaseSupersetModelRestApi):
|
||||
"layer.name",
|
||||
]
|
||||
list_columns = [
|
||||
"short_descr",
|
||||
"created_by.id",
|
||||
"created_by.first_name",
|
||||
"changed_by.id",
|
||||
"changed_by.first_name",
|
||||
"changed_by.id",
|
||||
"changed_on_delta_humanized",
|
||||
"start_dttm",
|
||||
"created_by.first_name",
|
||||
"created_by.id",
|
||||
"end_dttm",
|
||||
"long_descr",
|
||||
"short_descr",
|
||||
"start_dttm",
|
||||
]
|
||||
add_columns = [
|
||||
"short_descr",
|
||||
@@ -99,12 +100,13 @@ class AnnotationRestApi(BaseSupersetModelRestApi):
|
||||
edit_model_schema = AnnotationPutSchema()
|
||||
edit_columns = add_columns
|
||||
order_columns = [
|
||||
"short_descr",
|
||||
"created_by.first_name",
|
||||
"changed_by.first_name",
|
||||
"changed_on_delta_humanized",
|
||||
"start_dttm",
|
||||
"created_by.first_name",
|
||||
"end_dttm",
|
||||
"long_descr",
|
||||
"short_descr",
|
||||
"start_dttm",
|
||||
]
|
||||
|
||||
search_filters = {"short_descr": [AnnotationAllTextFilter]}
|
||||
|
||||
Reference in New Issue
Block a user