Skip to content

Conversation

@candleindark
Copy link
Member

This PR closes #358 and replaces #361.

This PR defines the sameAs field in the Dandiset model. It is a list of DANDI URLs of the Dandiset at other DANDI instances. It implements the solution proposed by #358 (comment).

@codecov
Copy link

codecov bot commented Jan 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.91%. Comparing base (be7d361) to head (419313b).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #364      +/-   ##
==========================================
+ Coverage   97.89%   97.91%   +0.01%     
==========================================
  Files          18       18              
  Lines        2379     2401      +22     
==========================================
+ Hits         2329     2351      +22     
  Misses         50       50              
Flag Coverage Δ
unittests 97.91% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Defines a new sameAs field on the Dandiset model to represent DANDI URIs pointing to the same dandiset on other DANDI instances (per #358 / replaces #361).

Changes:

  • Added sameAs (optional list) to the Dandiset model with JSON schema metadata.
  • Refactored existing publishing-metadata test to reuse a shared base_dandiset_metadata fixture.
  • Added tests covering sameAs behavior for omitted/empty/valid/invalid inputs.

Reviewed changes

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

File Description
dandischema/models.py Adds the new sameAs field to the Dandiset schema.
dandischema/tests/test_models.py Introduces a shared metadata fixture and adds coverage for sameAs validation.

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

Copy link
Contributor

Copilot AI left a comment

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 2 out of 2 changed files in this pull request and generated 3 comments.


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

@candleindark candleindark force-pushed the add-sameas branch 2 times, most recently from 96d486c to 419313b Compare January 22, 2026 23:54
@candleindark candleindark requested a review from Copilot January 23, 2026 06:00
@candleindark candleindark marked this pull request as ready for review January 23, 2026 06:07
Copy link
Contributor

Copilot AI left a comment

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 2 out of 2 changed files in this pull request and generated 1 comment.


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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add otherIdentifiers to Dandiset model

2 participants