Skip to content

Annotations - #25

Merged
bluesmoon merged 4 commits into
mainfrom
annotations
Jun 1, 2026
Merged

Annotations#25
bluesmoon merged 4 commits into
mainfrom
annotations

Conversation

@bluesmoon

Copy link
Copy Markdown
Member

No description provided.

@bluesmoon
bluesmoon force-pushed the annotations branch 2 times, most recently from 033bee8 to c8861fe Compare April 16, 2026 19:40
@bluesmoon
bluesmoon requested a review from Copilot April 16, 2026 20:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds first-class support for the mPulse Annotations REST API to the mPulseAPI Julia package, including new client functions, documentation, and test coverage.

Changes:

  • Introduces getAnnotations / getAnnotation API wrappers and wires in a new AnnotationsEndpoint.
  • Adds a new Annotations documentation page and includes it in the Documenter build.
  • Extends the test suite and CI env to exercise the new Annotations functionality and endpoint switching.

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/mPulseAPI.jl Adds AnnotationsEndpoint to setEndpoints and includes the new Annotation.jl module.
src/Annotation.jl Implements getAnnotations and getAnnotation with argument validation, HTTP calls, and response parsing.
test/annotation-tests.jl Adds tests for argument validation, auth failures, and basic annotation retrieval behavior.
test/runtests.jl Registers the new "Annotations" testset.
test/zzz_change-url-tests.jl Extends endpoint-change tests to cover AnnotationsEndpoint.
docs/src/Annotations.md Adds a new autodocs page for annotation APIs.
docs/make.jl Includes Annotations.md in the documentation page list.
Project.toml Bumps package version to 1.3.0.
.github/workflows/CI.yml Adds mPulseAPIAnnotationDomainID to CI environment variables.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Annotation.jl Outdated
Comment thread src/Annotation.jl Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 9 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Annotation.jl
Comment thread test/annotation-tests.jl Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 9 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/annotation-tests.jl Outdated
Comment thread src/Annotation.jl

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 9 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 9 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Annotation.jl
Comment thread src/Annotation.jl Outdated
Comment thread src/Annotation.jl

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 10 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 11 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/mock-tests.jl
bluesmoon and others added 3 commits April 17, 2026 18:42
- Add AnnotationsEndpoint global to setEndpoints() derived from the
  same APIEndpoint base as all other endpoints
- Add src/Annotation.jl with:
  - getAnnotation(token, annotationID) — fetch a single annotation by ID
  - getAnnotations(token; domainID, dateStart, dateEnd) — fetch all
    annotations for a domain within an optional time range
  - Both accept DateTime or ZonedDateTime for date params
  - Both follow the same HTTP/error-handling conventions as Alert.jl
- Add test/annotation-tests.jl (guard-gated on mPulseAPIAnnotationDomainID env var)
- Wire annotation-tests.jl into runtests.jl

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- actions/checkout: v4 → v6
- julia-actions/setup-julia: v1/v2 → v3

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bluesmoon
bluesmoon requested a review from swrdfish May 29, 2026 22:30
@bluesmoon bluesmoon self-assigned this Jun 1, 2026
@bluesmoon
bluesmoon merged commit db285fd into main Jun 1, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants