Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(nms): Initially load count of subscribers correctly #12383

Merged
merged 1 commit into from Apr 28, 2022

Conversation

sebathomas
Copy link
Contributor

@sebathomas sebathomas commented Apr 4, 2022

Summary

Fixes a bug where the number of subscribers shown in the KPI panel depends on the pagination of the subscriber table.

Does not handle changes to the number without reloading NMS.

Fixes #11929.

Thanks @Siddharthlende for investigating!

Done in pairing with @thmsschmitt.

Test Plan

Set up NMS locally with 98 subscribers.
nmsbug

Additional Information

  • This change is backwards-breaking

@sebathomas sebathomas requested review from a team and andreilee April 4, 2022 13:49
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines. label Apr 4, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Apr 4, 2022

Thanks for opening a PR! 💯

A couple initial guidelines

Howto

  • Reviews. The "Reviewers" listed for this PR are the Magma maintainers who will shepherd it.
  • Checks. All required CI checks must pass before merge.
  • Merge. Once approved and passing CI checks, use the ready2merge label to indicate the maintainers can merge your PR.

More info

Please take a moment to read through the Magma project's

If this is your first Magma PR, also consider reading

@github-actions github-actions bot added the component: nms NMS-related issue label Apr 4, 2022
@sebathomas
Copy link
Contributor Author

@andreilee Is there a good way to also get automatic updates in? I think it would be possible to do that in setSubscriberState in SubscriberState.js but that method has a lot of different update paths...

@sebathomas sebathomas force-pushed the nms-subscriber-kpi branch 2 times, most recently from 3a53d11 to 92acf63 Compare April 4, 2022 14:06
@github-actions
Copy link
Contributor

github-actions bot commented Apr 4, 2022

nms-workflow

0 files  0 suites   0s ⏱️
0 tests 0 ✔️ 0 💤 0

Results for commit ba1759f.

♻️ This comment has been updated with latest results.

@sebathomas
Copy link
Contributor Author

Rebased.

@@ -43,6 +43,7 @@ export type SubscriberContextType = {
forbiddenNetworkTypes: {[string]: core_network_types},
metrics?: {[string]: Metrics},
gwSubscriberMap: {[gateway_id]: Array<subscriber_id>},
totalCount: number,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: update the comments above

Fixes a bug where the number of subscribers shown in the KPI
panel depends on the pagination of the subscriber table.

Does not handle changes to the number without reload.

Signed-off-by: Sebastian Thomas <sebastian.thomas@tngtech.com>
@sebathomas sebathomas added the ready2merge This PR is ready to be merged (is approved and passes all required checks) label Apr 28, 2022
@sebathomas sebathomas merged commit 58dd0f4 into magma:master Apr 28, 2022
emakeev pushed a commit to emakeev/magma that referenced this pull request Aug 5, 2022
Fixes a bug where the number of subscribers shown in the KPI
panel depends on the pagination of the subscriber table.

Does not handle changes to the number without reload.

Signed-off-by: Sebastian Thomas <sebastian.thomas@tngtech.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: nms NMS-related issue ready2merge This PR is ready to be merged (is approved and passes all required checks) size/S Denotes a PR that changes 10-29 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Subscriber count is not correct in NMS UI
2 participants