Skip to content

Conversation

@EstelleDa
Copy link
Member

For VariantEffect/mavedb-ui#295.

I think this is the easiest way to do it. I don't see any other place need the ordering experiments function.

@EstelleDa EstelleDa requested a review from bencap October 18, 2024 03:43
Copy link
Collaborator

@bencap bencap left a comment

Choose a reason for hiding this comment

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

Agreed this is the best spot for this. Let's still retain the title sorting, and just add the URN sort as the first order by operation.

)

items: list[Experiment] = query.order_by(Experiment.title).all()
items: list[Experiment] = query.order_by(Experiment.urn).all()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
items: list[Experiment] = query.order_by(Experiment.urn).all()
items: list[Experiment] = query.order_by(Experiment.urn, Experiment.title).all()

@EstelleDa EstelleDa merged commit 2468d6d into release-2024.4.2 Oct 22, 2024
@EstelleDa EstelleDa deleted the estelle/orderExperimentInUrn branch October 22, 2024 06:24
@bencap bencap mentioned this pull request Nov 20, 2024
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.

Experiment dropdown on score set creation page should be sorted with unpublished experiments at the top

3 participants