You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@yskopets I've improved the functionality that evaluates the total number of updates. I use a reducer to sum up the number of updates found in subscriptions. For certain contexts, I'll add "n/a" as a placeholder in the UI. I failed to address instances where a number of updates might be mixed in with a "n/a" string. The reducer now properly ignores the non-integer values and only does a sum of the updates that return an integer.
This is one of the main parts of the app I want to refactor. I have to do a lot of cross-querying between the Dataplane and Dataplane Insights endpoints and it gets a bit crazy. GraphQL would probably be perfect here.
* fix: added better evaluation for the reduce function that handles the sum of Total Updates (#7).
* simplified the reduce function for Total Updates to fallback to 0 if there is no value returned.
* removed an if statement we no longer needed for the Total Updates value.
Context
Reported by a user on Kuma Slack
Description
Total updates
looks wrongFor comparison, the output of
kumactl inspect dataplanes
looks like this:The text was updated successfully, but these errors were encountered: