Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
removed unused
Browse files Browse the repository at this point in the history
Signed-off-by: Prafulla Mahindrakar <prafulla.mahindrakar@gmail.com>
  • Loading branch information
pmahindrakar-oss committed Apr 8, 2022
1 parent b0cde31 commit 47bb2ec
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion pkg/common/sorting.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ type SortParameter interface {

type sortParamImpl struct {
gormOrderExpression string
sortKey string
}

func (s *sortParamImpl) GetGormOrderExpr() string {
Expand Down
5 changes: 0 additions & 5 deletions pkg/repositories/gormimpl/named_entity_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,8 @@ func getSubQueryJoin(db *gorm.DB, tableName string, input interfaces.ListNamedEn

// Apply consistent sort ordering.
if input.SortParameter != nil {
//identifierGroupByWithOrderKey := fmt.Sprintf("%s, %s, %s, %s", Project, Domain, Name, input.SortParameter.GetSortKey())
//tx = tx.Group(identifierGroupByWithOrderKey)
tx = tx.Order(input.SortParameter.GetGormOrderExpr())
}
//else {
// tx = tx.Group(identifierGroupBy)
//}

return db.Joins(fmt.Sprintf(joinString, input.ResourceType), tx)
}
Expand Down

0 comments on commit 47bb2ec

Please sign in to comment.