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

Adds subscribers to Am data collection when they are created. #84

Merged

Conversation

saltiyazan
Copy link
Contributor

To be able to get subscribers created using PostSubscriberByID and making the behavior of GetSubscribers symmetric to it, we are adding a subscriber entry to the subscriptionData.provisionedData.amData collection. At the time of the creation of the subscriber only the imsi is known and is added in the ueId field, the rest of the fields are updated later on.

@onf-bot
Copy link
Contributor

onf-bot commented Nov 10, 2023

Can one of the admins verify this patch?

1 similar comment
@onf-bot
Copy link
Contributor

onf-bot commented Nov 10, 2023

Can one of the admins verify this patch?

@saltiyazan
Copy link
Contributor Author

Please take a look, if it seems good I will put it to ready to review @ghislainbourgeois :)

Copy link
Contributor

@ghislainbourgeois ghislainbourgeois left a comment

Choose a reason for hiding this comment

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

Looks good, I only have one small comment

Comment on lines 281 to 284
ueId := amData["ueId"].(string) // Since ueId is guaranteed to exist

var tmp configmodels.SubsListIE
tmp.UeId = ueId
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
ueId := amData["ueId"].(string) // Since ueId is guaranteed to exist
var tmp configmodels.SubsListIE
tmp.UeId = ueId
tmp := configmodels.SubsListIE{
UeId: amData["ueID"].(string),
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@saltiyazan saltiyazan marked this pull request as ready for review November 15, 2023 06:42
tmp := configmodels.SubsListIE{
PlmnID: servingPlmnId.(string),
UeId: ueId.(string),
UeId: amData["ueID"].(string),
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
UeId: amData["ueID"].(string),
UeId: amData["ueId"].(string),

@saltiyazan saltiyazan force-pushed the TELCO-789-adds-subs-to-db-when-posted branch from 9aea52a to 8ea3eff Compare November 29, 2023 05:19
@gab-arrobo
Copy link
Contributor

@saltiyazan please rebase this PR

@saltiyazan saltiyazan force-pushed the TELCO-789-adds-subs-to-db-when-posted branch from 8ea3eff to e6e7b46 Compare December 1, 2023 14:20
@saltiyazan
Copy link
Contributor Author

@saltiyazan please rebase this PR

Just did.
@gab-arrobo :)

@gab-arrobo
Copy link
Contributor

@saltiyazan please rebase this PR

Just did. @gab-arrobo :)

Hi @saltiyazan, it is not. You need to align it with the master branch and that is why GitHub is showing This branch is out-of-date with the base branch

image

@saltiyazan
Copy link
Contributor Author

@saltiyazan please rebase this PR

Just did. @gab-arrobo :)

Hi @saltiyazan, it is not. You need to align it with the master branch and that is why GitHub is showing This branch is out-of-date with the base branch

image

Hi @gab-arrobo
How about now? I think it's in sync now.

@gab-arrobo
Copy link
Contributor

test this please

Improves test, renames variable to ueId and uses a realistic ueId value
@gab-arrobo
Copy link
Contributor

ok to test

@thakurajayL
Copy link
Contributor

Could you please rebase your branch,

@gab-arrobo gab-arrobo merged commit 6c78c17 into omec-project:master Dec 13, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants