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

Update radio types for GSM (#304) #338

Closed
wants to merge 1 commit into from

Conversation

jaredlockhart
Copy link
Contributor

  • Update cell processing to catch incorrect radio types
  • Add test
  • Add data migration

@hannosch



def upgrade():
stmt = 'UPDATE cell SET `radio` = 2 WHERE `radio` = 0 AND cid >= 65536;'
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a bit too simple. It misses the duplicate detection. We have a whole bunch of cell entries where we have entries for the same mcc,mnc,lac,cid combination with both radio = gsm and radio = umts.

@hannosch
Copy link
Contributor

Looks good so far. But it still misses the duplication detection part. I wanted to know how many cell entries are duplicated across gsm/umts radio types or stated differently: how many conflicts do we get when trying to adjust the radio type for the existing data.

Depending on how many conflicts we have, we can either drop the "bad" gsm results for cases where we already have a proper umts entry, or if it's too many we might want to merge the two cell entries into one.

@jaredlockhart
Copy link
Contributor Author

@hannosch I updated the migration. These three queries should handle each case properly I think. I tested locally and it seemed okay.

@hannosch
Copy link
Contributor

f+, as mentioned on IRC one little detail is missing in the migration: Making sure there's an area entry (cid=-2) for every radio,mcc,mnc,lac combination, as switching the radio type on some cells might make those the first entry in an area.

- Update cell processing to catch incorrect radio types
- Add test
- Add data migration
@hannosch
Copy link
Contributor

Committed via 432ef5d and 3a9a46f.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants