Closed Bug 1035279 Opened 10 years ago Closed 10 years ago

[Messages][Refactoring] Move error codes mapping from dialog.js to a separate file

Categories

(Firefox OS Graveyard :: Gaia::SMS, defect)

ARM
Gonk (Firefox OS)
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED
2.1 S1 (1aug)

People

(Reporter: azasypkin, Assigned: azasypkin)

References

Details

(Whiteboard: [sms-sprint-2.0S6][p=1])

Attachments

(1 file)

*** Follow-up from bug 990020 ***

We need to extract the error information into its own file + lazily fill error map object.
Hey Julien,

Could you please review this refactoring patch?

Thanks!
Attachment #8453021 - Flags: review?(felash)
Whiteboard: [not-part-of-initial-sprint]
Target Milestone: --- → 2.0 S6 (18july)
Comment on attachment 8453021 [details] [review]
GitHub pull request URL

I like this a lot more, but I still don't like the constant... What do you think of my string namespacing approach?
Attachment #8453021 - Flags: review?(felash)
Flags: needinfo?(felash)
Blocks: sms-sprint-2.1S1
No longer blocks: sms-sprint-2.0S6
Flags: needinfo?(felash)
Whiteboard: [not-part-of-initial-sprint] → [sms-sprint-2.0S6][p=1]
Target Milestone: 2.0 S6 (18july) → 2.1 S1 (1aug)
Flags: needinfo?(felash)
As discussed on IRC, we'll get rid of the enum until it proves useful.
Thanks !
Flags: needinfo?(felash)
Blocks: 944644
Comment on attachment 8453021 [details] [review]
GitHub pull request URL

(In reply to Julien Wajsberg [:julienw] from comment #3)
> As discussed on IRC, we'll get rid of the enum until it proves useful.
> Thanks !

Done in a separate commit, thanks!
Attachment #8453021 - Flags: review?(felash)
Comment on attachment 8453021 [details] [review]
GitHub pull request URL

r=me

I tried various error cases and it looks to work fine.
One nit for the jshint directive but that's all.

Thanks !
Attachment #8453021 - Flags: review?(felash) → review+
(In reply to Julien Wajsberg [:julienw] from comment #5)
> Comment on attachment 8453021 [details] [review]
> GitHub pull request URL
> 
> r=me
> 
> I tried various error cases and it looks to work fine.
> One nit for the jshint directive but that's all.
> 
> Thanks !

Fixed nit and landed, thanks!

Master: https://github.com/mozilla-b2g/gaia/commit/7198320c257340009a6d6d0e12e609058881d230
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: