forked from mvnpm/mvnpm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mvnpm#1471 from phillip-kruger/col_size
Col size
- Loading branch information
Showing
11 changed files
with
128 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
package io.mvnpm.log; | ||
|
||
import java.time.LocalDateTime; | ||
import java.util.List; | ||
|
||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.NamedQueries; | ||
import jakarta.persistence.NamedQuery; | ||
|
||
import io.mvnpm.mavencentral.sync.Stage; | ||
import io.quarkus.hibernate.orm.panache.PanacheEntity; | ||
|
@@ -13,13 +17,20 @@ | |
* @author Phillip Kruger ([email protected]) | ||
*/ | ||
@Entity | ||
@NamedQueries({ | ||
@NamedQuery(name = "EventLogEntry.getByGav", query = "from EventLogEntry where groupId = ?1 and artifactId = ?2 and version = ?3 order by time") | ||
}) | ||
public class EventLogEntry extends PanacheEntity { | ||
public String groupId; | ||
public String artifactId; | ||
public String version; | ||
public LocalDateTime time; | ||
public Stage stage; | ||
@Column(columnDefinition = "text", length = 10485760) | ||
public String message; | ||
public String color; | ||
|
||
public static List<EventLogEntry> findByGav(String groupId, String artifactId, String version) { | ||
return find("#EventLogEntry.getByGav", groupId, artifactId, version).list(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,13 +16,13 @@ | |
import io.mvnpm.Constants; | ||
import io.mvnpm.error.ErrorHandlingService; | ||
import io.mvnpm.npm.model.Name; | ||
import io.quarkus.cache.CacheResult; | ||
import io.quarkus.logging.Log; | ||
import io.smallrye.common.annotation.Blocking; | ||
import io.vertx.core.json.JsonObject; | ||
|
||
/** | ||
* Facade on the OSS Sonatype server | ||
* TODO: Add caching for search (5 mins or so) | ||
* | ||
* @author Phillip Kruger ([email protected]) | ||
*/ | ||
|
@@ -56,6 +56,7 @@ public class SonatypeFacade { | |
String searchMavenUrl; | ||
|
||
@Blocking | ||
@CacheResult(cacheName = "maven-search-cache") | ||
public JsonObject search(String groupId, String artifactId, String version) { | ||
String q = String.format(Q_FORMAT, groupId, artifactId, version); | ||
try { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters