-
Notifications
You must be signed in to change notification settings - Fork 9
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
AEM Bundle Info Widget - add docs, fix QA issues and spacing #198
Conversation
tMaxx
commented
Jan 7, 2020
- Added option to filter by bundle's display name
- Fixed popover title attribute
- Changed styling to make widget fit in default grid when exclusions are set
- Added docs for configuration options
cogboard-app/src/main/kotlin/com/cognifide/cogboard/widget/type/AemBundleInfoWidget.kt
Outdated
Show resolved
Hide resolved
@@ -98,7 +100,7 @@ class AemBundleInfoWidget(vertx: Vertx, config: JsonObject) : AsyncWidget(vertx, | |||
|
|||
override fun updateState() { | |||
if (url.isNotBlank()) { | |||
httpGet("$url/system/console/bundles.json") | |||
httpGet("${url.trimEnd('/')}/system/console/bundles.json") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thing better solution for this would be to replace any double slash //
to single slash /
but inside httpGet() method - something like prepareURL
method. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This turns out to be a bit trickier, so I'll roll it back. Parsing URLs is problematic, ideally we'd have to have some more helper functions to handle cases like this.