Skip to content

Commit

Permalink
fix: graphs not displaying in metrics UI. (#49)
Browse files Browse the repository at this point in the history
* generated tar ball

Signed-off-by: schakradari <[email protected]>

* Removed the tar from dist and added in the manifests folder

Signed-off-by: schakradari <[email protected]>

* Header change

Signed-off-by: schakrad <[email protected]>

* Added comments and moved the file into Metrics folder and renamed it to client

Signed-off-by: schakrad <[email protected]>

* Modified the documentation for the functions in client.ts

Signed-off-by: schakrad <[email protected]>

* change in framing the comment

Signed-off-by: schakrad <[email protected]>

* Updated tar ball

Signed-off-by: schakrad <[email protected]>

* Adding the applicationNameSpace in code

Signed-off-by: schakrad <[email protected]>

* Tar ball after addition of applicationNameSpace.

Signed-off-by: schakrad <[email protected]>

* code fix for the type error

Signed-off-by: schakrad <[email protected]>

* tar ball regeneration

Signed-off-by: schakrad <[email protected]>

* Converting response to response.json()

Signed-off-by: schakrad <[email protected]>

* Adding dependencies

Signed-off-by: schakrad <[email protected]>

* Final tar ball after adding dependency

Signed-off-by: schakrad <[email protected]>

* Reduce tar ball

Signed-off-by: schakrad <[email protected]>

* Tar ball reduction

Signed-off-by: schakrad <[email protected]>

* extension.js file pushed

Signed-off-by: schakrad <[email protected]>

* tar ball regenerated

Signed-off-by: schakrad <[email protected]>

* Fix for the UI bug

Signed-off-by: schakrad <[email protected]>

* Removed space

Signed-off-by: schakrad <[email protected]>

---------

Signed-off-by: schakradari <[email protected]>
Signed-off-by: schakrad <[email protected]>
  • Loading branch information
schakrad authored Aug 24, 2023
1 parent 5d714b0 commit 2eb8ec9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ export const TimeSeriesChart = ({
chartData?.map((data: any) => {
newFilter.push(data.name);
});
if (filterChart?.length > 0) {
setFilterChart({ ...filterChart, [groupBy]: newFilter });
if (Object.keys(filterChart)?.length > 0) {
setFilterChart({ ...filterChart, [groupBy]: (filterChart[groupBy] || []).concat(newFilter) });
} else {
setFilterChart({ [groupBy]: newFilter });
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ export function getHeaders({
"Argocd-Application-Name": `${argocdApplicationName}`,
"Argocd-Project-Name": `${project}`,
};
}
}

0 comments on commit 2eb8ec9

Please sign in to comment.