Skip to content
Draft
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
282 commits
Select commit Hold shift + click to select a range
72f9a15
Update custom format test (#1039)
ZohebShaikh Aug 7, 2025
f1632d6
Remove registry overrides when building app kwargs (#1072)
tpoliaw Aug 8, 2025
c3bdfd8
Re-use build_app_from_config when building default app (#1073)
tpoliaw Aug 8, 2025
314ade1
Add initial typing to config module (#1074)
tpoliaw Aug 8, 2025
78af109
Add /zarr/v2 and /zarr/v3 Endpoints (#774)
genematx Aug 8, 2025
63e7a37
locust read load testing (#1055)
gwbischof Aug 8, 2025
7cdd704
Update version pins
danielballan Aug 12, 2025
f60e2c1
Drop pixi config for pyproject, will put in separate file
danielballan Aug 12, 2025
2039efe
Use uv on GHA
danielballan Aug 12, 2025
2e14bed
Remove extraneous step.
danielballan Aug 12, 2025
3df139a
Tolerate missing access blob
danielballan Aug 12, 2025
3883432
Update CHANGELOG
danielballan Aug 12, 2025
a100679
Add access_blob column to revisions table.
danielballan Aug 12, 2025
8ade7c3
Update CHANGELOG. Highlight migration.
danielballan Aug 12, 2025
52f2879
Add migration script
danielballan Aug 12, 2025
c3fb7cc
Test on Python 3.13 in CI matrix
danielballan Aug 12, 2025
dcf6528
fix: Correct indentation of args field in config schema (#1087)
tpoliaw Aug 13, 2025
bd173bb
REL: v0.1.0-b33
danielballan Aug 13, 2025
cd22d25
Migration fixes (#1089)
genematx Aug 14, 2025
2852354
REL: v0.1.0-b34
danielballan Aug 14, 2025
9aae372
resolve npm warn #1090 (#1092)
AditiChikkali Aug 18, 2025
2e3df1d
Add pixi manifest (#1094)
danielballan Aug 19, 2025
c27e609
Use Approximate Length for Large Containers (#1096)
genematx Aug 20, 2025
11d546a
Rewrite Dockerfile (#1086)
danielballan Aug 20, 2025
4373daa
REL: v0.1.0-b35
danielballan Aug 21, 2025
b41dc8c
chore(types): Type hint Utils module (#1043)
DiamondJoseph Aug 21, 2025
5708de0
📝 Register Queries
Kezzsim Jul 21, 2025
d8461d6
🤔 Make it work... (with top level keys only)
Kezzsim Jul 25, 2025
1074e00
🧠 Key search using `tsvector`
Kezzsim Jul 25, 2025
729995e
😉 FTS5 includes `key` as a column
Kezzsim Jul 25, 2025
12980d8
✅ Finish MVP
Kezzsim Jul 28, 2025
5c8ddc8
↪️ Change the strategy to align with requirements
Kezzsim Jul 31, 2025
435bb5c
➰ Reformat API to `keyExists()`
Kezzsim Jul 31, 2025
9327fb9
➿ Remove references to `KeyNotIn`
Kezzsim Jul 31, 2025
ecaff39
🏔️ Define tests and fix logic
Kezzsim Aug 4, 2025
d3162c5
🧹 Black / Flake8
Kezzsim Aug 4, 2025
ffa12db
📚️ Finish docs
Kezzsim Aug 4, 2025
b89619d
1️⃣ EZMerge step 1 : parity check
Kezzsim Aug 12, 2025
72653bc
2️⃣ Complete EZMerge from upstream
Kezzsim Aug 12, 2025
8b8fc4e
FIX: imported name
genematx Aug 12, 2025
dc9e03c
🏷️ Rename `KeyExists` to `KeyPresent`
Kezzsim Aug 13, 2025
ebd8806
*️⃣ Renaming of interior functions
Kezzsim Aug 13, 2025
922f253
💲Add missing sqlite dollarsign string
Kezzsim Aug 20, 2025
d54f0e9
🚥 Experiment with dynamic test data
Kezzsim Aug 20, 2025
11782aa
Revert to existing test paradigm for now.
danielballan Aug 25, 2025
9892eb5
Add test cases
danielballan Aug 25, 2025
4862b3f
Remove Composite Structure Family (#1093)
genematx Aug 26, 2025
81f76de
Add note about container slicing performance.
danielballan Aug 25, 2025
08527ee
Fix typo; improve clarity
danielballan Aug 25, 2025
09ac77c
REL: v0.1.0-b36
danielballan Aug 26, 2025
6b66a5e
Remove SpecialUsers principals (#1065)
nmaytan Aug 26, 2025
bcd372d
Move shareable authz utilities into Tiled (#1008)
nmaytan Aug 27, 2025
894dcec
Fix yallist dependency conflict (#1106)
AditiChikkali Aug 27, 2025
7f1b7e6
Adding Configs for Connection Pool Sizes (#1102)
genematx Aug 28, 2025
22651f2
Websocket endpoint (#999)
vshekar Aug 28, 2025
66cd03a
REL: v0.1.0-b37
danielballan Aug 28, 2025
f80691d
Add missing __init__.py
danielballan Aug 28, 2025
685f4c6
Update CHANGELOG
danielballan Aug 28, 2025
dd85e95
REL: v0.1.0-b38
danielballan Aug 28, 2025
1a5b803
udpates to workflows to cache docker layers (#1111)
gwbischof Aug 28, 2025
b92236c
FIX: set default None for optional patch (#1115)
genematx Aug 28, 2025
0c0775d
REL: v0.1.0-b39
danielballan Aug 28, 2025
2de124b
Fix for nodes_closure migration when node name matches parent (#1116)
canismarko Sep 3, 2025
252b2ab
Rename write_dataframe (#1118)
genematx Sep 3, 2025
ea29650
Composite Validity Checks (#1119)
genematx Sep 3, 2025
bda6f2d
Changing the Order of Arguments (#1117)
genematx Sep 3, 2025
f4b86a5
Streaming (websocket) tutorial (#1121)
danielballan Sep 4, 2025
8e1b2ab
Explain thinking behind storage database (#1108)
danielballan Sep 4, 2025
f1ced13
Add tutorial
danielballan Sep 3, 2025
623339f
Handle server-initiated close, and expose it.
danielballan Sep 4, 2025
826dfdd
INCR creates key at '0' if not present
danielballan Sep 4, 2025
d2a72bb
Handle sequence counter lifecycle
danielballan Sep 4, 2025
d4da021
Fix and comment on setting sequence TTL at close
danielballan Sep 4, 2025
ddadb71
Fix rebase issue
danielballan Sep 4, 2025
3a82762
copyedit
danielballan Sep 4, 2025
418f5bb
Update Roadmap and Changelog for v0.1.0
danielballan Sep 4, 2025
a7e2ec0
REL: v0.1.0
danielballan Sep 4, 2025
45dea82
add missing deps from server (#1141)
dylanmcreynolds Sep 5, 2025
61ce3eb
docs: Fix misstatement about streaming support (#1142)
danielballan Sep 8, 2025
0d6cd8f
fix: The built UI app was placed in the wrong location. (#1140)
danielballan Sep 10, 2025
ab9cace
Use pydantic for config file loading (#1091)
tpoliaw Sep 10, 2025
446b7e7
REL: v0.1.1-rc1
danielballan Sep 10, 2025
86641e8
REL: v0.1.1
danielballan Sep 10, 2025
9d0f145
Pin back duckdb to avoid regression in 1.4.0 (#1149)
danielballan Sep 18, 2025
d9634aa
REL: v0.1.2
danielballan Sep 18, 2025
0ee24eb
Accept 'trees' and 'media_types' config in multiple files.
danielballan Sep 24, 2025
91f97a0
Update CHANGELOG
danielballan Sep 24, 2025
0bbbea8
fix: Ensure configs are in fact merged
danielballan Sep 24, 2025
16c1287
Include allow_origins
danielballan Sep 24, 2025
45469fb
test: 'tree' config referencing constructor method
danielballan Sep 24, 2025
2cfd28b
fix: Raise ValueError consistently.
danielballan Sep 24, 2025
d0dbd43
fix: Expect entrypoint string format
danielballan Sep 24, 2025
f66f785
Update CHANGELOG
danielballan Sep 24, 2025
50d96b1
Process-global Connection Pooling (#1156)
genematx Sep 24, 2025
75d4ccc
Monitoring of DB Connection Pools (#1163)
genematx Sep 24, 2025
736c0a2
REL: v0.1.3
danielballan Sep 24, 2025
16a1455
Collect custom APIRouters in list, not set. (#1166)
danielballan Sep 25, 2025
37c55ae
REL: v0.1.4
danielballan Sep 25, 2025
3bcae61
📁🚫🫷It's okay to say no to profiles ending with special characters
Kezzsim Sep 24, 2025
ca78270
📂👀 Only see valid `yaml` files
Kezzsim Sep 25, 2025
23ce0ff
🧹 Multiline lint
Kezzsim Sep 25, 2025
f3641c0
Keep Extra kwargs in CompositeClient.base (#1169)
genematx Sep 26, 2025
5c8b467
fix!: Do not bind AuthN db session lifecycle to request lifecycle
danielballan Sep 26, 2025
3ae81ac
refactor: db -> db_factory in routes
danielballan Sep 26, 2025
2514bb7
refactor: Use db_factory in routes
danielballan Sep 26, 2025
ba85ca3
Fix typo in comment
danielballan Sep 26, 2025
0e27603
Handle single-user case.
danielballan Sep 26, 2025
7600f5f
Backport nullcontext with async for py39
danielballan Sep 26, 2025
e8675c3
Update CHANGELOG
danielballan Sep 26, 2025
f58630d
Additional Metrics for Connection Pools (#1168)
genematx Sep 26, 2025
42fdbe7
REL: v0.1.5
danielballan Sep 26, 2025
007075e
Avoid circular import (#1174)
danielballan Sep 29, 2025
d405909
REL: v0.1.6
danielballan Sep 29, 2025
5ab7016
FIX: Ensure Column Names are Strings (#1177)
genematx Oct 6, 2025
f6dcf12
Typed adapters (#1047)
DiamondJoseph Oct 7, 2025
5f7c0ea
Update of default Redis socket_timeout (#1175)
gwbischof Oct 14, 2025
4cca74b
Update starlette status codes (#1183)
ZohebShaikh Oct 15, 2025
100764f
Allow bearer access token for authentication (#1054)
ZohebShaikh Oct 15, 2025
fe69b45
Fix Shapes of StructDtyped Arrays Read from CSV (#1181)
genematx Oct 17, 2025
f0323b0
Add 'locking' parameter to hdf5 adapter (#1164)
genematx Oct 17, 2025
878a63a
chore(types): Use common base type for all access policy types (#1044)
tpoliaw Oct 17, 2025
ed00a5d
fix: Prevent accessing stat_result before assignment (#1185)
DiamondJoseph Oct 20, 2025
dce2309
🛜 Stream container updates to WebSocket subscribers (#1176)
Kezzsim Oct 20, 2025
192beed
Allow extra kwargs in HDF5Adapter.from_uris and .from_catalog (#1186)
genematx Oct 20, 2025
faffab0
Test Using Subset of Columns in CSVArrayAdapter. (#1023)
genematx Oct 20, 2025
870342d
Increase starlette lower bound pin (#1187)
danielballan Oct 20, 2025
01ea25a
Apply default cache_settings when using CLI (#1188)
danielballan Oct 20, 2025
1b0b186
Catch up pixi deps to changes in pyproject (#1189)
danielballan Oct 20, 2025
a9aeb27
feat: Enable chaining Subscription.add_callback and Subscription.star…
danielballan Oct 20, 2025
126536b
Subscription.start() blocks the current thread. (#1152)
danielballan Oct 20, 2025
b191911
Add Oauth2 spec device flow (#1171)
ZohebShaikh Oct 20, 2025
c74ece2
Implement /authorize endpoint to initiate OAuth flows with redirects …
SeijDeLeon Oct 20, 2025
ce13eea
Rename start_on_thread to start_in_thread. (#1190)
danielballan Oct 20, 2025
a4a225b
REL: v0.2.0-a1
danielballan Oct 20, 2025
1655b6f
Drop revision and streaming (#1193)
danielballan Oct 22, 2025
a10883d
REL: v0.2.0-a2
danielballan Oct 22, 2025
dcfbf0d
🔑 Add key to `replace_metadata` (#1195)
Kezzsim Oct 23, 2025
915588c
Abstract redis specific code into a StreamingCache class (#1192)
vshekar Oct 23, 2025
26773ca
Fix race condition in subscription tests (#1197)
danielballan Oct 23, 2025
b7f6848
Use an executor.
danielballan Oct 23, 2025
a343a9c
Rename 'stop' to 'close'.
danielballan Oct 23, 2025
8a90f93
Update CHANGELOG
danielballan Oct 23, 2025
157d405
Update test for API change
danielballan Oct 23, 2025
e43d83b
Add a 'type' field to the WS messages
danielballan Oct 23, 2025
cfd379c
Rename 'content-type' to mimetype for consistency with data_source
danielballan Oct 23, 2025
a37ceb1
Parse WS messages into models.
danielballan Oct 23, 2025
bf37c8c
Client-build item was missing 'ancestors'
danielballan Oct 23, 2025
311d3d2
Decode array data (hard-coded data type for now)
danielballan Oct 23, 2025
73e8f42
Incorporate a 'schema' message to provide context for updates.
danielballan Oct 24, 2025
de4587c
Use data methods instead of hard-coded dtype.
danielballan Oct 24, 2025
0f3b730
Update test to account for schema message
danielballan Oct 24, 2025
4f26db8
Be consistent about prefixing msg type with structure family
danielballan Oct 25, 2025
54341d9
Separate Subscriptions per structure and callback registries per mess…
danielballan Oct 25, 2025
be95e48
Refactor test to exercise subscribe method.
danielballan Oct 25, 2025
067a4f0
minor unrelated cleanup
danielballan Oct 25, 2025
26ee65d
Enable chaining sub = subscribe().start_in_thread()
danielballan Oct 25, 2025
cfefe57
Test container subs
danielballan Oct 25, 2025
0636ac0
Include access_blob in container-child-created
danielballan Oct 25, 2025
ba51ff7
Pass child_created callback a client object
danielballan Oct 25, 2025
175e92c
The Subscription owns the executor and should shut it down.
danielballan Oct 25, 2025
b5f890c
Add callback registry from stream_closed and test.
danielballan Oct 25, 2025
dac2de0
Move links functions out of server.
danielballan Oct 25, 2025
b77a6f5
Update test to new ContainerSubscription API
danielballan Oct 25, 2025
780518c
Finish client node creation
danielballan Oct 25, 2025
7790af4
fix access blob
danielballan Oct 25, 2025
867b8b9
Server initiated close should clean up resources
danielballan Oct 25, 2025
2a62de3
Work around unrelated issue
danielballan Oct 25, 2025
536cf82
Use context protocol to ensure cleanup in tests.
danielballan Oct 25, 2025
93b001a
Fix URL in item links
danielballan Oct 25, 2025
60c5bf7
Separate signals for disconnected, stream_closed.
danielballan Oct 25, 2025
61d5acc
Sketch exactly item equality test.
danielballan Oct 25, 2025
a666317
Enable test server to read tmp files
danielballan Oct 26, 2025
c416944
Update deprecated usage
danielballan Oct 26, 2025
a63d214
Update schemas for array-ref
danielballan Oct 26, 2025
ee36bc7
Fix assumption in FileSequenceAdapters that chunks are size 1
danielballan Oct 26, 2025
020da38
Smoke test array-ref message.
danielballan Oct 26, 2025
5281e4c
If start() is interrupted, run cleanup
danielballan Oct 26, 2025
c386d35
Attach Subscription to LiveUpdate.
danielballan Oct 26, 2025
588f942
Update docs with new APIs
danielballan Oct 26, 2025
1b8b7ab
Minor cleanup
danielballan Oct 26, 2025
ea4b3da
Implement fetching array data frame reference.
danielballan Oct 26, 2025
e176396
Fix missed update in type name change
danielballan Oct 27, 2025
0967480
Fix other missed prefix
danielballan Oct 27, 2025
643cbae
🪣 Support for OBject Storage (#1021)
Kezzsim Oct 28, 2025
f22a423
Stream tabular data (#1201)
danielballan Oct 28, 2025
3c719ff
Streaming table writes works
danielballan Oct 26, 2025
d9c2850
array-ref needs a shape for the first update
danielballan Oct 26, 2025
b45d842
Move array patch specification to query params.
danielballan Oct 28, 2025
02e4efe
Update CHANGELOG and docs.
danielballan Oct 28, 2025
8b290e2
Revert misplaced change
danielballan Oct 28, 2025
d22edb5
Drop 'extend' parameter from ArrayPatch.
danielballan Oct 28, 2025
bbbed92
REL: v0.2.0-b1
danielballan Oct 28, 2025
ea9d300
Move util shared by client and adapters out of adapters subpackage.
danielballan Oct 29, 2025
1890148
Fixed ValueError when attempting to read a table from composite node …
jmaruland Oct 29, 2025
42d3cea
REL: v0.2.0
danielballan Oct 29, 2025
5f3cf92
fix: Support both .yml and .yaml extensions for config (#1210)
tpoliaw Oct 30, 2025
191812b
Bury tiled.auth imports in CLI (#1212)
padraic-shafer Oct 31, 2025
7353aa7
Update demo URL
danielballan Nov 6, 2025
380ddf4
Remove test dependency on external server.
danielballan Nov 7, 2025
38a9f9a
whitespace
danielballan Nov 7, 2025
f93c2be
Add optional 'persist' query to PUT/PATCH array (#1213)
padraic-shafer Nov 10, 2025
18111e4
Pin down pydantic-settings (#1229)
danielballan Nov 14, 2025
2736259
📵 Remove `async` from blocking function calls (#1224)
Kezzsim Nov 14, 2025
ce9c71e
Add delete:revision, delete:node scopes (#1217)
nmaytan Nov 17, 2025
b5870a2
Fix database settings (#1231)
dan-fernandes Nov 21, 2025
9af5117
Pool / cache in-memory SQLite databases (#1234)
nmaytan Nov 22, 2025
160e656
fix: Update fastapi signature (#1238)
DiamondJoseph Nov 25, 2025
b713556
Update other version pins to match.
danielballan Nov 25, 2025
391b3c9
REL: v0.2.2
danielballan Nov 25, 2025
eb07895
Update config schema for new authdb default (#1239)
nmaytan Nov 26, 2025
be78194
Subscription Retry (#1218)
gwbischof Dec 3, 2025
999eb77
Bumped py39 env to python 3.13 after reaching end of life (#1247)
jmaruland Dec 3, 2025
959350e
Use upstream FileResponse that now supports Range
danielballan Dec 5, 2025
b059b75
fix(ci): Allow helm to publish when forked (#1242)
DiamondJoseph Dec 8, 2025
5f1e693
Split apikeys scope into create and revoke (#1250)
nmaytan Dec 10, 2025
e7ba9d2
Register Directories as Single Nodes (#1254)
genematx Dec 15, 2025
31face6
Add sorting functionality to search results (#1253)
anubhutisinha04 Dec 16, 2025
5806816
Improve AuthN DB migration, address API key scopes (#1259)
nmaytan Dec 16, 2025
fafe963
Fix typo when searching in catalog node (#1257)
tpoliaw Dec 16, 2025
973fdf9
Get slices of composite client (#1256)
AbbyGi Dec 16, 2025
7e00ba6
Update to use a startup script for keycloak-oidc (#1244)
ZohebShaikh Dec 16, 2025
8e4d30d
Add external Policy Decision Point for Authorization (#1170)
ZohebShaikh Dec 17, 2025
74127f5
If server allows anonymous access, allow anon access to WS too. (#1219)
danielballan Dec 17, 2025
9f8e41e
fix: registration with a prefix (#1260)
danielballan Dec 17, 2025
b4bae60
REL: v0.2.3
danielballan Dec 17, 2025
8381e1d
Include more context when subprocess fails (#1263)
tpoliaw Jan 6, 2026
3f0afee
Preemptively Reshape Arrays (#1271)
genematx Jan 14, 2026
2087c18
Sparipsa fix typos (#1270)
San-WierPa Jan 14, 2026
2c077b2
Configure Server-level FastAPI Routers (#1267)
genematx Jan 20, 2026
30f71d9
Stream larger data (#1262)
gwbischof Jan 21, 2026
6b57c54
Add option to add custom config using input (#1275)
ZohebShaikh Jan 21, 2026
972ce14
Add uri to LiveChildCreated
danielballan Jan 21, 2026
159e826
Fix warnings in docs build.
danielballan Jan 22, 2026
95093a5
Configure exclude-members globally.
danielballan Jan 22, 2026
76a4d47
Try hooking into sphinx events
danielballan Jan 22, 2026
da59317
Pin back pandas for now.
danielballan Jan 22, 2026
733dd0f
Extend timeout for slow CI workers
danielballan Jan 22, 2026
443cb93
[WIP] Added TTLCacheDatastore with potential PubSub (#1216)
vshekar Jan 22, 2026
5e18f26
Move tests out of package (#1281)
danielballan Jan 23, 2026
e653163
Add custom auth for tiled client (#1269)
ZohebShaikh Jan 27, 2026
993f7fe
chore: Drop Python 3.9 (EOL) (#1284)
danielballan Jan 29, 2026
4eae722
Require setting explicit scopes to use access-tag restricted apikeys …
nmaytan Jan 30, 2026
c094ad3
allow ALL_ACCESS queries (#1286)
ZohebShaikh Feb 4, 2026
ba713ce
Fix regression in raw_export and download (#1287)
genematx Feb 9, 2026
c844234
Fix Node Deletion (#1283)
genematx Feb 13, 2026
669730a
Add 'properties' to DataSources (#1268)
genematx Feb 13, 2026
6b34415
Refresh documentation (#1289)
danielballan Feb 20, 2026
23a4a8f
Include docs group in publish workflow.
danielballan Feb 20, 2026
8a74473
REL: v0.2.5
danielballan Feb 20, 2026
41d574a
Merge branch 'main' into mypy-type-fix
ZohebShaikh Feb 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions tiled/_tests/adapters/test_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,11 @@ def test_psql(adapter_psql_one_partition: SQLAdapter) -> None:
],
)
def test_write_read_one_batch_one_part(
adapter: SQLAdapter, request: pytest.FixtureRequest
adapter: str, request: pytest.FixtureRequest
) -> None:
# get adapter from fixture
adapter = request.getfixturevalue(adapter)

assert isinstance(adapter, SQLAdapter)
# test appending and reading a table as a whole
test_table = pa.Table.from_arrays(data0, names)

Expand Down Expand Up @@ -237,11 +237,11 @@ def test_write_read_one_batch_one_part(
],
)
def test_write_read_list_batch_one_part(
adapter: SQLAdapter, request: pytest.FixtureRequest
adapter: str, request: pytest.FixtureRequest
) -> None:
# get adapter from fixture
adapter = request.getfixturevalue(adapter)

assert isinstance(adapter, SQLAdapter)
test_table = pa.Table.from_batches([batch0, batch1, batch2])
# test appending a list of batches to a table and read as a whole
adapter.append_partition([batch0, batch1, batch2], 0)
Expand Down Expand Up @@ -293,12 +293,10 @@ def assert_same_rows(table1: pa.Table, table2: pa.Table) -> None:
("adapter_psql_many_partitions"),
],
)
def test_append_single_partition(
adapter: SQLAdapter, request: pytest.FixtureRequest
) -> None:
def test_append_single_partition(adapter: str, request: pytest.FixtureRequest) -> None:
# get adapter from fixture
adapter = request.getfixturevalue(adapter)

assert isinstance(adapter, SQLAdapter)
# test writing an entire pyarrow table to a single partition
table = pa.Table.from_batches([batch0, batch1, batch2])
adapter.append_partition(table, 0)
Expand All @@ -321,11 +319,11 @@ def test_append_single_partition(
],
)
def test_write_read_one_batch_many_part(
adapter: SQLAdapter, request: pytest.FixtureRequest
adapter: str, request: pytest.FixtureRequest
) -> None:
# get adapter from fixture
adapter = request.getfixturevalue(adapter)

assert isinstance(adapter, SQLAdapter)
# test writing to many partitions and reading it whole
adapter.append_partition(batch0, 0)
adapter.append_partition(batch1, 1)
Expand Down
4 changes: 2 additions & 2 deletions tiled/_tests/adapters/test_sql_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ async def postgresql_uri() -> AsyncGenerator[str, None]:
# yield uri_with_database_name.rsplit("/", 1)[0]


@pytest_asyncio.fixture
@pytest.fixture
def sqlite_uri(tmp_path: Path) -> Generator[str, None, None]:
yield f"sqlite:///{tmp_path}/test.db"


@pytest_asyncio.fixture
@pytest.fixture
def duckdb_uri(tmp_path: Path) -> Generator[str, None, None]:
yield f"duckdb:///{tmp_path}/test.db"

Expand Down
3 changes: 2 additions & 1 deletion tiled/_tests/test_protocols.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import uuid
from pathlib import Path
from typing import Any, Dict, List, Literal, Optional, Set, Tuple, Union

Expand Down Expand Up @@ -420,7 +421,7 @@ async def test_accesspolicy_protocol(mocker: MockFixture) -> None:
metadata: JSON = {"foo": "bar"}
container = DirectoryContainer(directory=Path("somedirectory"), form={})
principal = Principal(
uuid="12345678124123412345678123456781", type=PrincipalType.user
uuid=uuid.UUID(int=0x12345678124123412345678123456781), type=PrincipalType.user
)
authn_scopes = {"abc", "baz"}
scopes = {"abc"}
Expand Down
2 changes: 1 addition & 1 deletion tiled/adapters/hdf5.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,12 @@ def from_catalog(
array = cls.lazy_load_hdf5_array(
*file_paths, dataset=dataset, swmr=swmr, libver=libver
)

if slice:
if isinstance(slice, str):
slice = NDSlice.from_numpy_str(slice)
array = array[slice]
if squeeze:
assert isinstance(array, dask.array.Array)
array = array.squeeze()

if array.shape != tuple(structure.shape):
Expand Down
4 changes: 2 additions & 2 deletions tiled/adapters/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
StructureFamilyQuery,
)
from ..query_registration import QueryTranslationRegistry
from ..server.schemas import SortingItem
from ..server.schemas import SortingDirection, SortingItem
from ..storage import Storage
from ..structures.core import Spec, StructureFamily
from ..structures.table import TableStructure
Expand Down Expand Up @@ -111,7 +111,7 @@ def __init__(
# This is a special case that means, "the given ordering".
# By giving that a name ("_") we enable requests to asking for the
# last N by requesting the sorting ("_", -1).
sorting = [SortingItem(key="_", direction=1)]
sorting = [SortingItem(key="_", direction=SortingDirection.ASCENDING)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this actually work? Or as discussed, is the type hint wrong and the method works with what it was previously receiving?

self._sorting = sorting
self._metadata = metadata or {}
self.specs = specs or []
Expand Down
4 changes: 2 additions & 2 deletions tiled/adapters/netcdf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from pathlib import Path
from typing import Any, List, Optional, Set, Union
from typing import Any, Optional, Set

import xarray

Expand All @@ -10,7 +10,7 @@
from .xarray import DatasetAdapter


def read_netcdf(filepath: Union[str, List[str], Path]) -> DatasetAdapter:
def read_netcdf(filepath: str | Path) -> DatasetAdapter:
"""

Parameters
Expand Down
2 changes: 1 addition & 1 deletion tiled/adapters/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from .utils import init_adapter_from_catalog


def force_reshape(arr: np.array, desired_shape: Tuple[int, ...]) -> np.array:
def force_reshape(arr: np.ndarray, desired_shape: Tuple[int, ...]) -> np.ndarray:
"""Reshape a numpy array to match the desired shape, if possible.

Parameters
Expand Down