Skip to content

Conversation

@AronPerez
Copy link
Contributor

@AronPerez AronPerez commented Aug 18, 2025

Ticket

DAPS-1517

Description

This PR implements a new repository type field with two supported values: "globus" (default, for traditional repositories) and "metadata_only" (for metadata-only repositories).

Implementation Details

Protocol Buffer Changes

  • SDMS.proto: Added optional string type = 12 to RepoData message
  • SDMS_Auth.proto: Added optional string type = 13 to RepoCreateRequest and RepoUpdateRequest

C++ Core Service (DatabaseAPI.cpp)

  • repoCreate: Handles type field from request, forwards to Foxx API
  • repoUpdate: Handles type field from request, forwards to Foxx API
  • setRepoData: Reads type field from database response and populates RepoData

How Has This Been Tested?

  • Unit tests: core/database/foxx/tests/operations.test.js & core/database/foxx/tests/repo.test.js
  • End-to-end tests: Added comprehensive tests in tests/end-to-end/test_api_repo.py
  • Integration: Verified type field flows correctly through Python SDK → C++ Core → Database → Response

Summary by Sourcery

Add handling for the repository type field in the core service, update the DatabaseAPI client to pass and parse the type, and cover the new behavior with end-to-end tests.

New Features:

  • Add support for a new repository 'type' field with values 'globus' and 'metadata_only'

Enhancements:

  • Extend the C++ DatabaseAPI to include the type field in repoCreate, repoUpdate, and response parsing

Tests:

  • Add end-to-end tests for creating repositories with explicit types, defaulting behavior, and updating the type field

@AronPerez AronPerez force-pushed the feat-DAPS-1516-default-repo-type branch from 120b760 to ef7a67d Compare August 28, 2025 18:12
This reverts commit c5c2874.

Revert "[DAPS-1531] Update comments"

This reverts commit 464b0f1.

Revert "[DAPS-1531] Address CI"

This reverts commit 4d66b75.

Revert "[DAPS-1531] Object to object"

This reverts commit 5c39a8d.

Revert "[DAPS-1531] Address Object -> object, address copilot comments"

This reverts commit ae39a84.
…e test if unsupported

- Added tests for `repoCreate` with explicit `type='globus'` and `type='metadata_only'`.
- Verified default type behavior when no type is specified (`defaults to 'globus'`).
- Tested updating repository type via `repoUpdate`.
- Ensured all tests validate type field presence and correct values.
- Skipped `repoUpdate` test if the method is unavailable in the Python SDK.
* [DAPS-1519] Update SDK, add tests

* [DAPS-1519] Address Sourcery AI feedback

* [DAPS-1519] Update param name, simplify tests
@AronPerez AronPerez force-pushed the feat-DAPS-1517-cpp-core-svc-handling branch from d036aa3 to bf30325 Compare August 28, 2025 18:12
@JoshuaSBrown
Copy link
Collaborator

@AronPerez are you wanting to finish this feature? There is of course no pressure to do so other than if you are it still needs to get done within the timeline. Otherwise, I will be reassigning these items to myself.

@AronPerez
Copy link
Contributor Author

Sure. There's currently a bug with the core service not receiving the request for allocation creation with the added type to give you an idea of where I'm at with that

@JoshuaSBrown
Copy link
Collaborator

Sure. There's currently a bug with the core service not receiving the request for allocation creation with the added type to give you an idea of where I'm at with that

Just to be clear that's a yes, you do want to wrap it up.

@JoshuaSBrown
Copy link
Collaborator

I am assigning all of these items to myself.

@JoshuaSBrown JoshuaSBrown changed the base branch from feat-DAPS-1516-default-repo-type to devel September 30, 2025 19:45
JoshuaSBrown added a commit that referenced this pull request Oct 14, 2025
…data (#1603)

Co-authored-by: Aaron Perez <perezam@ornl.gov>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Core] C++ Response Handling: Update Core Service for New Allocation Response Format

7 participants