Closed
Bug 987428
Opened 11 years ago
Closed 11 years ago
Display Pin entry UI for unblocking RUIM perso states.
Categories
(Firefox OS Graveyard :: Gaia::System::Lockscreen, defect)
Tracking
(b2g-v2.0 fixed)
RESOLVED
FIXED
2.0 S1 (9may)
Tracking | Status | |
---|---|---|
b2g-v2.0 | --- | fixed |
People
(Reporter: nsarkar, Assigned: nsarkar)
References
Details
Attachments
(3 files, 1 obsolete file)
Need to display a pin entry pop up to allow users to unblock the RUIM personalization states.
Comment 2•11 years ago
|
||
Can we get more details on what's being requested here? Are there any strings required here?
Comment 3•11 years ago
|
||
The code patch is being worked on by QC. Moz might need to be on the review end. Lets not make changes to the flags.
Nivi/Anshul -- can you guys add some more details here as to what exactly is being done/changed.
Flags: needinfo?(nsarkar)
Flags: needinfo?(ikumar)
Flags: needinfo?(anshulj)
Hi,
With this bugzilla, I am proposing we add gaia support to display pin entry pop-up for entering code for unblocking RUIM perso states. This is the corresponding gecko bug -https://bugzilla.mozilla.org/show_bug.cgi?id=900429.
We added support in the past for entering pin for other perso states - nck. spck, etc. This is the bugzilla for supporting nck - https://bugzilla.mozilla.org/show_bug.cgi?id=827383 as a reference.
What I propose to do is to just extend the strings and UI as per 827383 so that the UI component is displayed for newer ruim perso states as well. It's a simple change and I am using the changes in bug 827383 to replicate and add new strings and reuse the existing pin entry pop-up UI element.
Let me know if you guys would like to see a draft of the first patch that I have.
I haven't been able to test it yet. But I should get around to doing that soon.
Thanks,
Nivi.
Flags: needinfo?(nsarkar)
Comment 7•11 years ago
|
||
UX,
Please provide feedback if this is ok by ux.
Flags: needinfo?(firefoxos-ux-bugzilla)
Comment 8•11 years ago
|
||
Flagging Amy and Jacqueline on lockscreen because Casey is sick today. Just a reminder, too, that any patch here must be flagged for ui-review? to firefoxos-us.
Flags: needinfo?(kyee)
Flags: needinfo?(jsavory)
Flags: needinfo?(firefoxos-ux-bugzilla)
Flags: needinfo?(amlee)
Comment 9•11 years ago
|
||
Hi,
I'm not too clear on what exactly is the screen we need a pin code for. Attached is the pin code screen for lock screen that's going to be implemented.
Flags: needinfo?(amlee)
Assignee | ||
Comment 10•11 years ago
|
||
Assignee | ||
Comment 11•11 years ago
|
||
Hi,
It's the screen that we already have as I have attached in this bug.
We just need to add more strings.
I will upload a patch soon.
Thanks,
Nivi.
Comment 12•11 years ago
|
||
(In reply to Nivi from comment #11)
> Hi,
>
> It's the screen that we already have as I have attached in this bug.
> We just need to add more strings.
Hey nivi, just a quick heads up here, that we have a hard string freeze deadline for 1.4 as 3/28 and this may have missed the ship. If this bugend-up being a blocker:1.4+ (more off a product call) can you workaround by reusing existing strings ?
> I will upload a patch soon.
>
> Thanks,
> Nivi.
Assignee | ||
Comment 13•11 years ago
|
||
First draft of the patch - https://github.com/mozilla-b2g/gaia/pull/17775
It's still not working yet. I am in the process of testing.
Comment 14•11 years ago
|
||
Nivi
Can we work with existing strings given that our string freeze was on 3/28?
Flags: needinfo?(nsarkar)
Comment 15•11 years ago
|
||
Since the official request for this feature didn't come from a partner yet I am okay with moving this to 1.5. However please note that this may be required by our partner and they may ask us to support it for 1.4 close to commercialization.
blocking-b2g: 1.4? → 1.5?
Assignee | ||
Comment 16•11 years ago
|
||
Preeti, No we can't use existing strings.
Thanks,
Nivi.
Flags: needinfo?(nsarkar)
Assignee | ||
Comment 17•11 years ago
|
||
I have the final patch uploaded. I tested and it works. I uploaded it to gaia/master for now until we decide if we want this on v1.4.
Here's the pull request - https://github.com/mozilla-b2g/gaia/pull/17962
Preeti, could you please add the relevant reviewers?
Thanks,
Nivi
Flags: needinfo?(praghunath)
Assignee | ||
Comment 18•11 years ago
|
||
Attachment #8401618 -
Flags: review?(timdream)
Comment 19•11 years ago
|
||
Comment on attachment 8401618 [details]
pr.html
This is a very bug patch and require reviews from other modules.
The System app part is trivial enough for me to grant a review, however it doesn't include necessary unit tests. The tests there should be trivial too so please add them.
Attachment #8401618 -
Flags: review?(timdream)
Attachment #8401618 -
Flags: review?(fernando.campo)
Attachment #8401618 -
Flags: review?(arthur.chen)
Attachment #8401618 -
Flags: review-
Attachment #8401618 -
Flags: feedback+
Comment 20•11 years ago
|
||
Comment on attachment 8401618 [details]
pr.html
Same in my case, code is trivial enough to grant the review, but can't do till it's test covered.
You can use the existing ones on FTU from PIN, PUK, XCK screens as a guide.
Attachment #8401618 -
Flags: review?(fernando.campo) → review-
Assignee | ||
Comment 21•11 years ago
|
||
Hi Tim/Fernando,
Thanks for looking at the patch. I will add the necessary tests and upload a patch.
Thanks,
Nivi.
Comment 22•11 years ago
|
||
Comment on attachment 8401618 [details]
pr.html
r=me for the settings part. It's simply table mapping in settings app, for the part I think it's okay to land it without tests.
Attachment #8401618 -
Flags: review?(arthur.chen) → review+
Assignee | ||
Comment 23•11 years ago
|
||
Hi Arthur,
That sounds good to me. Saves me some work on my side. :D
However, if Tim or Fernando still want me to add the tests I could. Please let me know.
Thanks,
Arthur.
Assignee | ||
Comment 24•11 years ago
|
||
In addition, this change passed verification on our side, if that helps.
Thanks,
Nivi.
(In reply to Nivi from comment #23)
> Hi Arthur,
>
> That sounds good to me. Saves me some work on my side. :D
>
> However, if Tim or Fernando still want me to add the tests I could. Please
> let me know.
>
> Thanks,
> Arthur.
Comment 25•11 years ago
|
||
I was talking about related unit tests...
https://github.com/mozilla-b2g/gaia/tree/master/apps/system/test/unit
The code passes locally on your side does not means future changes will not break it.
Flags: needinfo?(timdream)
Comment 26•11 years ago
|
||
I'd rather to have some unit tests also. We already have some for the rest of situations, so shouldn't be difficult, taking the original ones as reference :)
Flags: needinfo?(fernando.campo)
Assignee | ||
Comment 27•11 years ago
|
||
Tim/Fernando, I will add the tests. Should not be too hard. :)
I just asked because of Arthur's comment #22.
Thanks,
Nivi.
Assignee | ||
Comment 29•11 years ago
|
||
Attachment #8401618 -
Attachment is obsolete: true
Attachment #8407320 -
Flags: review?(timdream)
Assignee | ||
Comment 30•11 years ago
|
||
Hi Tim/Fernando,
I have added the unit tests for the new card states. Could someone from your side run the tests and verify for me.
I would really appreciate that.
Thanks,
Nivi.
Flags: needinfo?(timdream)
Flags: needinfo?(fernando.campo)
Comment 31•11 years ago
|
||
Sorry Nivi, but I don't see any new tests for the FTU part :(
Is the PR updated?
Flags: needinfo?(fernando.campo)
Comment 32•11 years ago
|
||
Comment on attachment 8407320 [details]
pr.html
The system part is fine. Thank you.
Please add FTU test cases like what :fcampo said.
Attachment #8407320 -
Flags: review?(timdream) → review+
Flags: needinfo?(timdream)
Assignee | ||
Comment 33•11 years ago
|
||
Hi Tim/Fernando,
Yes the PR is updated. I did add the new card states to tests under apps/system/test/unit - simslot_test.js, simcard_dialog_test.js, internet_sharing_test.js and lockscreen_conn_info_manager_test.js. It's already in the PR.
As for the FTU unit test, I didn't add anything there on purpose because we test the xck screen using 'networkLocked' card state and that's good enough for these new card states as well. If it works for the networkLocked case, it will work for others.
I just looked in the unit tests to see which one tests all the existing supported card states and added new card states there.
Please let me know if I am missing something here.
Thanks,
Nivi.
Updated•11 years ago
|
Attachment #8407320 -
Flags: review?(fernando.campo)
Comment 34•11 years ago
|
||
(In reply to Nivi from comment #33)
>
> As for the FTU unit test, I didn't add anything there on purpose because we
> test the xck screen using 'networkLocked' card state and that's good enough
> for these new card states as well. If it works for the networkLocked case,
> it will work for others.
Totally right, it would work with that for the tests that we have currently.
But, I think those tests are not enough, as we have many states now, and we should also test the changes that those states provoke (mainly textContents on header and warnings).
If those tests doesn't exist at the moment, I think it was an error (probably on my side as reviewer) on previous pull requests, so I'm sorry for that.
One option would be to add them now using the occasion, or open a specific bug for adding those tests in the future. Personally, I prefer the former, but won't be unhappy with the latter, as long as we get them at the end.
>
> I just looked in the unit tests to see which one tests all the existing
> supported card states and added new card states there.
I would add a line in all the tests on the form of '<state> shows <screen>' checking that the textContent of the different labels are changed properly:
assert.equal(UIManager.unlockSimHeader.textContent, <something>);
assert.equal(UIManager.xckLabel.textContent, <something>);
...or using a spy to check that the function _() was called with the corresponding parameters.
And also add same kind of test for every other state that we are not currently testing, also checking for the textContent changes. e.g.
test('networkLocked shows XCK screen', function(){});
test(corporateLocked'shows XCK screen', function(){});
test('serviceProviderLocked'shows XCK screen', function(){});
test('network1Locked'shows XCK screen', function(){});
test('network2Locked'shows XCK screen', function(){});
test('hrpdNetworkLocked'shows XCK screen', function(){});
test('ruimCorporateLocked'shows XCK screen', function(){});
test('ruimServiceProviderLocked'shows XCK screen', function(){});
>
> Please let me know if I am missing something here.
>
> Thanks,
> Nivi.
As I said before, either we could do that on this bug, or open a new bug just for adding the tests, but those tests I needed, IMHO.
Please give your opinion and I'll finish the review after.
P.S. Sorry for being a little pain in the ass about this :D
Flags: needinfo?(nsarkar)
Assignee | ||
Comment 35•11 years ago
|
||
Thanks Fernando for your input. My objective here was to add support for the new card states and add to the existing tests. I will file a bug for the additional tests so we can keep track of it. I will add your above comments to the bug.
For the time being, lets roll with the bare minimum tests if that's ok with you guys.
Thanks,
Nivi.
Flags: needinfo?(nsarkar)
Assignee | ||
Comment 36•11 years ago
|
||
Filed a new bug for additional tests - https://bugzilla.mozilla.org/show_bug.cgi?id=997890
Comment 37•11 years ago
|
||
Comment on attachment 8407320 [details]
pr.html
In that case, now that bug 997890 is open (and we hopefully won't forget about it), r+ to this one on the FTU part :)
Thanks Nivi for taking care of it
Attachment #8407320 -
Flags: review?(fernando.campo) → review+
Assignee | ||
Comment 38•11 years ago
|
||
No problem at all Fernando. Thanks for reviewing.
Nivi.
Assignee | ||
Comment 39•11 years ago
|
||
No problem at all Fernando. Thanks for reviewing.
Nivi.
Updated•11 years ago
|
Keywords: checkin-needed
Comment 40•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
status-b2g-v2.0:
--- → fixed
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 2.0 S1 (9may)
Updated•11 years ago
|
Flags: needinfo?(praghunath)
You need to log in
before you can comment on or make changes to this bug.
Description
•