Skip to content

Commit 86fa50f

Browse files
committed
Make description and filename for flyway migrations break on any character
fixes #1119
1 parent 9c7882c commit 86fa50f

File tree

2 files changed

+32
-32
lines changed
  • spring-boot-admin-server-ui/src/main/frontend/views/instances

2 files changed

+32
-32
lines changed

spring-boot-admin-server-ui/src/main/frontend/views/instances/flyway/index.vue

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
- Copyright 2014-2018 the original author or authors.
2+
- Copyright 2014-2019 the original author or authors.
33
-
44
- Licensed under the Apache License, Version 2.0 (the "License");
55
- you may not use this file except in compliance with the License.
@@ -20,18 +20,18 @@
2020
<div v-if="error" class="message is-danger">
2121
<div class="message-body">
2222
<strong>
23-
<font-awesome-icon class="has-text-danger" icon="exclamation-triangle"/>
23+
<font-awesome-icon class="has-text-danger" icon="exclamation-triangle" />
2424
Fetching Flyway reports failed.
2525
</strong>
26-
<p v-text="error.message"/>
26+
<p v-text="error.message" />
2727
</div>
2828
</div>
2929
<template v-for="(context, ctxName) in contexts">
30-
<h3 class="title" v-text="ctxName" :key="ctxName"/>
30+
<h3 class="title" v-text="ctxName" :key="ctxName" />
3131
<sba-panel v-for="(report, name) in context.flywayBeans" :key="`${ctxName}-${name}`" :title="name"
3232
:header-sticks-below="['#navigation']"
3333
class="migration">
34-
<table class="table">
34+
<table class="table is-fullwidth">
3535
<thead>
3636
<tr>
3737
<th>Type</th>
@@ -48,17 +48,17 @@
4848
</thead>
4949
<tbody>
5050
<tr v-for="migration in report.migrations" :key="migration.checksum">
51-
<td v-text="migration.type"/>
52-
<td v-text="migration.checksum"/>
53-
<td v-text="migration.version"/>
54-
<td v-text="migration.description"/>
55-
<td v-text="migration.script"/>
51+
<td v-text="migration.type" />
52+
<td v-text="migration.checksum" />
53+
<td v-text="migration.version" />
54+
<td class="is-breakable" v-text="migration.description" />
55+
<td class="is-breakable" v-text="migration.script" />
5656
<td><span v-text="migration.state" class="tag"
57-
:class="stateClass(migration.state)"/></td>
58-
<td v-text="migration.installedBy"/>
59-
<td v-text="migration.installedOn"/>
60-
<td v-text="migration.installedRank"/>
61-
<td v-text="`${migration.executionTime}ms`"/>
57+
:class="stateClass(migration.state)" /></td>
58+
<td v-text="migration.installedBy" />
59+
<td v-text="migration.installedOn" />
60+
<td v-text="migration.installedRank" />
61+
<td v-text="`${migration.executionTime}ms`" />
6262
</tr>
6363
</tbody>
6464
</table>

spring-boot-admin-server-ui/src/main/frontend/views/instances/liquibase/index.vue

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
- Copyright 2014-2018 the original author or authors.
2+
- Copyright 2014-2019 the original author or authors.
33
-
44
- Licensed under the Apache License, Version 2.0 (the "License");
55
- you may not use this file except in compliance with the License.
@@ -20,14 +20,14 @@
2020
<div v-if="error" class="message is-danger">
2121
<div class="message-body">
2222
<strong>
23-
<font-awesome-icon class="has-text-danger" icon="exclamation-triangle"/>
23+
<font-awesome-icon class="has-text-danger" icon="exclamation-triangle" />
2424
Fetching Liquibase migrations failed.
2525
</strong>
26-
<p v-text="error.message"/>
26+
<p v-text="error.message" />
2727
</div>
2828
</div>
2929
<template v-for="(context, ctxName) in contexts">
30-
<h3 class="title" v-text="ctxName" :key="ctxName"/>
30+
<h3 class="title" v-text="ctxName" :key="ctxName" />
3131
<template v-for="(report, name) in context.liquibaseBeans">
3232
<sba-panel :key="`${ctxName}-${name}`" :title="`name`" class="change-set"
3333
:header-sticks-below="['#navigation']">
@@ -46,40 +46,40 @@
4646
<template v-for="changeSet in report.changeSets">
4747
<tr :key="`${ctxName}-${name}-${changeSet.id}`" class="is-selectable"
4848
@click="showDetails[changeSet.checksum] ? $delete(showDetails, changeSet.checksum) : $set(showDetails, changeSet.checksum, true)">
49-
<td v-text="changeSet.id"/>
49+
<td v-text="changeSet.id" />
5050
<td>
51-
<span v-text="changeSet.execType" class="tag" :class="execClass(execType)"/>
51+
<span v-text="changeSet.execType" class="tag" :class="execClass(execType)" />
5252
</td>
53-
<td v-text="changeSet.description"/>
54-
<td v-text="changeSet.tag"/>
55-
<td v-text="changeSet.contexts.join(', ')"/>
53+
<td class="is-breakable" v-text="changeSet.description" />
54+
<td v-text="changeSet.tag" />
55+
<td v-text="changeSet.contexts.join(', ')" />
5656
<td>
5757
<span v-for="label in changeSet.labels" :key="`${ctxName}-${name}-${changeSet.id}-${label}`"
58-
class="tag is-info" v-text="label"/>
58+
class="tag is-info" v-text="label" />
5959
</td>
6060
</tr>
6161
<tr v-if="showDetails[changeSet.checksum]" :key="`${ctxName}-${name}-${changeSet.id}-details`">
6262
<td colspan="6">
6363
<table class="table is-fullwidth">
6464
<tr>
6565
<th>Changelog</th>
66-
<td colspan="3" v-text="changeSet.changeLog"/>
66+
<td colspan="3" v-text="changeSet.changeLog" />
6767
<th>Author</th>
68-
<td v-text="changeSet.author"/>
68+
<td v-text="changeSet.author" />
6969
</tr>
7070
<tr>
7171
<th>Checksum</th>
72-
<td v-text="changeSet.checksum"/>
72+
<td v-text="changeSet.checksum" />
7373
<th>Comments</th>
74-
<td colspan="3" v-text="changeSet.comments"/>
74+
<td colspan="3" v-text="changeSet.comments" />
7575
</tr>
7676
<tr>
7777
<th>Execution Order</th>
78-
<td v-text="changeSet.orderExecuted"/>
78+
<td v-text="changeSet.orderExecuted" />
7979
<th>ExecutionDate</th>
80-
<td v-text="changeSet.dateExecuted"/>
80+
<td v-text="changeSet.dateExecuted" />
8181
<th>DeploymentId</th>
82-
<td v-text="changeSet.deploymentId"/>
82+
<td v-text="changeSet.deploymentId" />
8383
</tr>
8484
</table>
8585
</td>

0 commit comments

Comments
 (0)