This is an automated email from the ASF dual-hosted git repository.
mintsweet pushed a commit to branch release-v1.0
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/release-v1.0 by this push:
new 5d6cfe4c6 feat: default enable project plugin and remove configuration
(#7630) (#7631)
5d6cfe4c6 is described below
commit 5d6cfe4c6843188c47f42465d11eb32646295146
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Jun 19 19:46:15 2024 +1200
feat: default enable project plugin and remove configuration (#7630) (#7631)
Co-authored-by: 青湛 <[email protected]>
---
.../src/routes/project/detail/settings-panel.tsx | 4 +--
config-ui/src/routes/project/home/index.tsx | 31 +++++++---------------
2 files changed, 11 insertions(+), 24 deletions(-)
diff --git a/config-ui/src/routes/project/detail/settings-panel.tsx
b/config-ui/src/routes/project/detail/settings-panel.tsx
index 4cb096a27..a4baa004a 100644
--- a/config-ui/src/routes/project/detail/settings-panel.tsx
+++ b/config-ui/src/routes/project/detail/settings-panel.tsx
@@ -189,10 +189,10 @@ export const SettingsPanel = ({ project, onRefresh }:
Props) => {
<Block
title={
<Checkbox checked={issueTrace.enable} onChange={(e) =>
setIssueTrace({ enable: e.target.checked })}>
- Enable Issue Trace
+ Enable issue trace
</Checkbox>
}
- description=""
+ description="Parse the issue status and assignee history from
issue changelogs. Currently, only Jira issues are supported."
/>
<Block>
<Button type="primary" loading={operating} disabled={!name}
onClick={handleUpdate}>
diff --git a/config-ui/src/routes/project/home/index.tsx
b/config-ui/src/routes/project/home/index.tsx
index 7c253d91e..6511f9928 100644
--- a/config-ui/src/routes/project/home/index.tsx
+++ b/config-ui/src/routes/project/home/index.tsx
@@ -19,15 +19,14 @@
import { useState, useMemo, useRef } from 'react';
import { Link, useNavigate } from 'react-router-dom';
import { PlusOutlined, SettingOutlined } from '@ant-design/icons';
-import { Flex, Table, Button, Modal, Input, Checkbox, message } from 'antd';
+import { Flex, Table, Button, Modal, Input, message } from 'antd';
import API from '@/api';
-import { PageHeader, Block, ExternalLink, IconButton } from '@/components';
+import { PageHeader, Block, IconButton } from '@/components';
import { getCron, PATHS } from '@/config';
import { ConnectionName } from '@/features';
import { useRefreshData } from '@/hooks';
import { OnboardTour } from '@/routes/onboard/components';
-import { DOC_URL } from '@/release';
import { formatTime, operator } from '@/utils';
import { PipelineStatus } from '@/routes/pipeline';
import { IBlueprint } from '@/types';
@@ -40,7 +39,6 @@ export const ProjectHomePage = () => {
const [pageSize] = useState(20);
const [open, setOpen] = useState(false);
const [name, setName] = useState('');
- const [enableDora, setEnableDora] = useState(true);
const [saving, setSaving] = useState(false);
const nameRef = useRef(null);
@@ -73,7 +71,6 @@ export const ProjectHomePage = () => {
const handleHideDialog = () => {
setOpen(false);
setName('');
- setEnableDora(true);
};
const handleCreate = async () => {
@@ -90,8 +87,13 @@ export const ProjectHomePage = () => {
metrics: [
{
pluginName: 'dora',
- pluginOption: '',
- enable: enableDora,
+ pluginOption: {},
+ enable: true,
+ },
+ {
+ pluginName: 'issue_trace',
+ pluginOption: {},
+ enable: true,
},
],
}),
@@ -221,21 +223,6 @@ export const ProjectHomePage = () => {
onChange={(e) => setName(e.target.value)}
/>
</Block>
- <Block
- title="Project Settings"
- description={
- <>
- <ExternalLink link={DOC_URL.DORA}>DORA metrics</ExternalLink>
- <span style={{ marginLeft: 4 }}>
- are four widely-adopted metrics for measuring software
delivery performance.
- </span>
- </>
- }
- >
- <Checkbox checked={enableDora} onChange={(e) =>
setEnableDora(e.target.checked)}>
- Enable DORA Metrics
- </Checkbox>
- </Block>
</Modal>
{ready && dataSource.length === 1 && (
<OnboardTour nameRef={nameRef} connectionRef={connectionRef}
configRef={configRef} />