mirror of
https://github.com/apache/superset.git
synced 2026-04-23 01:55:09 +00:00
chore(dao/command): Add transaction decorator to try to enforce "unit of work" (#24969)
This commit is contained in:
@@ -14,8 +14,6 @@
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
"""Loads datasets, dashboards and slices in a new superset instance"""
|
||||
|
||||
import os
|
||||
from typing import Any
|
||||
|
||||
@@ -62,7 +60,6 @@ def merge_slice(slc: Slice) -> None:
|
||||
if o:
|
||||
db.session.delete(o)
|
||||
db.session.add(slc)
|
||||
db.session.commit()
|
||||
|
||||
|
||||
def get_slice_json(defaults: dict[Any, Any], **kwargs: Any) -> str:
|
||||
|
||||
Reference in New Issue
Block a user