Skip to content

Commit 96f2dd4

Browse files
authored
[DAPS-1837] - refactor: core server to support proto3 (#1844)
* [DAPS-1845] - refactor repo server to use proto3 (#1846) * [DAPS-1847] - refactor: python package to be compatible with proto3 envelope (#1849) * [DAPS-1848] - refactor: update authz files to use proto3. (#1851) * [DAPS-1850] - refactor web server proto3 (#1852)
1 parent 32ef6a2 commit 96f2dd4

38 files changed

+1192
-1148
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ endif()
128128
if( BUILD_WEB_SERVER )
129129
include(./cmake/Web.cmake)
130130

131-
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/common/proto/common/"
132-
DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}/web/proto/")
131+
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/common/proto3/common/"
132+
DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}/web/proto3/")
133133

134134
if( ENABLE_UNIT_TESTS )
135135
add_test(NAME unit_tests_web COMMAND "${DEPENDENCY_INSTALL_PATH}/nvm/versions/node/${LOCAL_NODE_VERSION}/bin/npm" "test")
@@ -199,7 +199,7 @@ endif()
199199

200200
if( BUILD_PYTHON_CLIENT )
201201
# make target = pydatafed
202-
file(COPY ${PROJECT_SOURCE_DIR}/external/DataFedDependencies/python/datafed_pkg/requirements.txt DESTINATION ${PROJECT_SOURCE_DIR}/python/datafed_pkg/requirements.txt)
202+
file(COPY ${PROJECT_SOURCE_DIR}/external/DataFedDependencies/python/datafed_pkg/requirements.txt DESTINATION ${PROJECT_SOURCE_DIR}/python/datafed_pkg)
203203
add_subdirectory( python EXCLUDE_FROM_ALL )
204204
endif()
205205

@@ -227,9 +227,9 @@ if( INSTALL_CORE_SERVER )
227227
endif()
228228

229229
if( INSTALL_WEB_SERVER )
230-
install( FILES ${ProtoFiles} DESTINATION ${DATAFED_INSTALL_PATH}/web )
231230
install( DIRECTORY ${PROJECT_SOURCE_DIR}/web/static DESTINATION ${DATAFED_INSTALL_PATH}/web )
232231
install( DIRECTORY ${PROJECT_SOURCE_DIR}/web/views DESTINATION ${DATAFED_INSTALL_PATH}/web )
232+
install( DIRECTORY ${PROJECT_SOURCE_DIR}/web/proto3 DESTINATION ${DATAFED_INSTALL_PATH}/web )
233233
install( FILES ${PROJECT_SOURCE_DIR}/web/version.js DESTINATION ${DATAFED_INSTALL_PATH}/web )
234234
endif()
235235

core/server/ClientWorker.cpp

Lines changed: 134 additions & 176 deletions
Large diffs are not rendered by default.

core/server/ClientWorker.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ class ClientWorker : public nlohmann::json_schema::basic_error_handler {
182182

183183
void schemaEnforceRequiredProperties(const nlohmann::json &a_schema);
184184
void recordCollectionDelete(const std::vector<std::string> &a_ids,
185-
Auth::TaskDataReply &a_reply,
185+
SDMS::TaskDataReply &a_reply,
186186
LogContext log_context);
187187
void handleTaskResponse(libjson::Value &a_result, LogContext log_context);
188188

core/server/Config.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// DataFed Common public includes
99
#include "common/DynaLog.hpp"
1010
#include "common/ICredentials.hpp"
11-
#include "common/SDMS.pb.h"
11+
#include "common/envelope.pb.h"
1212

1313
// Standard includes
1414
#include <map>

0 commit comments

Comments
 (0)