Skip to content

Commit

Permalink
Merge branch 'origin'
Browse files Browse the repository at this point in the history
* origin:
  chore: disable debug/pprof interface (apache#2339)
  feat: add upstream id in form (apache#2321)
  • Loading branch information
Boolean committed Feb 27, 2022
2 parents 44ea87f + 46c56f4 commit 1682bf2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/internal/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/apisix/manager-api/internal/handler/statistic"
"path/filepath"

"github.com/gin-contrib/pprof"
// "github.com/gin-contrib/pprof"
"github.com/gin-contrib/static"
"github.com/gin-gonic/gin"

Expand Down Expand Up @@ -95,7 +95,7 @@ func SetUpRouter() *gin.Engine {
h.ApplyRoute(r)
}

pprof.Register(r)
// pprof.Register(r)

return r
}
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ context('Create and Delete Upstream With Custom CHash Key', () => {
cy.contains('Next').click();
cy.contains('Submit').click();
cy.get(selector.notification).should('contain', data.createUpstreamSuccess);
cy.contains('.ant-table-cell', 'ID').should('be.visible');
cy.url().should('contains', 'upstream/list');
});

Expand Down
5 changes: 5 additions & 0 deletions web/src/pages/Upstream/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ const Page: React.FC = () => {
}, [window.location.search]);

const columns: ProColumns<UpstreamModule.ResponseBody>[] = [
{
title: formatMessage({ id: 'page.upstream.list.id' }),
dataIndex: 'id',
hideInSearch: true,
},
{
title: formatMessage({ id: 'page.upstream.list.name' }),
dataIndex: 'name',
Expand Down
1 change: 1 addition & 0 deletions web/src/pages/Upstream/locales/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export default {
'page.upstream.create.basic.info': 'Basic Information',
'page.upstream.create.preview': 'Preview',

'page.upstream.list.id': 'ID',
'page.upstream.list.name': 'Name',
'page.upstream.list.type': 'Type',
'page.upstream.list.description': 'Description',
Expand Down
1 change: 1 addition & 0 deletions web/src/pages/Upstream/locales/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export default {
'page.upstream.create.basic.info': '基础信息',
'page.upstream.create.preview': '预览',

'page.upstream.list.id': 'ID',
'page.upstream.list.name': '名称',
'page.upstream.list.type': '类型',
'page.upstream.list.description': '描述',
Expand Down

0 comments on commit 1682bf2

Please sign in to comment.