Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: dashboard updates #843

Merged
merged 63 commits into from
Aug 20, 2020
Merged
Changes from 2 commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
945f7d1
Update ci.yaml
salehsquared Jul 24, 2020
d80399b
Check version of google-cloud-shared-config
salehsquared Jul 24, 2020
afc4204
Update pom.xml
salehsquared Jul 24, 2020
98282ff
Update ci.yaml
salehsquared Jul 24, 2020
1861d3b
Update pom.xml
salehsquared Jul 24, 2020
438e5fa
Update ci.yaml
salehsquared Jul 24, 2020
02e35fb
Update ci.yaml
salehsquared Jul 24, 2020
77be68a
Updating permissions on versions script
Jul 24, 2020
ed61410
deps: update dependency com.google.cloud:google-cloud-logging-logback…
salehsquared Jul 24, 2020
9f1fb9a
deps: update dependency com.google.cloud:google-cloud-firestore-bom t…
salehsquared Jul 24, 2020
e224876
Reverting pom.xml after testing changes
Jul 24, 2020
0edb0e5
Merge branch 'master' of https://github.com/salehsquared/java-cloud-bom
Jul 24, 2020
ed33def
Reverting POM version
Jul 24, 2020
b1fe397
Reverting POM version
Jul 24, 2020
14c43ec
Fixing formatting change on ci file
Jul 24, 2020
1150208
Fixing formatting change on ci file
Jul 24, 2020
2616081
Fix for formatting end of file
Jul 24, 2020
b164f1a
Updated dependencies scripts. Separated out, so one script checks for…
Jul 29, 2020
1ad1ae1
Setting ci.yaml file back to original
Jul 29, 2020
807140c
Merge branch 'dependency-versions' of https://github.com/salehsquared…
Jul 30, 2020
9ad1268
Updates to make deps-finder more stable, including using regex. Also …
Jul 30, 2020
8affd08
Updated deps-finder according to comments from Stephanie, Elliotte, a…
Jul 30, 2020
ebbdf93
Updating pom.xml to master branch
Jul 30, 2020
8310661
Merge branch 'master' into dependency-versions
salehsquared Jul 30, 2020
7d745a5
Formatting and curl fixes
Jul 30, 2020
0c7f9b6
Merge branch 'dependency-versions' of https://github.com/salehsquared…
Jul 30, 2020
9d30f20
Merge branch 'master' of https://github.com/googleapis/java-cloud-bom…
Jul 31, 2020
741029e
Separate script for helper functions, conventionalized syntax, verbos…
Jul 31, 2020
39a4c5e
Updated release-versions to match conventions & be more stable readin…
Aug 2, 2020
102c971
Updated search functionality. Cleaned code. Include search by java-cl…
Aug 5, 2020
50635b0
Reformatted comments and added licensing
Aug 5, 2020
65869fc
Major searchbar updates. Updating styling of all-versions page.
Aug 7, 2020
ade2299
Sort functionality added. Added ability to see static version for eac…
Aug 10, 2020
67c73b8
Merge branch 'dashboard-updates' of https://github.com/salehsquared/j…
Aug 10, 2020
376effa
Small sorting fix.
Aug 10, 2020
9378e2f
Smaller changes - styling and code principles
Aug 10, 2020
bfcf0e0
Updated README. Major styling changes for dashboard table
Aug 11, 2020
308ad64
Modified sorting algorithm.
Aug 11, 2020
46559ab
Sorting/arrow algorithm now instant. Minor styling changes.
Aug 11, 2020
b565d67
Fixed searchbar. Added comments. Improved searching.
Aug 11, 2020
0b5b463
Removing dependencies scripts
Aug 11, 2020
d46a286
Removing unnecessary file
Aug 11, 2020
66845f0
Removed bigtable-emulator. Added stylistic changes. Fixed library rem…
Aug 12, 2020
e6b4eaf
Code styling changes
Aug 12, 2020
496ee4e
Style
Aug 12, 2020
fc45f18
Fixed spacing and variable names according to Google standard
Aug 13, 2020
2b75609
Temporarily removing XOM
Aug 14, 2020
0f7201a
Merging with master branch
Aug 14, 2020
60c5fc2
Merge branch 'master' into dashboard-updates
salehsquared Aug 14, 2020
bf9abbf
Added XOM used as an XML parser. Cleaned & reformatted code for grabb…
Aug 14, 2020
70818f5
Merge branch 'dashboard-updates' of https://github.com/salehsquared/j…
Aug 14, 2020
d8bf592
Stylistic changes. Google style sheet
Aug 14, 2020
a81fd58
Fixed VersionData design. Using input stream, and fixed according to …
Aug 14, 2020
bc8271c
Merge branch 'master' into dashboard-updates
salehsquared Aug 14, 2020
00be766
Stylistic and efficiency changes
Aug 15, 2020
dbc8243
Separated out all versions page from regular version data
Aug 15, 2020
39be2a3
Merge branch 'dashboard-updates' of https://github.com/salehsquared/j…
Aug 15, 2020
455a2e6
Removed XML parser, as it's unnecessary.
Aug 15, 2020
a5f2a40
Fixed dashboard design issues
Aug 16, 2020
ea62059
Merge branch 'master' of https://github.com/googleapis/java-cloud-bom…
Aug 17, 2020
07fdaca
Centered table and search bar & change by window size. Additional sea…
Aug 19, 2020
a160e8b
Placed searchbar back outside of table
Aug 19, 2020
2e38251
Update dashboard/src/main/resources/templates/index.ftl
salehsquared Aug 20, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .kokoro/deps-finder.sh
Original file line number Diff line number Diff line change
@@ -33,7 +33,8 @@ source ${scriptDir}/shared-deps-helper.sh
# Dependency should be of the form artifactId:version

function checkLibrary() {
clientLibrary=$1 # Should be of the format artifactId:version
# Should be of the format artifactId:version
clientLibrary=$1

# If no dependency was passed straight to the script, check our most recent commit for a dep version update.
if [[ -z ${clientLibrary} ]]; then
@@ -62,8 +63,10 @@ function checkLibrary() {
fi
fi

depVersion=${clientLibrary/*:/} # Grab last part of dependency artifactId:version input.
depVersion=${depVersion/-*/} # Remove any alphabetical characters at the end (e.g. -alpha, -beta, etc)
# Grab last part of dependency artifactId:version input.
# Remove any alphabetical characters at the end (e.g. -alpha, -beta, etc)
depVersion=${clientLibrary/*:/}
depVersion=${depVersion/-*/}

pomLocation="/pom.xml"

8 changes: 5 additions & 3 deletions .kokoro/release-versions.sh
Original file line number Diff line number Diff line change
@@ -62,7 +62,7 @@ function releaseVersionsCheck() {
break
fi
depsManaged=${depsManaged/*$currentLibrary/} #Remove this client library from our list of dependencies
# Check if we're looking at a valid dependency (starts with google-cloud and is nonempty)
# Check if we're looking at a valid dependency (contains with google-cloud)
if [[ ! -z $(echo ${currentLibrary} | grep "google-cloud") ]]; then
artifactId=${currentLibrary/*<artifactId>/}
artifactId=${artifactId/<\/artifactId>*/}
@@ -102,7 +102,8 @@ set +e

# Allow the script to run normally if we're passed any argument
if [[ -z $1 ]]; then
isReleaseBranch # Otherwise if we're on a release branch
# Otherwise if we're on a release branch
isReleaseBranch
if [[ ! $? -eq 0 ]]; then
msg "This is either a SNAPSHOT release or not a release! Returning success!"
exit 0
@@ -111,10 +112,11 @@ fi

releaseVersionsCheck

# We fail if the number of failing client libraries is > 0.
if [[ $? -eq 0 ]]; then
msg "Check passed. All libraries have the correct version of java-shared-dependencies!"
exit 0
else # We fail if the number of failing client libraries is > 0.
else
if [[ ! -z ${successfulClientLibraries} ]]; then
echo "------------------------------------------------------------------------------"
msg "Successful Client Libraries: "
29 changes: 21 additions & 8 deletions .kokoro/shared-deps-helper.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
#!/bin/bash

#Helper functions for the deps-finder and release-versions scripts.

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Helper functions for the deps-finder and release-versions scripts.
function isReleaseBranch() {
#Check if we're currently on a non-SNAPSHOT release branch. If we are, we want to run the check.
# Check if we're currently on a non-SNAPSHOT release branch.
# If we are, we want to run the check.
currBranch=$(git rev-parse --abbrev-ref HEAD | grep "release-v")
snapShotCheck=$(echo ${currBranch} | grep "\-SNAPSHOT")
if [[ -z ${currBranch} ]] || [[ ! -z ${snapShotCheck} ]]; then
@@ -12,8 +25,8 @@ function isReleaseBranch() {
return 0
}

# Returns 1 if we find an updated client library in the commit message.
#Echos client library (if found) before completion.
# Returns 1 if we find an updated client library in the commit message.
# Echos client library (if found) before completion.
function getLibraryUpdate() {
currentCommitNumber=$(git rev-parse HEAD)

@@ -27,7 +40,7 @@ function getLibraryUpdate() {

# Use regex to grab the dependency group and artifact IDs

#Find group and artifact by format
# Find group and artifact by format
groupAndArtifact=$(echo ${currentCommitMessage} | grep -oP 'com.google.cloud:google-cloud-\S+')

# Grab Artifact
@@ -44,7 +57,7 @@ function getLibraryUpdate() {
return 1
fi

echo "$artifactAndVersion"
echo "${artifactAndVersion}"
return 0
}