Skip to content

Commit

Permalink
release 1.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenchristopher-zip committed Sep 25, 2022
1 parent 8535fcf commit fa6b2bd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ spinnakerBundle {
pluginId = "zip.deployboard"
description = "Customization for Zip deploys"
provider = "https://github.com/Greenbax/zip-spinnaker-deployboard"
version = "1.0.9"
version = "1.0.10"
}
8 changes: 4 additions & 4 deletions plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"provider": "https://github.com/Greenbax/zip-spinnaker-deployboard",
"releases": [
{
"version": "1.0.9",
"date": "2022-09-25T06:59:20.103618Z",
"version": "1.0.10",
"date": "2022-09-25T17:29:20.769630Z",
"requires": "gate>=0.0.0,orca>=0.0.0,deck>=0.0.0",
"sha512sum": "cb0ae49f868fa13b589d96e6d933abeb83d1f77a2ad99ef9576757dc4957587e59159ab1838a154a4b77b1a54cf46487aea32e389d842cc924b33194fb11ef4b",
"sha512sum": "c0f47c9f069fde10bb8b81e3693a4578d85a19d91b428640fa13aa03cdb0ba8d0fd78c873b544164a6c71abf4dfa08ccd74bd0db8e1cb27846aad5800428d1e2",
"state": "",
"url": "https://github.com/Greenbax/zip-spinnaker-deployboard/releases/download/v1.0.9/zip-spinnaker-deployboard.zip"
"url": "https://github.com/Greenbax/zip-spinnaker-deployboard/releases/download/v1.0.10/zip-spinnaker-deployboard.zip"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ public boolean handles(HttpRequest httpRequest) {
public HttpResponse handle(HttpRequest httpRequest) {
Map<String, String> params = httpRequest.getParameters();
String branch = "prod";
String author = "";
String query = "";
String lastSortKeySeen = "None";

if (params.containsKey("branch")) {
branch = params.get("branch");
}
if (params.containsKey("author")) {
author = params.get("author");
if (params.containsKey("query")) {
query = params.get("query");
}
if (params.containsKey("lastSortKeySeen")) {
lastSortKeySeen = params.get("lastSortKeySeen");
Expand All @@ -99,14 +99,14 @@ public HttpResponse handle(HttpRequest httpRequest) {

QuerySpec spec = new QuerySpec().withScanIndexForward(false)
.withKeyConditionExpression("branch = :branch_name and #sort_key_name < :sort_key")
.withFilterExpression("contains(author,:author_name)")
.withFilterExpression("contains(author,:query) or contains(msg,:query)")
.withNameMap(new NameMap()
.with("#sort_key_name", "build#ts#author#sha")
)
.withValueMap(new ValueMap()
.withString(":branch_name", branch)
.withString(":sort_key", lastSortKeySeen)
.withString(":author_name", author)
.withString(":query", query)
)
.withMaxPageSize(100);

Expand All @@ -121,7 +121,7 @@ public HttpResponse handle(HttpRequest httpRequest) {
Iterator<Item> item = page.iterator();
while (item.hasNext()) {
Item dbItem = item.next();
Integer buildNumber = Integer.parseInt(dbItem.getString("branch"));
Integer buildNumber = Integer.parseInt(dbItem.getString("build"));
Commit commit = Commit.of(
dbItem.getString("author"),
dbItem.getString("sha"),
Expand Down

0 comments on commit fa6b2bd

Please sign in to comment.