Update app_v2.py
Browse files
app_v2.py
CHANGED
|
@@ -1206,6 +1206,88 @@ def _(deployment_client, mo):
|
|
| 1206 |
get_repository_list,
|
| 1207 |
)
|
| 1208 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1209 |
|
| 1210 |
@app.cell
|
| 1211 |
def _(get_deployment_id_list, get_deployments_button, mo, purge_deployments):
|
|
@@ -1294,88 +1376,5 @@ def _(data_assets_purge_tab, deployments_purge_tab, mo, repository_purge_tab):
|
|
| 1294 |
# asset_purge
|
| 1295 |
return (purge_tabs,)
|
| 1296 |
|
| 1297 |
-
|
| 1298 |
-
@app.cell(hide_code=True)
|
| 1299 |
-
def _(
|
| 1300 |
-
delete_data_assets,
|
| 1301 |
-
delete_deployments,
|
| 1302 |
-
delete_repository_items,
|
| 1303 |
-
get_data_asset_ids,
|
| 1304 |
-
get_data_assets_list,
|
| 1305 |
-
get_deployment_ids,
|
| 1306 |
-
get_deployment_list,
|
| 1307 |
-
get_repository_ids,
|
| 1308 |
-
get_repository_list,
|
| 1309 |
-
mo,
|
| 1310 |
-
):
|
| 1311 |
-
### Temporary Function Purge - Assets
|
| 1312 |
-
get_data_assets_button = mo.ui.button(
|
| 1313 |
-
label="Get Data Assets Dataframe",
|
| 1314 |
-
on_click=lambda _: get_data_assets_list(),
|
| 1315 |
-
kind="neutral",
|
| 1316 |
-
)
|
| 1317 |
-
|
| 1318 |
-
get_data_asset_id_list = mo.ui.button(
|
| 1319 |
-
label="Turn Dataframe into List of IDs",
|
| 1320 |
-
on_click=lambda _: get_data_asset_ids(data_assets_dataframe.value),
|
| 1321 |
-
kind="neutral",
|
| 1322 |
-
)
|
| 1323 |
-
|
| 1324 |
-
purge_data_assets = mo.ui.button(
|
| 1325 |
-
label="Purge Data Assets",
|
| 1326 |
-
on_click=lambda _: delete_data_assets(get_data_asset_id_list.value),
|
| 1327 |
-
kind="danger",
|
| 1328 |
-
)
|
| 1329 |
-
|
| 1330 |
-
### Temporary Function Purge - Deployments
|
| 1331 |
-
get_deployments_button = mo.ui.button(
|
| 1332 |
-
label="Get Deployments Dataframe",
|
| 1333 |
-
on_click=lambda _: get_deployment_list(),
|
| 1334 |
-
kind="neutral",
|
| 1335 |
-
)
|
| 1336 |
-
|
| 1337 |
-
get_deployment_id_list = mo.ui.button(
|
| 1338 |
-
label="Turn Dataframe into List of IDs",
|
| 1339 |
-
on_click=lambda _: get_deployment_ids(deployments_dataframe.value),
|
| 1340 |
-
kind="neutral",
|
| 1341 |
-
)
|
| 1342 |
-
|
| 1343 |
-
purge_deployments = mo.ui.button(
|
| 1344 |
-
label="Purge Deployments",
|
| 1345 |
-
on_click=lambda _: delete_deployments(get_deployment_id_list.value),
|
| 1346 |
-
kind="danger",
|
| 1347 |
-
)
|
| 1348 |
-
|
| 1349 |
-
### Repository Items Purge
|
| 1350 |
-
get_repository_button = mo.ui.button(
|
| 1351 |
-
label="Get Repository Dataframe",
|
| 1352 |
-
on_click=lambda _: get_repository_list(),
|
| 1353 |
-
kind="neutral",
|
| 1354 |
-
)
|
| 1355 |
-
|
| 1356 |
-
get_repository_id_list = mo.ui.button(
|
| 1357 |
-
label="Turn Dataframe into List of IDs",
|
| 1358 |
-
on_click=lambda _: get_repository_ids(repository_dataframe.value),
|
| 1359 |
-
kind="neutral",
|
| 1360 |
-
)
|
| 1361 |
-
|
| 1362 |
-
purge_repository = mo.ui.button(
|
| 1363 |
-
label="Purge Repository Items",
|
| 1364 |
-
on_click=lambda _: delete_repository_items(get_repository_id_list.value),
|
| 1365 |
-
kind="danger",
|
| 1366 |
-
)
|
| 1367 |
-
return (
|
| 1368 |
-
get_data_asset_id_list,
|
| 1369 |
-
get_data_assets_button,
|
| 1370 |
-
get_deployment_id_list,
|
| 1371 |
-
get_deployments_button,
|
| 1372 |
-
get_repository_button,
|
| 1373 |
-
get_repository_id_list,
|
| 1374 |
-
purge_data_assets,
|
| 1375 |
-
purge_deployments,
|
| 1376 |
-
purge_repository,
|
| 1377 |
-
)
|
| 1378 |
-
|
| 1379 |
-
|
| 1380 |
if __name__ == "__main__":
|
| 1381 |
app.run()
|
|
|
|
| 1206 |
get_repository_list,
|
| 1207 |
)
|
| 1208 |
|
| 1209 |
+
@app.cell(hide_code=True)
|
| 1210 |
+
def _(
|
| 1211 |
+
delete_data_assets,
|
| 1212 |
+
delete_deployments,
|
| 1213 |
+
delete_repository_items,
|
| 1214 |
+
get_data_asset_ids,
|
| 1215 |
+
get_data_assets_list,
|
| 1216 |
+
get_deployment_ids,
|
| 1217 |
+
get_deployment_list,
|
| 1218 |
+
get_repository_ids,
|
| 1219 |
+
get_repository_list,
|
| 1220 |
+
mo,
|
| 1221 |
+
):
|
| 1222 |
+
### Temporary Function Purge - Assets
|
| 1223 |
+
get_data_assets_button = mo.ui.button(
|
| 1224 |
+
label="Get Data Assets Dataframe",
|
| 1225 |
+
on_click=lambda _: get_data_assets_list(),
|
| 1226 |
+
kind="neutral",
|
| 1227 |
+
)
|
| 1228 |
+
|
| 1229 |
+
get_data_asset_id_list = mo.ui.button(
|
| 1230 |
+
label="Turn Dataframe into List of IDs",
|
| 1231 |
+
on_click=lambda _: get_data_asset_ids(data_assets_dataframe.value),
|
| 1232 |
+
kind="neutral",
|
| 1233 |
+
)
|
| 1234 |
+
|
| 1235 |
+
purge_data_assets = mo.ui.button(
|
| 1236 |
+
label="Purge Data Assets",
|
| 1237 |
+
on_click=lambda _: delete_data_assets(get_data_asset_id_list.value),
|
| 1238 |
+
kind="danger",
|
| 1239 |
+
)
|
| 1240 |
+
|
| 1241 |
+
### Temporary Function Purge - Deployments
|
| 1242 |
+
get_deployments_button = mo.ui.button(
|
| 1243 |
+
label="Get Deployments Dataframe",
|
| 1244 |
+
on_click=lambda _: get_deployment_list(),
|
| 1245 |
+
kind="neutral",
|
| 1246 |
+
)
|
| 1247 |
+
|
| 1248 |
+
get_deployment_id_list = mo.ui.button(
|
| 1249 |
+
label="Turn Dataframe into List of IDs",
|
| 1250 |
+
on_click=lambda _: get_deployment_ids(deployments_dataframe.value),
|
| 1251 |
+
kind="neutral",
|
| 1252 |
+
)
|
| 1253 |
+
|
| 1254 |
+
purge_deployments = mo.ui.button(
|
| 1255 |
+
label="Purge Deployments",
|
| 1256 |
+
on_click=lambda _: delete_deployments(get_deployment_id_list.value),
|
| 1257 |
+
kind="danger",
|
| 1258 |
+
)
|
| 1259 |
+
|
| 1260 |
+
### Repository Items Purge
|
| 1261 |
+
get_repository_button = mo.ui.button(
|
| 1262 |
+
label="Get Repository Dataframe",
|
| 1263 |
+
on_click=lambda _: get_repository_list(),
|
| 1264 |
+
kind="neutral",
|
| 1265 |
+
)
|
| 1266 |
+
|
| 1267 |
+
get_repository_id_list = mo.ui.button(
|
| 1268 |
+
label="Turn Dataframe into List of IDs",
|
| 1269 |
+
on_click=lambda _: get_repository_ids(repository_dataframe.value),
|
| 1270 |
+
kind="neutral",
|
| 1271 |
+
)
|
| 1272 |
+
|
| 1273 |
+
purge_repository = mo.ui.button(
|
| 1274 |
+
label="Purge Repository Items",
|
| 1275 |
+
on_click=lambda _: delete_repository_items(get_repository_id_list.value),
|
| 1276 |
+
kind="danger",
|
| 1277 |
+
)
|
| 1278 |
+
return (
|
| 1279 |
+
get_data_asset_id_list,
|
| 1280 |
+
get_data_assets_button,
|
| 1281 |
+
get_deployment_id_list,
|
| 1282 |
+
get_deployments_button,
|
| 1283 |
+
get_repository_button,
|
| 1284 |
+
get_repository_id_list,
|
| 1285 |
+
purge_data_assets,
|
| 1286 |
+
purge_deployments,
|
| 1287 |
+
purge_repository,
|
| 1288 |
+
)
|
| 1289 |
+
|
| 1290 |
+
|
| 1291 |
|
| 1292 |
@app.cell
|
| 1293 |
def _(get_deployment_id_list, get_deployments_button, mo, purge_deployments):
|
|
|
|
| 1376 |
# asset_purge
|
| 1377 |
return (purge_tabs,)
|
| 1378 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1379 |
if __name__ == "__main__":
|
| 1380 |
app.run()
|