You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
authored
Add namespace creation/deletion to graphql (#2608)
* Add namespace creation/deletion to graphql
Add TestSetup struct, setup_with_graphs, run_mutation, and assert_is_namespace_dir
helpers to mod graphql_test in raphtory-graphql/src/lib.rs for use by namespace tests
in later tasks.
Previously called validate_path_for_insert which created a graph-folder
skeleton + dirty marker on disk and leaked them, so the new namespace
appeared as a MetaGraph. Now uses validate_path_for_namespace_create
plus fs::create_dir_all.
test: createNamespace creates nested directories
test: createNamespace rejects path of existing graph
test: createNamespace rejects path of existing namespace
test: createNamespace rejects invalid paths
test: tighten createNamespace existing-namespace error check
test: add FakePolicy and setup_with_policy helpers
test: createNamespace denied without parent write
test: tighten FakePolicy docs and silence dead-code warning
test: deleteNamespace removes empty namespace
test: deleteNamespace removes namespace with children
test: deleteNamespace rejects empty path
test: deleteNamespace rejects non-existent path
test: deleteNamespace denied when descendant graph unwritable
test: deleteNamespace invalidates cached graphs
test: clarify deleteNamespace denied-test comments
feat(graphql): deleteNamespace infrastructure
- auth.rs: add is_exclusive_write so deleteNamespace acquires the
exclusive write lock alongside updateGraph
- namespace.rs: expose current_dir() and relative_path() accessors used
by Mut::delete_namespace and the data layer
* Mark paths dirty before cache eviction and in create_namespace
* chore: apply tidy-public auto-fixes
* Fix race condition in create_namespace
* Add tests asserting failure due to lack of permissions
* chore: apply tidy-public auto-fixes
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Shivam <4599890+shivamka1@users.noreply.github.com>
0 commit comments