Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global: Add sorting to DMPs, Storage, Datasets and other entities by ID to preserve order #298

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

GeoffreyKarnbach
Copy link
Contributor

Description

Feature / Functionality

What does this PR do?

Add sorting by ID for DMPs (getAll and get for logged in user), Storages, Datasets, Contributors and Costs within a DMP.

closes GH-293

@GeoffreyKarnbach GeoffreyKarnbach linked an issue Dec 2, 2024 that may be closed by this pull request
@ValentinFutterer
Copy link
Collaborator

Hey, this works fine, but wouldnt it be simpler to do the sorting in the Repo classes. The you dont need to distribute the code over Services and Mappers. For example in DMPRepo:

public List<Dmp> getAll() {
    return listAll(Sort.by("id"));
  }

Read here for more info.

@GeoffreyKarnbach GeoffreyKarnbach force-pushed the gk/293-db-preserve-sequence-of-elements-in-lists branch from cee2442 to db325a0 Compare December 9, 2024 10:40
@GeoffreyKarnbach GeoffreyKarnbach force-pushed the gk/293-db-preserve-sequence-of-elements-in-lists branch from db325a0 to 7c7a76e Compare December 9, 2024 14:21
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.

DB: Preserve sequence of elements in lists
2 participants