From a290c866f953b5a1da00cec534a5dc56c63b31f0 Mon Sep 17 00:00:00 2001 From: Helen Lin <46795546+helen-m-lin@users.noreply.github.com> Date: Mon, 10 Nov 2025 08:54:22 -0800 Subject: [PATCH 1/3] docs: list indexed fields (#192) --- docs/source/ExamplesDocDBRestApi.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/source/ExamplesDocDBRestApi.rst b/docs/source/ExamplesDocDBRestApi.rst index d2dad10..5f32c47 100644 --- a/docs/source/ExamplesDocDBRestApi.rst +++ b/docs/source/ExamplesDocDBRestApi.rst @@ -8,6 +8,20 @@ REST API using the provided Python client. Querying Metadata ~~~~~~~~~~~~~~~~~~~~~~ +.. note:: + + There are a several indexed fields in the DocDB metadata collection to support + efficient query execution by limiting the number of documents to be scanned. + Please use these fields in your filter queries whenever possible. + + Currently, the following fields are indexed in the v1 (``metadata_index/data_assets``) + collection: ``_id``, ``name``, ``location``, ``subject.subject_id``, + ``data_description.project_name``, and ``data_description.modality.abbreviation``. + + The same fields are indexed in the v2 (``metadata_index_v2/data_assets``) collection, + other than spelling for the modality field (``data_description.modalities.abbreviation``). + + Count Example 1: Get # of records with a certain subject_id ----------------------------------------------------------- From bf8b59b1ab5d73284791ce1f3521eb90f4d9e5fa Mon Sep 17 00:00:00 2001 From: Yosef Bedaso <20714699+yosefmaru@users.noreply.github.com> Date: Fri, 14 Nov 2025 12:03:45 -0800 Subject: [PATCH 2/3] ci: updates tag job to a reusable workflow (#191) * ci: updates tag job to a reusable workflow * ci: fixes secret input name --- .github/workflows/publish_main.yml | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/.github/workflows/publish_main.yml b/.github/workflows/publish_main.yml index c81a5ef..ce5b549 100644 --- a/.github/workflows/publish_main.yml +++ b/.github/workflows/publish_main.yml @@ -5,24 +5,16 @@ on: - main jobs: - tag_and_publish: - name: Parse version + tag: + name: Tag + uses: AllenNeuralDynamics/.github/.github/workflows/release-tag.yml@main + secrets: + repo-token: ${{ secrets.GITHUB_TOKEN }} + publish: runs-on: ubuntu-latest - outputs: - pkg_version: ${{ steps.output_version.outputs.pkg_version }} + name: Publish package + needs: tag steps: - - uses: actions/checkout@v4 - - name: Get version from file - run: | - pkg_name=$(grep -P 'version = \{attr = .*\}' pyproject.toml | grep -oP '\w+.__version__') - init_file="./src/${pkg_name//.__version__}/__init__.py" - pkg_version=$(grep -Po '[0-9]+\.[0-9]+\.[0-9]+' "$init_file") - echo "tag=$pkg_version" >> "$GITHUB_ENV" - - name: Create git tag - run: | - git tag "v${{ env.tag }}" - - name: Push git tag - run: git push origin "v${{ env.tag }}" - name: Set up Python 3.10 uses: actions/setup-python@v5 with: From f018f461de0267b8502008903cc80212d9369111 Mon Sep 17 00:00:00 2001 From: Helen Lin Date: Mon, 17 Nov 2025 15:40:18 -0800 Subject: [PATCH 3/3] ci: version bump --- src/aind_data_access_api/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aind_data_access_api/__init__.py b/src/aind_data_access_api/__init__.py index f3a785d..412d5f5 100644 --- a/src/aind_data_access_api/__init__.py +++ b/src/aind_data_access_api/__init__.py @@ -1,3 +1,3 @@ """Init package""" -__version__ = "1.9.0" +__version__ = "1.9.1"