Skip to content

docs: make the correct type of type appear in OpenAPI#1088

Merged
fhennig merged 2 commits intogeneralized-collections-pt1from
fixTypeType
Mar 19, 2026
Merged

docs: make the correct type of type appear in OpenAPI#1088
fhennig merged 2 commits intogeneralized-collections-pt1from
fixTypeType

Conversation

@fengelniederhammer
Copy link
Contributor

Summary

Addressing https://github.com/GenSpectrum/dashboards/pull/1076/changes#r2945154292

Screenshot

grafik

PR Checklist

- [ ] All necessary documentation has been adapted.
- [ ] The implemented feature is covered by an appropriate test.

@vercel
Copy link

vercel bot commented Mar 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dashboards Ready Ready Preview, Comment Mar 19, 2026 7:41am

Request Review

@fhennig
Copy link
Contributor

fhennig commented Mar 19, 2026

Thanks for doing this in code right away 🙏 appreciated!

@fhennig fhennig merged commit aae53d6 into generalized-collections-pt1 Mar 19, 2026
9 checks passed
@fhennig fhennig deleted the fixTypeType branch March 19, 2026 08:14
fhennig added a commit that referenced this pull request Mar 19, 2026
…1076)

* Add tables

* add a 'create collection' endpoint

* Add 'GET' for collections; add tests

* Add setup to spin up local postgres instance for testing

* Add 'GET' for collections by ID

* foo

* change mutation list defintion

* Add delete implementation

* put pt1

* dedicated Variant.kt api file

* Change collection & variant IDs from UUID to Long

Collections are unreleased, so we can change in-place with no migration
or backwards-compatibility concerns. Switches DB schema to bigserial,
ORM tables to LongIdTable, and all API/model/test types from String/UUID
to Long.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* review

* Consolidate DB setup: use root docker-compose for local dev

Remove backend/docker-compose.dev.yaml and update README to use the
root compose file's database service. Also align POSTGRES_DB name to
dashboards-backend-db across docker-compose.yml.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Move validateIsValidOrganism into DashboardsConfig class

No need for an extension function when it can be a regular member.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Fix variant deletion in putCollection and clean up imports

Use VariantTable.deleteWhere with explicit column references to avoid
ambiguity between the 'id' function parameter and the table's id column.
Add exposed-jdbc dependency and required imports. Remove stale
validateIsValidOrganism extension function imports.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Extract duplicated lineage filter validation into a single method

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* optimize collection loading

* better MutationListDefinition

* Update backend/src/test/kotlin/org/genspectrum/dashboardsbackend/controller/CollectionsControllerTest.kt

Co-authored-by: Fabian Engelniederhammer <92720311+fengelniederhammer@users.noreply.github.com>

* some progress, but failing tests

* simplify Mutationlist

* Use import for MutationListDefinition in VariantTable

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Add doc comment to validateLineageFilters

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Reduce duplication by routing createCollection through createVariantEntity

Add VariantUpdate.toVariantRequest() for the id-null case, and change
createVariantEntity to accept VariantRequest, removing the need for a
runtime id check.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Use when expression to capture variantId in putCollection

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Split CollectionsControllerTest by HTTP verb

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Rename test to follow GIVEN/WHEN/THEN convention

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Use imports instead of fully-qualified names in CollectionsPostTest

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Add test asserting type field is present on variants in GET response

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Add type field to VariantRequest subclasses for consistency with Variant

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Revert "Add type field to VariantRequest subclasses for consistency with Variant"

This reverts commit 513ad8c.

* format

* docs: make the correct type of `type` appear in OpenAPI (#1088)

* docs: make the correct type of `type` appear in OpenAPI

* fix import

* Add test

* Remove unused function

* remove explicit spring JDBC import

* remove unused exception handler

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Fabian Engelniederhammer <92720311+fengelniederhammer@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants