From d5e000125a217207b4ee845f57c24476d3d33d33 Mon Sep 17 00:00:00 2001 From: kushalbakshi Date: Thu, 25 Jan 2024 14:45:53 -0600 Subject: [PATCH] Add `session_id` to `session_with_datetime` --- .github/workflows/release.yaml | 8 -------- CHANGELOG.md | 8 +++++++- element_session/session_with_datetime.py | 5 ++++- element_session/version.py | 2 +- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b814a09..954c84a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -4,14 +4,6 @@ on: jobs: make_github_release: uses: datajoint/.github/.github/workflows/make_github_release.yaml@main - pypi_release: - needs: make_github_release - uses: datajoint/.github/.github/workflows/pypi_release.yaml@main - secrets: - TWINE_USERNAME: ${{secrets.TWINE_USERNAME}} - TWINE_PASSWORD: ${{secrets.TWINE_PASSWORD}} - with: - UPLOAD_URL: ${{needs.make_github_release.outputs.release_upload_url}} mkdocs_release: uses: datajoint/.github/.github/workflows/mkdocs_release.yaml@main permissions: diff --git a/CHANGELOG.md b/CHANGELOG.md index dad5bf7..dd29e53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,14 @@ Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention. +## [0.2.0] - 2024-01-25 + ++ Add - `session_id` attribute to `Session` in `session_with_datetime.py` ++ Update - Remove PyPI release from GitHub Actions workflow + ## [0.1.7] - 2023-11-30 -+ Allow null value for `session_datetime` in `session_with_id` ++ Update - Allow null value for `session_datetime` in `session_with_id` ## [0.1.6] - 2023-09-18 @@ -48,6 +53,7 @@ Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and + Add - GitHub Action release process + Add - `session` schema +[0.2.0]: https://github.com/datajoint/element-session/releases/tag/0.2.0 [0.1.7]: https://github.com/datajoint/element-session/releases/tag/0.1.7 [0.1.6]: https://github.com/datajoint/element-session/releases/tag/0.1.6 [0.1.5]: https://github.com/datajoint/element-session/releases/tag/0.1.5 diff --git a/element_session/session_with_datetime.py b/element_session/session_with_datetime.py index 7caf069..f9e4137 100644 --- a/element_session/session_with_datetime.py +++ b/element_session/session_with_datetime.py @@ -53,13 +53,16 @@ class Session(dj.Manual): """Central Session table Attributes: - Subject (foreign key): Key for Subject table + Subject (foreign key): Primary key from Subject table session_datetime (datetime): date and time of the session + session_id (int, optional): numerical session identifier """ definition = """ -> Subject session_datetime: datetime + --- + session_id=null: int """ class Attribute(dj.Part): diff --git a/element_session/version.py b/element_session/version.py index f5d1ec6..8667345 100644 --- a/element_session/version.py +++ b/element_session/version.py @@ -1,2 +1,2 @@ """Package metadata.""" -__version__ = "0.1.7" +__version__ = "0.2.0"