Closed
Bug 807312
Opened 12 years ago
Closed 12 years ago
Speakout Wireless needs default APN
Categories
(Firefox OS Graveyard :: Gaia::Settings, defect)
Tracking
(blocking-basecamp:-)
People
(Reporter: hub, Assigned: hub)
References
Details
(Keywords: b2g-testdriver)
Attachments
(3 files, 1 obsolete file)
849 bytes,
patch
|
kaze
:
review+
|
Details | Diff | Splinter Review |
6.00 KB,
patch
|
kaze
:
review+
vingtetun
:
approval-gaia-v1+
|
Details | Diff | Splinter Review |
190 bytes,
text/html
|
vingtetun
:
review+
vingtetun
:
approval-gaia-v1+
|
Details |
Speakout Wireless needs default APN settings too.
Attaching patch.
Assignee | ||
Comment 1•12 years ago
|
||
Assignee: nobody → hub
Attachment #677014 -
Flags: review?(kaze)
Comment 2•12 years ago
|
||
Comment on attachment 677014 [details] [diff] [review]
Bug 807312 - Add APN settings for Speakout Wireless (Canada, 7-Eleven MVNO).
Thinking out loud: we should add this diff to the apps/settings/resources/ directory (e.g. in a apns_conf_additions.diff file) so we don’t lose it next time I update the Android database.
Attachment #677014 -
Flags: review?(kaze) → review+
Comment 3•12 years ago
|
||
Comment on attachment 677014 [details] [diff] [review]
Bug 807312 - Add APN settings for Speakout Wireless (Canada, 7-Eleven MVNO).
[Approval Request Comment]
Bug caused by (feature/regressing bug #):
User impact if declined: prevents connection forom Speakout Wireless users
Testing completed:
Risk to taking this patch (and alternatives if risky): none
Attachment #677014 -
Flags: approval-gaia-master?(21)
Updated•12 years ago
|
blocking-basecamp: --- → ?
Assignee | ||
Updated•12 years ago
|
Keywords: b2g-testdriver
Updated•12 years ago
|
blocking-basecamp: ? → -
Assignee | ||
Comment 4•12 years ago
|
||
This is blocking dogfooding here in Canada. This is for the only pre-paid option available to us.
Attachment #677014 -
Flags: approval-gaia-master?(21) → approval-gaia-master+
Updated•12 years ago
|
Component: Gaia → Gaia::Settings
Flags: approval-gaia-master+
Assignee | ||
Comment 5•12 years ago
|
||
Pull request still waiting
https://github.com/mozilla-b2g/gaia/pull/6170
Assignee | ||
Comment 6•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → B2G C2 (20nov-10dec)
Assignee | ||
Comment 7•12 years ago
|
||
Reopening as some recent changes broke it.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 8•12 years ago
|
||
It seems that I do need to regenerate shared/resources/apn.json (and commit) but I can't figure how to.
Assignee | ||
Comment 9•12 years ago
|
||
Attachment #687172 -
Flags: review?(kaze)
Assignee | ||
Comment 10•12 years ago
|
||
This last change is now needed. It was not when the first patch got initial approval.
Note: I did the changes by hand as I haven't been able to regenerate the file.
Comment 11•12 years ago
|
||
Comment on attachment 687172 [details] [diff] [review]
Bug 807312 - Part 2: update the apn.json file.
The apn.json file is the merge of the three XML databases in /shared/resources/apn/*.xml:
• apns_conf.xml is the Android database, and it’s our root
• serviceproviders.xml is the Gnome database — it’s used to retrieve additional information (e.g. voicemail);
• operator-variant.xml is our own database (Firefox OS) — it’s used to add specific information.
So please don’t modify the apn.json file, but either fix the Android database by submitting an upstream patch or add your operator (“SpeakOut”) to the operator-variant.xml and ensure that query.js is able to merge this information properly.in
Attachment #687172 -
Flags: review?(kaze) → review-
Assignee | ||
Comment 12•12 years ago
|
||
(In reply to Fabien Cazenave [:kaze] from comment #11)
> Comment on attachment 687172 [details] [diff] [review]
> Bug 807312 - Part 2: update the apn.json file.
>
> The apn.json file is the merge of the three XML databases in
> /shared/resources/apn/*.xml:
> • apns_conf.xml is the Android database, and it’s our root
> • serviceproviders.xml is the Gnome database — it’s used to retrieve
> additional information (e.g. voicemail);
> • operator-variant.xml is our own database (Firefox OS) — it’s used to add
> specific information.
>
> So please don’t modify the apn.json file, but either fix the Android
> database by submitting an upstream patch or add your operator (“SpeakOut”)
> to the operator-variant.xml and ensure that query.js is able to merge this
> information properly.in
As I said in Comment 10, I didn't succeed in regenerating the file - so I edited it myself. The information is in the apns_conf.xml already, so if you regenerate it, you'll see that there shouldn't be any difference.
Comment 13•12 years ago
|
||
(In reply to Hub Figuiere [:hub] from comment #12)
> As I said in Comment 10, I didn't succeed in regenerating the file - so I
> edited it myself. The information is in the apns_conf.xml already, so if you
> regenerate it, you'll see that there shouldn't be any difference.
Did you add this information on your own without submitting it upstream? If yes, this will be lost next time we update the Android database.
We should *not* modify the apns_conf.xml or serviceproviders.xml databases on our side. They’re directly pulled from upstream sources.
Assignee | ||
Comment 14•12 years ago
|
||
> Did you add this information on your own without submitting it upstream? If
> yes, this will be lost next time we update the Android database.
I had no indication about whether I should do or not.
> We should *not* modify the apns_conf.xml or serviceproviders.xml databases
> on our side. They’re directly pulled from upstream sources.
So what are the options? It does not look like operator-variant.xml has the same
Also how does one regenerate the .json ?
Comment 15•12 years ago
|
||
(In reply to Hub Figuiere [:hub] from comment #14)
> > Did you add this information on your own without submitting it upstream? If
> > yes, this will be lost next time we update the Android database.
>
> I had no indication about whether I should do or not.
>
Then please excuse my lack of clarity.
> > We should *not* modify the apns_conf.xml or serviceproviders.xml databases
> > on our side. They’re directly pulled from upstream sources.
>
> So what are the options? It does not look like operator-variant.xml has the
> same
>
Not sure to get the question, but yes if you choose to add your APN locally you’ll probably have to adapt the code in query.js. You can also create another XML file, e.g. apns_conf_new.xml, if that’s easier to you.
As long as query.js allows to merge these databases into apn.json and that the Android & Gnome databases are not modified locally, that’s fine.
> Also how does one regenerate the .json ?
I assumed the README.md file in /shared/resources/apn/ would be enough but apparently my communication skills are even worse than I thought. Sorry. :-/
Open the /shared/resources/apn/index.html file in a browser (through a local webserver), you should see the existing apn.json database. If you remove the apn.json database, this HTML document will generate a new JSON string from the existing XML databases — and you can copy/paste this string to a new apn.json file.
Assignee | ||
Comment 16•12 years ago
|
||
Attachment #687172 -
Attachment is obsolete: true
Attachment #688426 -
Flags: review?(kaze)
Comment 17•12 years ago
|
||
Comment on attachment 688426 [details] [diff] [review]
Bug 807312 - Part 2: Make an apns_conf-local.xml and update the .json file. Clarify the README.
Review of attachment 688426 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good but please address the two nitpicks. Thanks for your work Hubert!
::: shared/resources/apn/query.js
@@ +9,4 @@
> var OPERATOR_VARIANT_FILE = '../apn.json';
> var GNOME_DB_FILE = 'serviceproviders.xml';
> var ANDROID_DB_FILE = 'apns_conf.xml';
> + var LOCAL_ANDROID_DB_FILE = 'apns_conf-local.xml';
nit: please don’t use any dash in the file name and use an underscore instead. That’s one of the frustrating guidelines we follow for this project…
@@ +226,5 @@
> output.textContent = '\n merging databases, this takes a while...';
> gAndroidDB = loadXML(ANDROID_DB_FILE);
> + // First merge the local DB
> + var localAndroidDB = loadXML(LOCAL_ANDROID_DB_FILE);
> + var localApns = localAndroidDB.documentElement.getElementsByTagName("apn");
Nit: please make sure query.js passes the linter. This line does not.
Attachment #688426 -
Flags: review?(kaze) → review+
Assignee | ||
Comment 18•12 years ago
|
||
> > + var localApns = localAndroidDB.documentElement.getElementsByTagName("apn");
>
> Nit: please make sure query.js passes the linter. This line does not.
How do I run the linter?
Comment 19•12 years ago
|
||
gjslint --nojsdoc my_file.js
https://wiki.mozilla.org/Gaia/Hacking#Before_submitting_a_patch
Assignee | ||
Comment 20•12 years ago
|
||
>
> nit: please don’t use any dash in the file name and use an underscore
> instead. That’s one of the frustrating guidelines we follow for this project…
Also funny thing: operator-variant.xml use a dash....
Comment 21•12 years ago
|
||
Oh, right. Feel free to rename it as well, while you’re at it. :-)
Assignee | ||
Comment 22•12 years ago
|
||
Pull Request. Please merge.
https://github.com/mozilla-b2g/gaia/pull/6824
Comment 23•12 years ago
|
||
Comment on attachment 688426 [details] [diff] [review]
Bug 807312 - Part 2: Make an apns_conf-local.xml and update the .json file. Clarify the README.
NOTE: If blocking-basecamp+ is set, just land it for now.
[Approval Request Comment]
Bug caused by (feature/regressing bug #): not a regression
User impact if declined: dogfooding is impossible in Toronto
Testing completed: manual
Risk to taking this patch (and alternatives if risky): low, as the resulting `apn.json' file is almost the same (only one additional entry)
Attachment #688426 -
Flags: approval-gaia-master?(21)
Assignee | ||
Comment 24•12 years ago
|
||
I don't have credentials on github.
Comment 25•12 years ago
|
||
As this bug is not blocking-basecamp+, we need an explicit approval before — which I’ve just requested.
Comment 26•12 years ago
|
||
Comment on attachment 688426 [details] [diff] [review]
Bug 807312 - Part 2: Make an apns_conf-local.xml and update the .json file. Clarify the README.
Review of attachment 688426 [details] [diff] [review]:
-----------------------------------------------------------------
I feel like adding a third player into the APN databases is a nice win. That would let people add their own custom APNs without breaking the main databases. a+.
Attachment #688426 -
Flags: approval-gaia-master?(21) → approval-gaia-master+
Comment 27•12 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Comment 28•12 years ago
|
||
Attachment #689716 -
Flags: review?(hub)
Updated•12 years ago
|
Attachment #689716 -
Flags: review?(hub) → review?(21)
Attachment #689716 -
Flags: review?(21)
Attachment #689716 -
Flags: review+
Attachment #689716 -
Flags: approval-gaia-master+
You need to log in
before you can comment on or make changes to this bug.
Description
•