Skip to content

subscriberdb service misc fixes related to apn resource handling#7846

Merged
hcgatewood merged 3 commits intomagma:masterfrom
wangyyt1013:subscriberdb_fixes
Jun 30, 2021
Merged

subscriberdb service misc fixes related to apn resource handling#7846
hcgatewood merged 3 commits intomagma:masterfrom
wangyyt1013:subscriberdb_fixes

Conversation

@wangyyt1013
Copy link
Copy Markdown
Member

Signed-off-by: Yuanyuting Wang [email protected]

Summary

  1. Fix subscriberdb.ConvertSubEntsToProtos to properly filter for apn associations of subscribers
  2. Fix getApnResourcesDigest in subscriberdb to take digests that capture the ingoing (from gateways) and outgoing (to apns) associations of apn resoruces
  3. Miscellaneous stylistic fixes

Test Plan

  1. Ran all existing tests. All passed
  2. Added regression tests for the two major fixes

Additional Information

  • This change is backwards-breaking

@wangyyt1013 wangyyt1013 added the component: orc8r Orchestrator-related issue label Jun 30, 2021
@wangyyt1013 wangyyt1013 requested a review from hcgatewood June 30, 2021 00:59
@wangyyt1013 wangyyt1013 self-assigned this Jun 30, 2021
@wangyyt1013 wangyyt1013 requested a review from a team as a code owner June 30, 2021 00:59
@wangyyt1013 wangyyt1013 requested review from a team and uri200 June 30, 2021 00:59
@pull-request-size pull-request-size bot added the size/XL Denotes a Pull Request that changes 500-999 lines. label Jun 30, 2021
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for opening a PR! 💯 Please note that all commits must be signed off. This is enforced by the DCO check.

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

@magmabot magmabot added the component: agw Access gateway-related issue label Jun 30, 2021
Copy link
Copy Markdown
Contributor

@hcgatewood hcgatewood left a comment

Choose a reason for hiding this comment

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

Looks great, main thing is the q on the lte/protos/apn.proto change

Comment thread lte/cloud/go/services/subscriberdb/digest.go Outdated
Comment thread lte/cloud/go/services/subscriberdb/digest.go Outdated
Comment thread lte/protos/apn.proto
Comment thread lte/cloud/go/services/subscriberdb/protos/subscriberdb.proto

// TestConvertSubEntsToProtos is a regression test to check if ConvertSubEntsToProtos
// properly filters for the apn associations of a subscriber.
func TestConvertSubEntsToProtos(t *testing.T) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Did this fail with the original implementation?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Comment thread lte/cloud/go/services/subscriberdb/digest_test.go
Signed-off-by: Yuanyuting Wang <[email protected]>
@pull-request-size pull-request-size bot added size/L Denotes a Pull Request that changes 100-499 lines. and removed size/XL Denotes a Pull Request that changes 500-999 lines. labels Jun 30, 2021
@wangyyt1013 wangyyt1013 requested a review from hcgatewood June 30, 2021 15:31
@mstre123 mstre123 requested review from mstre123 and removed request for mstre123 June 30, 2021 17:58
Copy link
Copy Markdown
Contributor

@hcgatewood hcgatewood left a comment

Choose a reason for hiding this comment

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

Lgtm, thanks for the fixes!

@hcgatewood hcgatewood merged commit 2ece891 into magma:master Jun 30, 2021
themarwhal pushed a commit that referenced this pull request Jun 30, 2021
rmeleromira pushed a commit to rmeleromira/magma that referenced this pull request Jul 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apply-v1.6 backported-v1.6 component: agw Access gateway-related issue component: orc8r Orchestrator-related issue size/L Denotes a Pull Request that changes 100-499 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants