Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
163cb62
[DAPS-1770] - release: v4.0.0
JoshuaSBrown Nov 17, 2025
dfb241a
[DAPS-1777] - Foxx, fix: user_router fix regression in missing respon…
JoshuaSBrown Nov 25, 2025
fb1a800
[DAPS-1774] - Core, Python, Database, Foxx, Test add query end to end…
JoshuaSBrown Dec 1, 2025
a0145e3
chore: Auto-format JavaScript files with Prettier
JoshuaSBrown Dec 1, 2025
65733df
[DAPS-1522] - refactor: foxx, Note Router Logging Improvements (#1796)
megatnt1122 Dec 2, 2025
5b76791
[DAPS-1774] - continuation of fix (#1798)
JoshuaSBrown Dec 3, 2025
036079b
[DAPS-1774] - continuation of fix (#1798)
JoshuaSBrown Dec 4, 2025
4e3f0fc
[DAPS-1522] refactor: foxx, Metrics Router Logging Improvements (#1797)
megatnt1122 Dec 4, 2025
2c6cde2
[DAPS-1522] - refactor: foxx, Group Router Logging Improvements (#1795)
megatnt1122 Dec 4, 2025
d05f83b
[DAPS-1522] - foxx, Authz Router Logging Improvements (#1788)
megatnt1122 Dec 4, 2025
894510d
release: version 4.0.1 (#1807)
JoshuaSBrown Dec 5, 2025
dde50e6
refactor: only print subset of user properties. (#1804)
JoshuaSBrown Dec 8, 2025
7b76aa3
[DAPS-1806] - refactor: foxx, user tokens expiring route. (#1806)
JoshuaSBrown Dec 9, 2025
2723767
[DAPS-1522] - refactor: foxx, topic router logging improvements (#1801)
megatnt1122 Dec 10, 2025
3066969
[DAPS-1522] - refactor: foxx, config router logging improvements (#1813)
megatnt1122 Dec 11, 2025
38c5e0e
[DAPS-1522] - refactor: foxx, admin router logging improvements (#1814)
megatnt1122 Dec 15, 2025
02210d4
[DAPS-1522] - refactor: foxx, acl router logging improvements (#1817)
megatnt1122 Dec 15, 2025
c0cb6d8
[DAPS-1522] - refactor: foxx, repo router logging improvements (#1823)
megatnt1122 Jan 12, 2026
7926d0e
[DAPS-1522] - refactor: foxx, schema router logging improvements (#1821)
megatnt1122 Jan 14, 2026
bbee1c2
[DAPS-1522] - refactor: foxx, proj router logging improvements (#1822)
megatnt1122 Jan 14, 2026
f128891
[DAPS-1522] - refactor: foxx, user router logging improvements (#1809)
megatnt1122 Jan 14, 2026
2266628
[DAPS-1522] - refactor: foxx, collection router logging improvements …
megatnt1122 Jan 15, 2026
957db8e
[DAPS-1522] - refactor: foxx, query_router logging improvements, smal…
megatnt1122 Jan 21, 2026
d2a253e
[DAPS-1833] - refactor: test_api_record.py add env vars for specifyin…
JoshuaSBrown Jan 28, 2026
6f4692e
fixed typo
nedvedba Jan 16, 2026
19a73b1
fix(auth): resolve infinite consent loop and improve scope handling
blakeanedved Jan 20, 2026
0fb8771
fix(auth): resolve infinite consent loop via db, race condition, and …
blakeanedved Jan 20, 2026
7df3ff9
added debug information
blakeanedved Jan 20, 2026
662d518
removed duplicated code
blakeanedved Jan 20, 2026
a71c129
removed error
blakeanedved Jan 20, 2026
30345c6
chore: Auto-format JavaScript files with Prettier
blakeanedved Jan 20, 2026
0e1c78d
try client fix
blakeanedved Jan 20, 2026
5a6d17e
added handler for globus default token
nedvedba Jan 23, 2026
e214ba0
single domain req
nedvedba Jan 23, 2026
f424480
added state restore feature
nedvedba Jan 23, 2026
760f4ba
added upload data modal restore feature
nedvedba Jan 23, 2026
af34dfd
(hopefully) fixed session restore feature
nedvedba Jan 23, 2026
13cc3a4
chore: Auto-format JavaScript files with Prettier
nedvedba Jan 23, 2026
658dec8
dont overwrite path
nedvedba Jan 23, 2026
248d8b9
fix syntax error
nedvedba Jan 23, 2026
428de95
fix syntax error 2
nedvedba Jan 23, 2026
26e06a8
chore: Auto-format JavaScript files with Prettier
nedvedba Jan 23, 2026
d2072ce
change how endpoint id is restored
nedvedba Jan 23, 2026
ab08cec
removed endpoint browser restore
nedvedba Jan 23, 2026
1d12612
remove debug info
nedvedba Jan 23, 2026
0355e62
removed more debug info
nedvedba Jan 23, 2026
e03b420
Update datafed-ws.js
nedvedba Feb 2, 2026
7f34078
Add back finally block after finishing debugging
nedvedba Feb 2, 2026
d2d9596
[DAPS-1836] - feat: add protobuf3 replacement files. (#1836)
JoshuaSBrown Feb 2, 2026
f1ed2f9
updated submodules
nedvedba Feb 3, 2026
51df50e
[DAPS-1839] - Fix: ci image retag (#1840)
JoshuaSBrown Feb 4, 2026
f0d75ae
[DAPS-1522] - refactor: router logging cleanup (#1838)
megatnt1122 Feb 4, 2026
fd30747
[DAPS-1522] - refactor: data router logging improvements (#1789)
megatnt1122 Feb 4, 2026
c86e353
[1835-DAPS] - refactor: proto proto3 with envelope part 2 (#1841)
JoshuaSBrown Feb 6, 2026
c03924a
[DAPS-1837] - refactor common library to use proto3 (#1842)
JoshuaSBrown Feb 11, 2026
b1a2239
updated dependencies submodule
nedvedba Feb 18, 2026
7fd171f
fixed gcs build job
nedvedba Feb 18, 2026
f013fa0
merge #1831
nedvedba Feb 19, 2026
d94d747
initial staging for 5.0.0
nedvedba Feb 19, 2026
a851f0f
fixed proto3 version conversion
blakeanedved Feb 23, 2026
b4442b9
fixed missed merge conflict
nedvedba Feb 23, 2026
8e07d10
fix: prevent defaults being set to undefined, and interpret numbers a…
nedvedba Feb 23, 2026
d41bc46
Update Staging (#1869)
nedvedba Feb 23, 2026
0fae43e
[DAPS-1862] - fix allocation change failure (#1864)
JoshuaSBrown Feb 24, 2026
dd26c32
Merge branch 'staging' into master-staging-merge
JoshuaSBrown Feb 24, 2026
ec3f1a8
Merge pull request #1875 from ORNL/master-staging-merge
JoshuaSBrown Feb 24, 2026
228483e
fixed user router /update (#1877)
nedvedba Feb 24, 2026
3209240
[DAPS-1872] - fix: QA, tests running until timeout, proto3 compatibil…
JoshuaSBrown Feb 25, 2026
ffa8322
[DAPS-1878] - release: version number update (#1878)
JoshuaSBrown Feb 25, 2026
83e62c6
Stage release (#1920)
nedvedba Mar 31, 2026
7a9c236
Release Version bump devel (#1924)
JoshuaSBrown Mar 31, 2026
555580a
Merge branch 'master' into staging
JoshuaSBrown Mar 31, 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
4 changes: 3 additions & 1 deletion .gitlab/build/force_build_core_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ build-core:
GIT_STRATEGY: clone
DOCKER_FILE_PATH: "core/docker/Dockerfile"
DATAFED_HARBOR_REGISTRY: "$REGISTRY" # needed by c_harbor_artifact_count
BUILD_INTERMEDIATE: "FALSE"
BUILD_INTERMEDIATE: "TRUE"
INTERMEDIATE_TARGET: "core-build" # Name of the layer in the dockerfile
INTERMEDIATE_LAYER_NAME: "build"
tags:
- ci-datafed-core
- docker
4 changes: 3 additions & 1 deletion .gitlab/build/retag_core_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ retag-image:
COMPONENT: "core"
GIT_STRATEGY: clone
DATAFED_HARBOR_REGISTRY: "$REGISTRY" # needed by c_harbor_artifact_count
BUILD_INTERMEDIATE: "FALSE"
BUILD_INTERMEDIATE: "TRUE"
INTERMEDIATE_TARGET: "core-build" # Name of the layer in the dockerfile
INTERMEDIATE_LAYER_NAME: "build"
tags:
- docker
5 changes: 5 additions & 0 deletions .gitlab/end_to_end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ end-to-end-foxx-setup:
- echo "-e DATAFED_DATABASE_IP_ADDRESS_PORT=\"$CI_DATAFED_DATABASE_IP_ADDRESS_PORT\" \\" >> "${RUN_FILE}"
- echo "-e DATAFED_DATABASE_HOST=\"$CI_DATAFED_DATABASE_HOST\" \\" >> "${RUN_FILE}"
- echo "-e DATAFED_DEFAULT_LOG_PATH=\"$CONTAINER_LOG_FILE_PATH\" \\" >> "${RUN_FILE}"
- echo "-e ALLOW_PRODUCTION_DB=\"True\" \\" >> "${RUN_FILE}"
- echo "-e DATAFED_DATABASE_NAME=\"sdms\" \\" >> "${RUN_FILE}"
- echo "-e DATAFED_ALLOW_TESTING_PROD_DATABASE=\"True\" \\" >> "${RUN_FILE}"
- echo "-v \"${HOST_LOG_FILE_PATH}:${CONTAINER_LOG_FILE_PATH}\" \\" >> "${RUN_FILE}"
- echo "-v \"./foxx_tmp:/tmp\" \\" >> "${RUN_FILE}"
- echo "-t \"${REGISTRY}/${PROJECT}/${COMPONENT}-${BRANCH_LOWER}:${CI_COMMIT_SHA}\"" >> "${RUN_FILE}"
Expand Down Expand Up @@ -379,6 +382,8 @@ end_to_end_client-test:
DATAFED_DOMAIN: "${CI_DATAFED_DOMAIN}"
DATAFED_PYTHON_CLIENT_ALLOW_SELF_SIGNED_CERTS: "TRUE"
DATAFED_PYTHON_DEPENDENCIES_DIR: "${DATAFED_DEPENDENCIES_INSTALL_PATH}/python"
DATAFED_DATABASE_NAME: "sdms"
ALLOW_PRODUCTION_DB: "true"
stage: end-to-end-test
dependencies:
- end-to-end-gcs-authz-setup
Expand Down
3 changes: 2 additions & 1 deletion .gitlab/stage_image_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ check-core-image:
variables:
PROJECT: "datafed"
COMPONENT: "core"
BUILD_INTERMEDIATE: "FALSE"
BUILD_INTERMEDIATE: "TRUE"
INTERMEDIATE_LAYER_NAME: "build"
WATCHED_PATHS: "docker scripts core common CMakeLists.txt cmake .gitlab-ci.yml"

check-repo-image:
Expand Down
28 changes: 28 additions & 0 deletions .gitlab/stage_unit.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
include:
- local: .gitlab/stage_build.yml
- local: .gitlab/common.yml

run-ws-unit-job:
# Either the web container needs to be rebuilt or the container needs to be
Expand Down Expand Up @@ -126,3 +127,30 @@ run-authz-unit-job:
- echo "-c 'cd /datafed/source; /opt/datafed/dependencies/bin/cmake --build build --target test'" >> run_globus.sh
- chmod +x run_globus.sh
- ./run_globus.sh

run-core-unit-job:
needs: ["run-core-build-job"]
stage: unit
variables:
PROJECT: "datafed"
COMPONENT: "core"
GIT_STRATEGY: clone
INTERMEDIATE_LAYER_NAME: "build"
tags:
- ci-datafed-core
- docker
script:
- BRANCH_LOWER=$(echo "$CI_COMMIT_REF_NAME" | tr '[:upper:]' '[:lower:]')
- echo "${HARBOR_DATAFED_GITLAB_CI_REGISTRY_TOKEN}" | docker login "${REGISTRY}" -u "${HARBOR_USER}" --password-stdin
- ./scripts/container_stop.sh -n "core-unit-" -p
- random_string=$(bash -c "cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 10 | head -n 1")
- |
docker run --rm \
--name "core-unit-${BRANCH_LOWER}-${CI_COMMIT_SHORT_SHA}-${random_string}" \
--entrypoint bash \
-t "${REGISTRY}/${PROJECT}/${COMPONENT}-${INTERMEDIATE_LAYER_NAME}-${BRANCH_LOWER}:${CI_COMMIT_SHA}" \
-c 'cd /datafed/source && \
/opt/datafed/dependencies/bin/ctest \
--test-dir build \
-LE "integration|fixture" \
--output-on-failure'
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ OPTION(ENABLE_END_TO_END_API_TESTS "Enable end-to-end API testing" FALSE)
OPTION(ENABLE_END_TO_END_WEB_TESTS "Enable end-to-end web testing with Playwright" FALSE)
OPTION(ENABLE_FOXX_TESTS "Enable Foxx testing, off by default because it
will overwrite the test database." FALSE)
option(DATAFED_ALLOW_TESTING_PROD_DATABASE
"Allow testing on production database." FALSE)

set(DATAFED_TEST_DATABASE_NAME "sdms_test"
CACHE STRING "Database name used by Foxx tests")
set(INSTALL_REPO_SERVER ${BUILD_REPO_SERVER})
set(INSTALL_AUTHZ ${BUILD_AUTHZ})
set(INSTALL_CORE_SERVER ${BUILD_CORE_SERVER})
Expand Down
20 changes: 10 additions & 10 deletions cmake/Version.cmake
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@


set(DATAFED_RELEASE_YEAR 2026)
set(DATAFED_RELEASE_MONTH 2)
set(DATAFED_RELEASE_DAY 24)
set(DATAFED_RELEASE_MONTH 3)
set(DATAFED_RELEASE_DAY 31)
set(DATAFED_RELEASE_HOUR 10)
set(DATAFED_RELEASE_MINUTE 0)

set(DATAFED_COMMON_LIB_MAJOR 3)
set(DATAFED_COMMON_LIB_MINOR 0)
set(DATAFED_COMMON_LIB_MINOR 1)
set(DATAFED_COMMON_LIB_PATCH 0)

set(DATAFED_COMMON_PROTOCOL_API_MAJOR 3)
set(DATAFED_COMMON_PROTOCOL_API_MINOR 0)
set(DATAFED_COMMON_PROTOCOL_API_MINOR 1)
set(DATAFED_COMMON_PROTOCOL_API_PATCH 0)

set(DATAFED_CORE_MAJOR 3)
set(DATAFED_CORE_MINOR 0)
set(DATAFED_CORE_MINOR 1)
set(DATAFED_CORE_PATCH 0)

set(DATAFED_FOXX_MAJOR 1)
set(DATAFED_FOXX_MINOR 3)
set(DATAFED_FOXX_MINOR 4)
set(DATAFED_FOXX_PATCH 0)

set(DATAFED_FOXX_API_MAJOR 1)
set(DATAFED_FOXX_API_MINOR 3)
set(DATAFED_FOXX_API_MINOR 4)
set(DATAFED_FOXX_API_PATCH 0)

set(DATAFED_WEB_MAJOR 3)
set(DATAFED_WEB_MINOR 0)
set(DATAFED_WEB_MINOR 1)
set(DATAFED_WEB_PATCH 0)

set(DATAFED_REPO_MAJOR 3)
set(DATAFED_REPO_MINOR 0)
set(DATAFED_REPO_MINOR 1)
set(DATAFED_REPO_PATCH 0)

set(DATAFED_AUTHZ_MAJOR 3)
set(DATAFED_AUTHZ_MINOR 0)
set(DATAFED_AUTHZ_PATCH 0)

set(DATAFED_PYTHON_CLIENT_MAJOR 5)
set(DATAFED_PYTHON_CLIENT_MINOR 0)
set(DATAFED_PYTHON_CLIENT_MINOR 1)
set(DATAFED_PYTHON_CLIENT_PATCH 0)
set(DATAFED_PYTHON_CLIENT_RELEASE_TYPE "")
set(DATAFED_PYTHON_CLIENT_PRE_RELEASE_IDENTIFER "")
9 changes: 4 additions & 5 deletions common/include/common/IAuthenticationManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@

// Standard imports
#include <string>

namespace SDMS {

struct LogContext;
/**
* Interface class for managing authenticating
*
Expand All @@ -26,7 +25,7 @@ class IAuthenticationManager {
* Increments the number of times that the key has been accessed, this is
*useful information when deciding if a key should be purged.
**/
virtual void incrementKeyAccessCounter(const std::string &public_key) = 0;
virtual void incrementKeyAccessCounter(const std::string &public_key, LogContext log_context) = 0;

/**
* Will return true if the public key is known. This is also dependent on the
Expand All @@ -39,7 +38,7 @@ class IAuthenticationManager {
* - SESSION
* - PERSISTENT
**/
virtual bool hasKey(const std::string &pub_key) const = 0;
virtual bool hasKey(const std::string &pub_key, LogContext log_context) const = 0;

/**
* Will get the unique id or throw an error
Expand All @@ -49,7 +48,7 @@ class IAuthenticationManager {
* - SESSION
* - PERSISTENT - user or repo
**/
virtual std::string getUID(const std::string &pub_key) const = 0;
virtual std::string getUID(const std::string &pub_key, LogContext log_context) const = 0;

/**
* Purge keys if needed
Expand Down
2 changes: 1 addition & 1 deletion common/include/common/TraceException.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class TraceException : public std::exception {
return m_context;
}

unsigned long getErrorCode() { return m_error_code; }
unsigned long getErrorCode() const { return m_error_code; }

const char *what() const throw() { return m_context.c_str(); }

Expand Down
1 change: 1 addition & 0 deletions common/proto3/common/auth/metadata_validate_request.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ option cc_enable_arenas = true;
message MetadataValidateRequest {
string metadata = 1;
string sch_id = 2;
string format = 3;
}
2 changes: 2 additions & 0 deletions common/proto3/common/auth/schema_create_request.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ message SchemaCreateRequest {
bool pub = 3;
bool sys = 4;
string def = 5;
string type = 6;
string format = 7;
}
2 changes: 2 additions & 0 deletions common/proto3/common/messages/schema_data.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ message SchemaData {
string def = 10;
repeated SchemaData uses = 11;
repeated SchemaData used_by = 12;
string type = 13;
string format = 14;
}
9 changes: 6 additions & 3 deletions common/source/operators/AuthenticationOperator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

// Local public includes
#include "common/TraceException.hpp"
#include "common/DynaLog.hpp"

// Standard includes
#include <any>
Expand All @@ -26,16 +27,18 @@ void AuthenticationOperator::execute(IMessage &message) {
EXCEPT(1, "'KEY' attribute not defined.");
}

LogContext log_context;
log_context.correlation_id = std::get<std::string>(message.get(MessageAttribute::CORRELATION_ID));
m_authentication_manager->purge();

std::string key = std::get<std::string>(message.get(MessageAttribute::KEY));

std::string uid = "anon";
if (m_authentication_manager->hasKey(key)) {
m_authentication_manager->incrementKeyAccessCounter(key);
if (m_authentication_manager->hasKey(key, log_context)) {
m_authentication_manager->incrementKeyAccessCounter(key, log_context);

try {
uid = m_authentication_manager->getUID(key);
uid = m_authentication_manager->getUID(key, log_context);
} catch (const std::exception& e) {
// Log the exception to help diagnose authentication issues
std::cerr << "[AuthenticationOperator] Failed to get UID for key: "
Expand Down
7 changes: 4 additions & 3 deletions common/tests/unit/test_OperatorFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "common/MessageFactory.hpp"
#include "common/OperatorFactory.hpp"
#include "common/OperatorTypes.hpp"
#include "common/DynaLog.hpp"

// Third party includes
#include <google/protobuf/stubs/common.h>
Expand Down Expand Up @@ -38,15 +39,15 @@ class DummyAuthManager : public IAuthenticationManager {
/**
* Methods only available via the interface
**/
virtual void incrementKeyAccessCounter(const std::string &pub_key) final {
virtual void incrementKeyAccessCounter(const std::string &pub_key, LogContext log_context) final {
++m_counters.at(pub_key);
}

virtual bool hasKey(const std::string &pub_key) const {
virtual bool hasKey(const std::string &pub_key, LogContext log_context) const {
return m_counters.count(pub_key);
}
// Just assume all keys map to the anon_uid
virtual std::string getUID(const std::string &) const {
virtual std::string getUID(const std::string &, LogContext log_context) const {
return "authenticated_uid";
}

Expand Down
75 changes: 38 additions & 37 deletions core/database/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ configure_file(
@ONLY)

if( ENABLE_FOXX_TESTS )
add_test(NAME foxx_setup COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/tests/test_setup.sh")
add_test(NAME foxx_setup COMMAND "${PROJECT_SOURCE_DIR}/scripts/install_foxx.sh")
add_test(NAME foxx_teardown COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/tests/test_teardown.sh")
add_test(NAME foxx_db_fixtures COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/tests/test_fixture_setup.sh")

Expand Down Expand Up @@ -49,40 +49,41 @@ if( ENABLE_FOXX_TESTS )
add_test(NAME foxx_unit_globus_collection_model COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/tests/test_foxx.sh" -t "unit_globus_collection_model:")
add_test(NAME foxx_unit_globus_token_model COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/tests/test_foxx.sh" -t "unit_globus_token_model:")

set_tests_properties(foxx_setup PROPERTIES FIXTURES_SETUP Foxx)
set_tests_properties(foxx_teardown PROPERTIES FIXTURES_CLEANUP Foxx)
set_tests_properties(foxx_db_fixtures PROPERTIES FIXTURES_SETUP FoxxDBFixtures FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_version PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_support PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_authz PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_authz_router PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_record PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_data_router PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_repo PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_repo_globus PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_repo_metadata PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_base_repo PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_repositories PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_repo_router PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_validation_repo PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_path PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_user_router PROPERTIES FIXTURES_REQUIRED "Foxx;FoxxDBFixtures")
set_tests_properties(foxx_coll_router PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_proj_router PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_schema_router PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_acl_router PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_config_router PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_topic_router PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_group_router PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_admin_router PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_metrics_router PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_note_router PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_version_router PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_tag_router PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_query_router PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_task_router PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_unit_user_token PROPERTIES FIXTURES_REQUIRED Foxx)
set_tests_properties(foxx_unit_user_model PROPERTIES FIXTURES_REQUIRED "Foxx;FoxxDBFixtures")
set_tests_properties(foxx_unit_globus_collection_model PROPERTIES FIXTURES_REQUIRED "Foxx;FoxxDBFixtures")
set_tests_properties(foxx_unit_globus_token_model PROPERTIES FIXTURES_REQUIRED "Foxx;FoxxDBFixtures")
set_tests_properties(foxx_setup PROPERTIES WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}/core/database/foxx" FIXTURES_SETUP Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME};ALLOW_PRODUCTION_DB=${DATAFED_ALLOW_TESTING_PROD_DATABASE}")
set_tests_properties(foxx_db_fixtures PROPERTIES FIXTURES_SETUP FoxxDBFixtures FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME};ALLOW_PRODUCTION_DB=${DATAFED_ALLOW_TESTING_PROD_DATABASE}")
set_tests_properties(foxx_teardown PROPERTIES FIXTURES_CLEANUP Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")

set_tests_properties(foxx_version PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_support PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_authz PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_authz_router PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_record PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_data_router PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_repo PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_repo_globus PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_repo_metadata PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_base_repo PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_repositories PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_repo_router PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_validation_repo PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_path PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_user_router PROPERTIES FIXTURES_REQUIRED "Foxx;FoxxDBFixtures" ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_coll_router PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_proj_router PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_schema_router PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_acl_router PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_config_router PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_topic_router PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_group_router PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_admin_router PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_metrics_router PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_note_router PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_version_router PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_tag_router PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_query_router PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_task_router PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_unit_user_token PROPERTIES FIXTURES_REQUIRED Foxx ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_unit_user_model PROPERTIES FIXTURES_REQUIRED "Foxx;FoxxDBFixtures" ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_unit_globus_collection_model PROPERTIES FIXTURES_REQUIRED "Foxx;FoxxDBFixtures" ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
set_tests_properties(foxx_unit_globus_token_model PROPERTIES FIXTURES_REQUIRED "Foxx;FoxxDBFixtures" ENVIRONMENT "DATAFED_DATABASE_NAME=${DATAFED_TEST_DATABASE_NAME}")
endif()
4 changes: 2 additions & 2 deletions core/database/foxx/api/coll_router.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const router = createRouter();
const joi = require("joi");

const g_db = require("@arangodb").db;
const g_graph = require("@arangodb/general-graph")._graph("sdmsg");
const g_graph = require("./db_config").getGraph();
const g_lib = require("./support");
const error = require("./lib/error_codes");
const permissions = require("./lib/permissions");
Expand Down Expand Up @@ -405,7 +405,7 @@ router
_from: coll_id,
});
if (old_alias) {
const graph = require("@arangodb/general-graph")._graph("sdmsg");
const graph = require("./db_config").getGraph();
graph.a.remove(old_alias._to);
}

Expand Down
2 changes: 1 addition & 1 deletion core/database/foxx/api/data_router.js
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ function recordUpdate(client, record, result) {
_from: data_id,
});
if (old_alias) {
const graph = require("@arangodb/general-graph")._graph("sdmsg");
const graph = require("./db_config").getGraph();
graph.a.remove(old_alias._to);
}

Expand Down
Loading
Loading