apache / apache/gravitino

[Improvement] The REST API of List metalakes should sort by created time as default

Open
#2,623 11 comments 0 reactions 0 assignees View on GitHub
improvement
Dominant language
Java
Stars
3.2k
Forks
935
Avg merge
1d 15h
Merged PRs (30d)
315

Description

### What would you like to be improved?

The Rest API of List metalakes should sort by created time as defaultTo achieve this default sorting behavior, the API endpoint for listing metalakes can be designed to automatically sort the results based on the "created time" field in ascending order.
This way, users accessing the API will receive a sorted list by default, simplifying their experience and ensuring consistency in how the data is presented.
By setting this as the standard behavior, users can rely on the API to consistently deliver results in a predictable and organized manner.

### How should we improve?

Modify the return results of the List metalakes API.

Contributor guide

Open the contributing guide

Research direction

Start at the REST API entry point for listing metalakes and trace how its results are assembled and ordered. Update the default behavior to sort by created time in ascending order, then verify that the List metalakes API returns consistently ordered results when no explicit sort is supplied.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.