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

Countries migration 2 #1546

Merged
merged 53 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
4bb462a
clearing db/network_prefixes.yml db/networks.yml to empty arrays
timeratp Sep 4, 2024
098b85d
adding additional countries on db/countries.yml
timeratp Sep 4, 2024
de09962
adding db/network_date/ coutnries.yml s
timeratp Sep 4, 2024
9703544
updated db/network_types.yml with additional network types
timeratp Sep 4, 2024
c3bb6cd
NDC2 00X prefix calculations update (exluding none digital values fo…
timeratp Sep 4, 2024
e6e3942
added logic: prefix id/uuid must be unique in case prefix same, but m…
timeratp Sep 4, 2024
a43f50f
db/network_data/Ukraine.yml 380 prefix test
timeratp Sep 4, 2024
715f0fa
National calling rules should not affect prefix, min/max length calcu…
timeratp Sep 5, 2024
fb14945
Croatia.yml tempo comment
timeratp Sep 5, 2024
b4779ac
Croatia.yml tempo comment
timeratp Sep 5, 2024
8bdc956
Ireland.yml tempo comment
timeratp Sep 5, 2024
a50956d
adding: null case for country_code, and excluding from networks
timeratp Sep 9, 2024
1f33e4d
temporary: skip of prefix for Ireland/Croitia ymls
timeratp Sep 9, 2024
3fb306c
Tempo: Ukraine.yml min/max per 380 prefix change
timeratp Sep 9, 2024
8308b0b
countries.yml UNITED STATES upper case
timeratp Sep 10, 2024
02acae1
discarding prefixes without SNL values
timeratp Sep 10, 2024
cbfb8ea
db/network_data/Vatical.yml removed
timeratp Sep 10, 2024
6b829ed
US o upper case on db/countries.yml
timeratp Sep 10, 2024
0fe4048
db/network_data/United States.yml
timeratp Sep 10, 2024
ffd23cb
Null for db/network_data/* incase network is not specified for prefix
timeratp Sep 11, 2024
54c8e65
for specs 'United States' to 'US'
timeratp Sep 11, 2024
3fe9476
roll-back: for specs 'United States' to 'US'
timeratp Sep 11, 2024
b9360c6
db/network_data/* updated min/max calculations (discarding SN2)
timeratp Sep 12, 2024
d639f63
tempo mod
timeratp Sep 12, 2024
ee7dd82
spec 2 mod
timeratp Sep 12, 2024
c2da6df
Added logic for country_code prefix: min = country_code(length) +1, m…
timeratp Sep 12, 2024
ab89172
spec/requests/api/rest/admin/routing/destinations_spec.rb 12345 -> 37…
timeratp Sep 12, 2024
c8c6e2b
for specs: find_by!(name: UNITED STATES) replacing to take
timeratp Sep 16, 2024
c2e5ab7
for specs: find_by!(name: UNITED STATES).id replacing to take
timeratp Sep 16, 2024
506d679
cahnging test case networks CA/USA to AF Fixed/TR Fixed
timeratp Sep 16, 2024
a5ec593
network name spec change
timeratp Sep 16, 2024
c692fcb
new_routing_plan_spec.rb added test prefix
timeratp Sep 16, 2024
3de293a
new_routing_plan_spec.rb added test prefix v2
timeratp Sep 16, 2024
c51c052
roll-back: new_routing_plan_spec.rb added test prefix v2
timeratp Sep 16, 2024
aac4ca9
spec/acceptance/rest/admin/api/system/networks_spec.rb test network ids
timeratp Sep 16, 2024
74ee2cf
spec/acceptance/rest/admin/api/system/networks_spec.rb test network ids
timeratp Sep 16, 2024
2b21f78
spec/acceptance/rest/admin/api/system/networks_spec.rb test network i…
timeratp Sep 16, 2024
02a4c03
spec/acceptance/rest/admin/api/system/networks_spec.rb test network i…
timeratp Sep 16, 2024
7a05f53
removed 1 factory from /networks_spec.rb
timeratp Sep 17, 2024
fab4a42
updated specs factory from /networks_spec.rb
timeratp Sep 17, 2024
4b3b289
db/network_data/* respecting existing (previous) values of network_pr…
timeratp Sep 18, 2024
250bb02
adding: removing dublications in case 'SYSTEM_NETWORK_PREFIX', 'SYSTE…
timeratp Sep 19, 2024
3377b2e
Stage 1: Initial generated yml files
timeratp Sep 24, 2024
994e854
Stage 2: Updating Initial generated yml files if there are changes
timeratp Sep 24, 2024
1dd4d90
db/newtork_data/ Ecuador.yml, India.yml dublications removal
timeratp Sep 24, 2024
dd3d72f
Stage 2: adding new data to existing, keep old data if exists
timeratp Sep 24, 2024
04acb25
Stage 1: adding new data, with initial IDs
timeratp Sep 24, 2024
6eef93d
Stage1: Initial data, UA 380 min/max manually overriden (we do care o…
timeratp Sep 25, 2024
918f446
Stage1: Initial data, UA 380 min/max manually overriden (we do care o…
timeratp Sep 25, 2024
5ff4c8f
Stage 2: Original data compared with first csv DB
timeratp Sep 25, 2024
3b0c0f3
Stage 2: Original data compared with first csv DB
timeratp Sep 25, 2024
a3b1197
Stage 1: uploading coutnries.yml, leaving Ukraine.yml untouched
timeratp Sep 25, 2024
c3e9a4e
Stage 1: uploading coutnries.yml, leaving Ukraine.yml untouched, pref…
timeratp Sep 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions db/countries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -722,3 +722,19 @@
- id: 239
iso2: ZW
name: Zimbabwe
- id: 274
iso2: BQ
name: Bonaire Sint Eustatius and Saba
- id: 275
iso2: DG
name: Diego Garcia
- id: 276
iso2: CW
name: Curacao
- id: 277
iso2: SX
name: Sint Maarten (Dutch part)
- id: 278
iso2: VA
name: Vatican City State

340 changes: 340 additions & 0 deletions db/network_data/Afghanistan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,340 @@
country_id: &af 1
networks:
# Fixed Networks
- id: &af_fixed 4123
name: AF Fixed
uuid: 3d6d8df5-16a5-4687-add9-67f9fc0b0bc5
type_id: 12
# Mobile Networks
- id: &af_awcc_mobile 4613
name: AF Awcc Mobile
uuid: b135482a-9b38-4f2e-b1d9-84f6725c3131
type_id: 3
- id: &af_roshan_mobile 4786
name: AF Roshan Mobile
uuid: f78ac1eb-49db-4aff-a06f-790af4ccc9aa
type_id: 3
- id: &af_etisalat_mobile 4797
name: AF Etisalat Mobile
uuid: 0e6cf2c1-4dfa-4af7-ad09-a06ad8165873
type_id: 3
- id: &af_mobifone_salaam_mobile 4817
name: AF Mobifone Salaam Mobile
uuid: ef252ae4-36e5-4ef9-bc8b-9713a08a867b
type_id: 3
- id: &af_mtn_mobile 4844
name: AF Mtn Mobile
uuid: 5aaf72f4-9538-4b53-b78c-910c48b2af19
type_id: 3
network_prefixes:
# Fixed Prefixes
- id: 54911
prefix: '9350'
number_min_length: 11
number_max_length: 11
uuid: f44c2139-0e4e-47b5-ac08-1bbaf91f2da1
country_id: *af
network_id: *af_fixed
- id: 62592
prefix: '9351'
number_min_length: 11
number_max_length: 11
uuid: fbb0428a-c2a0-42be-bce4-f9b47d9a8307
country_id: *af
network_id: *af_fixed
- id: 71644
prefix: '9352'
number_min_length: 11
number_max_length: 11
uuid: 5dd576d2-cb69-4641-8bcd-cd75c45f5c68
country_id: *af
network_id: *af_fixed
- id: 73189
prefix: '9354'
number_min_length: 11
number_max_length: 11
uuid: 94bb28c2-5194-4d1d-ae48-32ca208ab84f
country_id: *af
network_id: *af_fixed
- id: 76532
prefix: '9353'
number_min_length: 11
number_max_length: 11
uuid: 8bdf10c5-48e4-4e4a-af47-154876dc2624
country_id: *af
network_id: *af_fixed
- id: 78105
prefix: '9355'
number_min_length: 11
number_max_length: 11
uuid: 541571b4-6ed4-4cf5-89b2-e2246b9d2af5
country_id: *af
network_id: *af_fixed
- id: 87904
prefix: '9356'
number_min_length: 11
number_max_length: 11
uuid: dec96fa1-5668-499d-a9f3-a416f3cb1543
country_id: *af
network_id: *af_fixed
- id: 90259
prefix: '9357'
number_min_length: 11
number_max_length: 11
uuid: 80fcc727-75be-4621-ae22-32e8ce067224
country_id: *af
network_id: *af_fixed
- id: 93086
prefix: '9358'
number_min_length: 11
number_max_length: 11
uuid: cb8b28d7-0142-4e75-b2cf-2b4b4d33fd26
country_id: *af
network_id: *af_fixed
- id: 95202
prefix: '9360'
number_min_length: 11
number_max_length: 11
uuid: 5796b032-bdc8-481b-965b-86839e4fadc2
country_id: *af
network_id: *af_fixed
- id: 108571
prefix: '9361'
number_min_length: 11
number_max_length: 11
uuid: 11af328f-a2cc-43cd-a043-9a70a52c6d89
country_id: *af
network_id: *af_fixed
- id: 111455
prefix: '9362'
number_min_length: 11
number_max_length: 11
uuid: 23369c40-e823-4b91-9683-874945c143ad
country_id: *af
network_id: *af_fixed
- id: 117820
prefix: '9363'
number_min_length: 11
number_max_length: 11
uuid: 78d48fdd-b259-4d06-bf03-e76906ce502d
country_id: *af
network_id: *af_fixed
- id: 122424
prefix: '9364'
number_min_length: 11
number_max_length: 11
uuid: c6f51aaa-ca4c-484d-9abb-89f01624ed77
country_id: *af
network_id: *af_fixed
- id: 135903
prefix: '9365'
number_min_length: 11
number_max_length: 11
uuid: 2e21efee-3219-4fd0-86e8-fba4282f5e15
country_id: *af
network_id: *af_fixed
- id: 267130
prefix: '9320'
number_min_length: 11
number_max_length: 11
uuid: 18f84084-dc7f-465b-9c5e-b5ea51200d31
country_id: *af
network_id: *af_fixed
- id: 274221
prefix: '9321'
number_min_length: 11
number_max_length: 11
uuid: 89c621d6-26f4-4404-869d-75a78da830e2
country_id: *af
network_id: *af_fixed
- id: 277984
prefix: '9322'
number_min_length: 11
number_max_length: 11
uuid: cdb3dc1f-f062-4b6b-b50c-9755b789f75d
country_id: *af
network_id: *af_fixed
- id: 286620
prefix: '9323'
number_min_length: 11
number_max_length: 11
uuid: cc6f34be-ba6d-4ef3-b67e-568c27f7fc79
country_id: *af
network_id: *af_fixed
- id: 294313
prefix: '9324'
number_min_length: 11
number_max_length: 11
uuid: b75a7563-306a-44a3-aa57-7a77830847b5
country_id: *af
network_id: *af_fixed
- id: 299790
prefix: '9326'
number_min_length: 11
number_max_length: 11
uuid: 5f38d64b-fae2-4014-959c-6e633568457e
country_id: *af
network_id: *af_fixed
- id: 301419
prefix: '9327'
number_min_length: 11
number_max_length: 11
uuid: 4ec17c74-12e5-46ef-a5a6-ab8b9f100bd4
country_id: *af
network_id: *af_fixed
- id: 301961
prefix: '9325'
number_min_length: 11
number_max_length: 11
uuid: 7d23dd51-8dcb-4f7e-b4a1-812564559e88
country_id: *af
network_id: *af_fixed
- id: 309460
prefix: '9330'
number_min_length: 11
number_max_length: 11
uuid: 48a5cf90-1feb-4f59-8839-fb73edaeed02
country_id: *af
network_id: *af_fixed
- id: 313352
prefix: '9328'
number_min_length: 11
number_max_length: 11
uuid: 23d4d980-f566-4a7e-8e85-7668ca2858f1
country_id: *af
network_id: *af_fixed
- id: 321157
prefix: '9331'
number_min_length: 11
number_max_length: 11
uuid: ab7cf560-af82-49e8-b6f9-458a1fcc746f
country_id: *af
network_id: *af_fixed
- id: 327263
prefix: '9332'
number_min_length: 11
number_max_length: 11
uuid: caab59e2-2c22-40d9-9603-39de51e6e6b6
country_id: *af
network_id: *af_fixed
- id: 337267
prefix: '9333'
number_min_length: 11
number_max_length: 11
uuid: a7813545-5db3-42ba-9001-5b989f2abfa8
country_id: *af
network_id: *af_fixed
- id: 340461
prefix: '9334'
number_min_length: 11
number_max_length: 11
uuid: 4787dc5d-f0da-4654-aa74-b331c01099d2
country_id: *af
network_id: *af_fixed
- id: 349884
prefix: '9340'
number_min_length: 11
number_max_length: 11
uuid: f7eacc36-a684-4ef1-9127-d2ea68e59ff1
country_id: *af
network_id: *af_fixed
- id: 367928
prefix: '9343'
number_min_length: 11
number_max_length: 11
uuid: c04920fc-b829-4270-85a5-a873841517e9
country_id: *af
network_id: *af_fixed
- id: 370174
prefix: '9344'
number_min_length: 11
number_max_length: 11
uuid: 31fd866b-4671-4562-a8c8-d099d3d66697
country_id: *af
network_id: *af_fixed
- id: 371909
prefix: '9341'
number_min_length: 11
number_max_length: 11
uuid: e9dbaadc-c23f-44d7-a5c3-7f1f00522818
country_id: *af
network_id: *af_fixed
- id: 377169
prefix: '9342'
number_min_length: 11
number_max_length: 11
uuid: 7758e5df-5cae-4e93-9c37-3c5bca22952d
country_id: *af
network_id: *af_fixed
# Mobile Prefixes
- id: 150227
prefix: '9370'
number_min_length: 11
number_max_length: 11
uuid: 759f8f47-d16e-4cae-92c8-33056ff06bf7
country_id: *af
network_id: *af_awcc_mobile
- id: 163978
prefix: '9371'
number_min_length: 11
number_max_length: 11
uuid: e8185f54-5ff8-4c39-b4db-4ceac4a39c36
country_id: *af
network_id: *af_awcc_mobile
- id: 172521
prefix: '9372'
number_min_length: 11
number_max_length: 11
uuid: 137dfb3a-24d6-4378-9c5a-742f1b623abf
country_id: *af
network_id: *af_roshan_mobile
- id: 174933
prefix: '9373'
number_min_length: 11
number_max_length: 11
uuid: 77189c67-e904-4f9c-92af-d35a39cdfc42
country_id: *af
network_id: *af_etisalat_mobile
- id: 182856
prefix: '9374'
number_min_length: 11
number_max_length: 11
uuid: c68fe96d-c2dc-4d86-9f61-941760609ecd
country_id: *af
network_id: *af_mobifone_salaam_mobile
- id: 187979
prefix: '9376'
number_min_length: 11
number_max_length: 11
uuid: ab846091-5d80-4202-8d2a-eb66f5bd5e6e
country_id: *af
network_id: *af_mtn_mobile
- id: 192078
prefix: '9377'
number_min_length: 11
number_max_length: 11
uuid: 662eee09-175f-419a-a948-3f110d8c68a6
country_id: *af
network_id: *af_mtn_mobile
- id: 198387
prefix: '9378'
number_min_length: 11
number_max_length: 11
uuid: 4238f1f2-f925-402f-b267-2ff4e5de12a6
country_id: *af
network_id: *af_etisalat_mobile
- id: 206650
prefix: '9379'
number_min_length: 11
number_max_length: 11
uuid: e2d53efb-ae97-49fc-9c6d-75ae95c6de09
country_id: *af
network_id: *af_roshan_mobile
# Country code Prefixes
- id: 241938
prefix: '93'
number_min_length: 3
number_max_length: 100
uuid: 0d568cab-5a9e-42b5-bce3-89c77fab7209
country_id: *af
network_id: null
Loading
Loading