Skip to content

Commit

Permalink
Merge pull request #41 from elisa-tech/sort-api
Browse files Browse the repository at this point in the history
Sort api by name and library version as default instead of using the id
  • Loading branch information
pellecchialuigi authored Sep 12, 2024
2 parents 1ee5285 + da2e9ca commit 9098bc1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import logging
import math
import shutil
from sqlalchemy import or_
from sqlalchemy import and_, or_
from sqlalchemy.orm.exc import NoResultFound
import sys
import urllib
Expand Down Expand Up @@ -1210,6 +1210,7 @@ def get(self):

query = dbi.session.query(ApiModel)
query = filter_query(query, args, ApiModel, False)
query = query.order_by(and_(ApiModel.api, ApiModel.library_version))

# Pagination
page = 1
Expand Down
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
## 1.4.x

- Api pagination
- Test case gap highlight in case of direct mapping
- By default sort api by name, library_version instead of by id

## 1.3.x

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "BASIL"
version = "1.4.1"
version = "1.4.2"
description = "open source software quality management tool"
authors = [
{name = "Luigi Pellecchia", email = "[email protected]"},
Expand Down

0 comments on commit 9098bc1

Please sign in to comment.