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

Bug-fixes - widgets not refreshed correctly | Jenkins Job widget error handling added #78

Merged
merged 2 commits into from
Oct 25, 2019

Conversation

szymon-owczarzak
Copy link
Contributor

No description provided.

@@ -11,39 +10,64 @@ import io.vertx.core.AbstractVerticle
import io.vertx.core.json.JsonObject
import io.vertx.core.logging.Logger
import io.vertx.core.logging.LoggerFactory
import com.cognifide.cogboard.CogboardConstants as CC
Copy link
Contributor Author

@szymon-owczarzak szymon-owczarzak Oct 25, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Local alias for class :) very useful for readability


internal open class BoardsController : AbstractVerticle() {
class BoardsAndWidgetsController : AbstractVerticle() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to merge BoardsController and WidgetsController back together because they have to share the same widgets map object.

it.put(CogboardConstants.PROP_URL, makePublic(it.getString(CogboardConstants.PROP_URL, "")))
val lastBuild = responseBody.getJsonObject("lastBuild")

if (lastBuild != null) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added error handling for JenkinsJob widget

@szymon-owczarzak szymon-owczarzak merged commit 27230dc into master Oct 25, 2019
@szymon-owczarzak szymon-owczarzak deleted the bugfix/widgets-not-refreshed-correctly branch October 25, 2019 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant