Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 29 additions & 24 deletions src/Routes/Tables/Algorithms/columns.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const LastModified = timestamp => (
const HotWorkers = ({ minHotWorkers }) => <Tag>{minHotWorkers}</Tag>;
const Memory = mem => <Tag>{mem || 'No Memory Specified'}</Tag>;
const Cpu = cpu => <Tag>{cpu || 'No CPU Assigned'}</Tag>;

const Image = algorithmImage =>
algorithmImage ? (
<Tooltip title={algorithmImage}>
Expand All @@ -28,28 +29,32 @@ const Image = algorithmImage =>
) : (
<Tag>No Image</Tag>
);
const Name = (name, record) =>
record?.unscheduledReason ? (
<Tooltip title={record?.unscheduledReason}>
<Typography style={{ color: 'red' }}>{name}</Typography>
</Tooltip>
) : (
<Ellipsis>
{name}{' '}
{record?.errors?.includes(errorsCode.NOT_LAST_VERSION_ALGORITHM) && (
<WarningOutlined
title="Warning : Set algorithm's current version to the newly built"
style={{ color: 'red', fontSize: '15px' }}
/>
)}
{record?.devMode && (
<SettingOutlined
title={record?.devFolder}
style={{ color: 'orange', fontSize: '15px' }}
/>
)}
</Ellipsis>
);
const Name = (name, record) => (
<Ellipsis style={{ width: '170px' }}>
{record?.unscheduledReason ? (
<Tooltip title={record?.unscheduledReason}>
<Typography style={{ color: 'red' }}>{name}</Typography>
</Tooltip>
) : (
<>
{name}
{record?.errors?.includes(errorsCode.NOT_LAST_VERSION_ALGORITHM) && (
<WarningOutlined
title="Warning: Set algorithm's current version to the newly built"
style={{ color: 'red', fontSize: '12px', marginLeft: '2px' }}
/>
)}
</>
)}
{record?.devMode && (
<SettingOutlined
title={record?.devFolder}
style={{ color: 'orange', fontSize: '12px', marginLeft: '2px' }}
/>
)}
</Ellipsis>
);

const BuildStats = builds => <AlgorithmBuildStats builds={builds} />;
const renderAction = (_, record) => <AlgorithmActions record={record} />;

Expand All @@ -60,15 +65,15 @@ const sortByMinHotWorkers = (a, b) => sorter(a.minHotWorkers, b.minHotWorkers);
const sortByLastModified = (a, b) => sorter(a.modified, b.modified);
export default [
{
width: '12%',
width: '13%',
title: 'Algorithm Name',
dataIndex: ['name'],
key: 'name',
sorter: sortByName,
render: Name,
},
{
width: '40%',
width: '39%',
title: 'Algorithm Image',
dataIndex: ['algorithmImage'],
key: 'algorithmImage',
Expand Down
22 changes: 16 additions & 6 deletions src/Routes/Tables/Jobs/TitleDataJob.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,24 @@ const Id = (jobID, pipelineName) => {
disabled={grafanaUrl === undefined}
onClick={grafanaUrl !== undefined ? openUrl(grafanaUrl) : null}>
<Image
title={`open link to Grafana for jobID ${jobID}, pipeline name ${pipelineName}`}
title={
grafanaUrl !== undefined
? 'Grafana Steaming Edges dashboard'
: 'No url Grafana'
}
disabled={grafanaUrl === undefined}
preview={false}
style={{
width: '15px',
filter: 'grayscale(100%)',
cursor: 'pointer',
}}
style={
grafanaUrl !== undefined
? {
width: '15px',
cursor: 'pointer',
}
: {
width: '15px',
filter: 'grayscale(100%)',
}
}
src={GRAFANA_ICON}
/>
</TextLink>
Expand Down
2 changes: 2 additions & 0 deletions src/graphql/queries/algorithms-query.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ const ALGORITHMS_QUERY = gql`
batchTolerance
progressVerbosityLevel
ttl
devMode
devFolder
concurrentPipelines {
amount
rejectOnFailure
Expand Down