Skip to content

Commit b80aebd

Browse files
authored
Merge pull request #194 from AllenNeuralDynamics/release-v1.9.1
Release v1.9.1
2 parents 68a6955 + f018f46 commit b80aebd

3 files changed

Lines changed: 23 additions & 17 deletions

File tree

.github/workflows/publish_main.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,16 @@ on:
55
- main
66

77
jobs:
8-
tag_and_publish:
9-
name: Parse version
8+
tag:
9+
name: Tag
10+
uses: AllenNeuralDynamics/.github/.github/workflows/release-tag.yml@main
11+
secrets:
12+
repo-token: ${{ secrets.GITHUB_TOKEN }}
13+
publish:
1014
runs-on: ubuntu-latest
11-
outputs:
12-
pkg_version: ${{ steps.output_version.outputs.pkg_version }}
15+
name: Publish package
16+
needs: tag
1317
steps:
14-
- uses: actions/checkout@v4
15-
- name: Get version from file
16-
run: |
17-
pkg_name=$(grep -P 'version = \{attr = .*\}' pyproject.toml | grep -oP '\w+.__version__')
18-
init_file="./src/${pkg_name//.__version__}/__init__.py"
19-
pkg_version=$(grep -Po '[0-9]+\.[0-9]+\.[0-9]+' "$init_file")
20-
echo "tag=$pkg_version" >> "$GITHUB_ENV"
21-
- name: Create git tag
22-
run: |
23-
git tag "v${{ env.tag }}"
24-
- name: Push git tag
25-
run: git push origin "v${{ env.tag }}"
2618
- name: Set up Python 3.10
2719
uses: actions/setup-python@v5
2820
with:

docs/source/ExamplesDocDBRestApi.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@ REST API using the provided Python client.
88
Querying Metadata
99
~~~~~~~~~~~~~~~~~~~~~~
1010

11+
.. note::
12+
13+
There are a several indexed fields in the DocDB metadata collection to support
14+
efficient query execution by limiting the number of documents to be scanned.
15+
Please use these fields in your filter queries whenever possible.
16+
17+
Currently, the following fields are indexed in the v1 (``metadata_index/data_assets``)
18+
collection: ``_id``, ``name``, ``location``, ``subject.subject_id``,
19+
``data_description.project_name``, and ``data_description.modality.abbreviation``.
20+
21+
The same fields are indexed in the v2 (``metadata_index_v2/data_assets``) collection,
22+
other than spelling for the modality field (``data_description.modalities.abbreviation``).
23+
24+
1125
Count Example 1: Get # of records with a certain subject_id
1226
-----------------------------------------------------------
1327

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Init package"""
22

3-
__version__ = "1.9.0"
3+
__version__ = "1.9.1"

0 commit comments

Comments
 (0)