Skip to content

Commit

Permalink
Merge branch 'master' into 0.7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoujinsong committed Jul 12, 2024
2 parents 75fdff9 + 9b3318d commit 3a89437
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 14 deletions.
1 change: 0 additions & 1 deletion amoro-ams/amoro-ams-dashboard/src/components/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export default defineComponent({
transition: width 0.3s;
overflow: auto;
.content {
// padding: 16px 24px;
height: calc(100% - 48px);
overflow: auto;
}
Expand Down
2 changes: 2 additions & 0 deletions amoro-ams/amoro-ams-dashboard/src/utils/chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ export function generateLineChartOption(titleText: string, data: ILineChartOrigi
grid: {
top: 40,
bottom: 50,
left: '1%',
containLabel: true,
},
}
titleText && (option.title = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const columns: IColumns[] = shallowReactive([
const breadcrumbColumns = shallowReactive([
{ title: t('operation'), dataIndex: 'operation', width: 120, ellipsis: true },
{ title: t('file'), dataIndex: 'file', ellipsis: true },
// { title: t('fsn'), dataIndex: 'fsn' },
{ title: t('partition'), dataIndex: 'partition', width: 120 },
{ title: t('fileType'), dataIndex: 'fileType', width: 120, ellipsis: true },
{ title: t('size'), dataIndex: 'size', width: 120 },
Expand Down Expand Up @@ -172,7 +171,6 @@ function toggleBreadcrumb(record: SnapshotItem) {

onMounted(() => {
hasBreadcrumb.value = false
// getTableInfo()
})
</script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ public void handleException(Exception e, Context ctx) {
"/ams/v1/versionInfo",
"/ams/v1/login",
"/ams/v1/health/status",
"/ams/v1/login/current",
"/",
"/overview",
"/introduce",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,23 +176,29 @@ private String decorateTableFormat(AmoroTable table) {
}

private long getRecordsOfTable(MixedTable mixedTable) {
long totalRecords;
long totalRecords = 0L;
if (mixedTable.isKeyedTable()) {
Snapshot changeSnapshot =
SnapshotUtil.latestSnapshot(mixedTable.asKeyedTable().changeTable(), null);
Snapshot baseSnapshot =
SnapshotUtil.latestSnapshot(mixedTable.asKeyedTable().baseTable(), null);
totalRecords =
PropertyUtil.propertyAsLong(
changeSnapshot.summary(), SnapshotSummary.TOTAL_RECORDS_PROP, 0L)
+ PropertyUtil.propertyAsLong(
baseSnapshot.summary(), SnapshotSummary.TOTAL_RECORDS_PROP, 0L);
if (changeSnapshot != null) {
totalRecords +=
PropertyUtil.propertyAsLong(
changeSnapshot.summary(), SnapshotSummary.TOTAL_RECORDS_PROP, 0L);
}
if (baseSnapshot != null) {
totalRecords +=
PropertyUtil.propertyAsLong(
baseSnapshot.summary(), SnapshotSummary.TOTAL_RECORDS_PROP, 0L);
}
} else {
totalRecords =
PropertyUtil.propertyAsLong(
SnapshotUtil.latestSnapshot(mixedTable.asUnkeyedTable(), null).summary(),
SnapshotSummary.TOTAL_RECORDS_PROP,
0L);
Snapshot latestSnapshot = SnapshotUtil.latestSnapshot(mixedTable.asUnkeyedTable(), null);
if (latestSnapshot != null) {
totalRecords =
PropertyUtil.propertyAsLong(
latestSnapshot.summary(), SnapshotSummary.TOTAL_RECORDS_PROP, 0L);
}
}
return totalRecords;
}
Expand Down

0 comments on commit 3a89437

Please sign in to comment.