Skip to content

fix/DAT-1494#4

Merged
parmatys merged 16 commits into
developmentfrom
fix/DAT-1494
Dec 16, 2025
Merged

fix/DAT-1494#4
parmatys merged 16 commits into
developmentfrom
fix/DAT-1494

Conversation

@michalhuryn-montrose

@michalhuryn-montrose michalhuryn-montrose commented Dec 9, 2025

Copy link
Copy Markdown
Collaborator

This MR introduces methods satisfying missing methods that are needed to unify operability between this and python version package. Each commit adds single feature.

The Databrary API now returns different field names (institutions,
affiliates, investigators, hours_of_recordings) instead of the legacy
fields (authorized_users, total_volumes, etc.). Updated the function
to map new fields while keeping legacy fields as NA for backwards
compatibility.
- Add API constant for funder detail endpoint
- Implement get_funder_by_id() function
- Add test suite (11 test cases)
- Add function documentation
- Add API constant for tag detail endpoint
- Implement get_tag_by_id() function
- Add test suite (12 test cases)
- Add function documentation
- Added API_CATEGORY_DETAIL constant
- Implemented get_category_by_id() to retrieve category by ID
- Add test suite (12 test cases)
- Add function documentation
  - Added API_CATEGORIES constant
  - Implemented list_categories() to retrieve all categories
  - Add test suite (10 test cases)
  - Add function documentation
  - Added API_VOLUME_RECORDS constant
  - Implemented list_volume_records() to retrieve participant records from volumes
  - Add test suite (14 test cases)
  - Add function documentation
  - Added API_VOLUME_RECORD_DETAIL constant
  - Implemented get_volume_record_by_id() to retrieve single record by ID
  - Created test suite (14 test cases)
  - Added API_VOLUME_COLLABORATOR_DETAIL constant
  - Implemented get_volume_collaborator_by_id() to retrieve single collaborator by ID
  - Returns detailed collaborator data with user, sponsor, and sponsorship info
  - Created test suite (15 test cases)
@michalhuryn-montrose michalhuryn-montrose changed the title fix(api): update get_db_stats to match new API response structure fix/DAT-1494 Dec 10, 2025
@michalhuryn-montrose michalhuryn-montrose changed the base branch from feature/DAT-1495 to development December 15, 2025 12:39
Comment thread R/get_folder_file.R Outdated
@parmatys parmatys merged commit b9356e9 into development Dec 16, 2025
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.

2 participants