update the bin storage condition to use the filtered nodes function to take into account excluded nodes

This commit is contained in:
csawatzky 2025-07-31 14:40:55 -06:00
parent 7dbeb19d8d
commit 03ab16614d
4 changed files with 16 additions and 13 deletions

View file

@ -89,6 +89,7 @@ export interface IBinAPIContext {
start: string,
end: string,
showErrors?: boolean,
allNodes?: boolean,
otherTeam?: string
) => Promise<AxiosResponse<pond.ListBinComponentsMeasurementsResponse>>;
updateBinPermissions: (
@ -447,6 +448,7 @@ export default function BinProvider(props: PropsWithChildren<Props>) {
start: string,
end: string,
showErrors = false,
allNodes = false,
otherTeam?: string
) => {
const view = otherTeam ? otherTeam : as
@ -457,7 +459,8 @@ export default function BinProvider(props: PropsWithChildren<Props>) {
"&end=" +
end +
(view ? "&as=" + view : "") +
(showErrors ? "&showErrors=true" : "&showErrors=false")
(showErrors ? "&showErrors=true" : "&showErrors=false") +
(allNodes ? "&allNodes=true" : "&allNodes=false")
return new Promise<AxiosResponse<pond.ListBinComponentsMeasurementsResponse>>((resolve, reject) => {
get<pond.ListBinComponentsMeasurementsResponse>(pondURL(url))