Skip to content

Commit 9e71b67

Browse files
committed
fix: support view history only in orm store for now
1 parent 95adf09 commit 9e71b67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

console/atest-ui/src/views/TestCase.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ Magic.Keys(() => {
832832
<el-button type="danger" @click="deleteCase" :icon="Delete">{{ t('button.delete') }}</el-button>
833833
<el-button type="primary" @click="openDuplicateTestCaseDialog" :icon="CopyDocument" v-if="!isHistoryTestCase">{{ t('button.duplicate') }}</el-button>
834834
<el-button type="primary" @click="openCodeDialog">{{ t('button.generateCode') }}</el-button>
835-
<el-button type="primary" v-if="!isHistoryTestCase" @click="openHistoryDialog">{{ t('button.viewHistory') }}</el-button>
835+
<el-button type="primary" v-if="!isHistoryTestCase && Cache.GetCurrentStore().kind.name == 'atest-store-orm'" @click="openHistoryDialog">{{ t('button.viewHistory') }}</el-button>
836836
<span v-if="isHistoryTestCase" style="margin-left: 15px;">{{ t('tip.runningAt') }}{{ HistoryTestCaseCreateTime }}</span>
837837
</div>
838838
<div style="display: flex;">

pkg/server/server.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ service Runner {
141141

142142
rpc DeleteAllHistoryTestCase(HistoryTestCase) returns (HelloReply) {
143143
option (google.api.http) = {
144-
delete: "/api/v1/suites/{suiteName}/cases/{caseName}"
144+
delete: "/api/v1/historySuites/{suiteName}/cases/{caseName}"
145145
};
146146
}
147147

0 commit comments

Comments
 (0)