Skip to content

Commit

Permalink
GH-1556 Fix aggregation query in `SqlStatisticsRepository.findResolve…
Browse files Browse the repository at this point in the history
…dRequestsByPhrase` used by `stats` command (Fix #1556)
  • Loading branch information
dzikoysk committed Oct 5, 2022
1 parent 0334a16 commit 8c5be6f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ internal class SqlStatisticsRepository(private val database: Database) : Statist
IdentifierTable.leftJoin(ResolvedTable, { IdentifierTable.id }, { ResolvedTable.identifierId })
.slice(IdentifierTable.gav, resolvedSum)
.select(whereCriteria)
.groupBy(ResolvedTable.id, IdentifierTable.gav)
.groupBy(IdentifierTable.id, IdentifierTable.gav)
.having { resolvedSum greater 0L }
.orderBy(resolvedSum, DESC)
.limit(limit)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ internal class PreservedBuildsListenerTest : MavenSpecification() {
"$versionId/maven-metadata.xml.md5",
"$versionId/maven-metadata.xml.sha1",
"$versionId/maven-metadata.xml.sha256",
"$versionId/maven-metadata.xml.sha512"
"$versionId/workspace-deploy-app-1.0.0.jar"
).map { it.toLocation() },
assertOk(repository.getFiles(versionId))
)
Expand Down
2 changes: 1 addition & 1 deletion reposilite-backend/src/test/workspace/configuration.cdn
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ idleTimeout: 30000

# Keep processed frontend files in memory to improve response time
cacheContent: true
# Adds cache bypass headers to each request served by this instance.
# Adds cache bypass headers to each request from /api/* scope served by this instance.
# Helps to avoid various random issues caused by proxy provides (e.g. Cloudflare) and browsers.
bypassExternalCache: true
# Amount of messages stored in cached logger.
Expand Down

0 comments on commit 8c5be6f

Please sign in to comment.