Skip to content

Commit b4700d9

Browse files
Fix methods for node deletion (#997)
* ENH: redefine hierarchical structure of the catalog * FIX: methods for node deletion * TST: test recursive flag * TST: fix coupled fixtures * TST: ensure deletion is tested on Postgres * Update tiled/client/base.py Co-authored-by: Dan Allan <[email protected]> * Update tiled/client/base.py Co-authored-by: Dan Allan <[email protected]> * Update tiled/client/container.py Co-authored-by: Dan Allan <[email protected]> * Update tiled/client/composite.py Co-authored-by: Dan Allan <[email protected]> * FIX: delete Postgresql assests * TST: check for changes in the storage DB directly * TST: more tests to cover deletion of container contents * FIX: typo * ENH: handle WouldDeleteData exceptions * TST: fix the type of raised exception * TST: fix the type of raised exception --------- Co-authored-by: Dan Allan <[email protected]>
1 parent b212af3 commit b4700d9

File tree

14 files changed

+751
-207
lines changed

14 files changed

+751
-207
lines changed

CHANGELOG.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ Write the date in place of the "Unreleased" in the case a new version is release
33

44
# Changelog
55

6-
## v0.1.0-b32 (Unreleased)
6+
## v0.1.0-b33 (Unreleased)
7+
8+
### Changed
9+
10+
- The logic of hierarchical organization of the Nodes table in Catalog: use the concept
11+
of Closure Table to track ancestors and descendands of the nodes.
712

813
### Changed
914

@@ -14,18 +19,15 @@ Write the date in place of the "Unreleased" in the case a new version is release
1419

1520
- Uniform array columns read from Postgres/DuckDB are now aggregated to an
1621
NDArray (e.g. scanned `waveform` PVs)
22+
- Support for deleting separate nodes and contents of containers in client API.
1723

1824
## v0.1.0-b32 (2025-08-04)
1925

2026
This release is identical to the previous one; it was made to fix our
2127
continuous deployment processes.
2228

23-
## v0.1.0-b31 (2025-08-01)
24-
25-
### Changed
2629

27-
- The logic of hierarchical organization of the Nodes table in Catalog: use the concept
28-
of Closure Table to track ancestors and descendands of the nodes.
30+
## v0.1.0-b31 (2025-08-01)
2931

3032
### Added
3133

@@ -41,6 +43,7 @@ continuous deployment processes.
4143
- Typehinted database access methods
4244
- Explicit type conversion in SQL adapter when appending to an existing table.
4345

46+
4447
## v0.1.0-b30 (2025-07-18)
4548

4649
### Changed
@@ -49,8 +52,6 @@ continuous deployment processes.
4952
dependencies injection
5053
- Updated front-end dependencies, and updated node version used for building
5154
front-end.
52-
- The logic of hierarchical organization of the Nodes table in Catalog: use the
53-
concept of Closure Table to track ancestors and descendants of the nodes.
5455

5556
### Fixed
5657

tiled/_tests/conftest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@ def sqlite_or_postgres_uri(request):
164164
yield request.getfixturevalue(request.param)
165165

166166

167+
@pytest.fixture(params=["sqlite_uri", "duckdb_uri", "postgres_uri"])
168+
def sql_storage_uri(request):
169+
yield request.getfixturevalue(request.param)
170+
171+
167172
@pytest_asyncio.fixture
168173
async def postgresql_adapter(request, tmpdir):
169174
"""

0 commit comments

Comments
 (0)