chore(dao/command): Add transaction decorator to try to enforce "unit of work" (#24969)

This commit is contained in:
John Bodley
2024-06-28 12:33:56 -07:00
committed by GitHub
parent a3f0d00714
commit 8fb8199a55
151 changed files with 681 additions and 916 deletions

View File

@@ -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: