Skip to content

Commit

Permalink
Updates to TechRadar
Browse files Browse the repository at this point in the history
  • Loading branch information
themsquared committed Oct 31, 2023
1 parent 8e5747e commit b1d6575
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions plugins/tech-radar/src/components/TechRadar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const getLanguageCount = async (
language: string,
updateData
): Promise<void> => {
// Run CQL job to get all services with language specified...
const response = await CortexApi.proxyFetch(
`https://api.getcortexapp.com/api/v1/queries`,
{
Expand All @@ -73,6 +74,7 @@ const getLanguageCount = async (
const result = await response.json();
const jobId = result.jobId;
let res = null;
// Check result for CQL query every second...
while (res == null) {
res = await checkResult(jobId);
if (res == null) {
Expand Down Expand Up @@ -165,13 +167,15 @@ const TechRadar: React.FC = () => {
<Loader
centered={true}
disableText={false}
size={30}
size={35}
small={true}
text={"Updating tech radar data..."}
top={true}
/>
)}
<div style={{ height: "400px" }}>
<div
style={{ height: "500px", display: "flex", justifyContent: "center" }}
>
<Doughnut data={data} />
</div>
</ErrorBoundary>
Expand Down

0 comments on commit b1d6575

Please sign in to comment.