Closed Bug 1039465 Opened 10 years ago Closed 10 years ago

[Contacts DataRefactor] Tweak global_contacts_data module and multi_contact

Categories

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

x86
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.1 S6 (10oct)

People

(Reporter: jmcf, Assigned: jmcf)

Details

Attachments

(1 file)

When dealing with performance test We discovered that there are some issues in global contacts and multi contact modules. We need to fix them.
Summary: Tweak global_contacts_data module and multi_contact → [Contacts DataRefactor] Tweak global_contacts_data module and multi_contact
Attached file 21872.html
Attachment #8457999 - Flags: review?(francisco)
I'm a bit overloaded, Sergi would you mind to take a look?
Attachment #8457999 - Flags: review?(francisco) → review?(sergi.mansilla)
Comment on attachment 8457999 [details]
21872.html

Reviewed. I wrote some suggestions and a couple of questions about the tests.
Attachment #8457999 - Flags: review?(sergi.mansilla)
Attachment #8457999 - Flags: review?(sergi.mansilla)
Target Milestone: --- → 2.1 S5 (26sep)
Sergi,

please could you have a look. The PR has been there for a long time

thanks!
Flags: needinfo?(sergi.mansilla)
I added some comments to the review, please assign to me again when it's ready, or let's discuss. Looks good so far!
Flags: needinfo?(sergi.mansilla)
Attachment #8457999 - Flags: review?(sergi.mansilla) → review-
Target Milestone: 2.1 S5 (26sep) → 2.1 S6 (10oct)
Comment on attachment 8457999 [details]
21872.html

Sergi, 

I have commented the comments you made. Please have a look 

thanks
Attachment #8457999 - Flags: review?(sergi.mansilla)
Hi Jose,

I agree with most comments. The only ones left to answer are:

https://github.com/mozilla-b2g/gaia/pull/21872/files#diff-0a65f7b5fa64c80d46a8f7fd40d8109cR627

Also, the question:
What is the difference of using the store variable in your code and using getDataStore()? They return the same object, right? In that case, only one of them should be used throughout the code.
Flags: needinfo?(jmcf)
(In reply to Sergi Mansilla [:sergi] (Telenor) from comment #7)
> Hi Jose,
> 
> I agree with most comments. The only ones left to answer are:
> 
> https://github.com/mozilla-b2g/gaia/pull/21872/files#diff-
> 0a65f7b5fa64c80d46a8f7fd40d8109cR627
> 

I've responded, thanks

> Also, the question:
> What is the difference of using the store variable in your code and using
> getDataStore()? They return the same object, right? In that case, only one
> of them should be used throughout the code.

we need to call it to ensure the datastore is properly initialized. fixing that thanks
Flags: needinfo?(jmcf)
(In reply to Jose Manuel Cantera from comment #8)
> (In reply to Sergi Mansilla [:sergi] (Telenor) from comment #7)
> > Hi Jose,
> > 
> > I agree with most comments. The only ones left to answer are:
> > 
> > https://github.com/mozilla-b2g/gaia/pull/21872/files#diff-
> > 0a65f7b5fa64c80d46a8f7fd40d8109cR627
> > 
> 
> I've responded, thanks
> 
> > Also, the question:
> > What is the difference of using the store variable in your code and using
> > getDataStore()? They return the same object, right? In that case, only one
> > of them should be used throughout the code.
> 
> we need to call it to ensure the datastore is properly initialized. fixing
> that thanks

Update: We need to call getDatastore when we cannot guarantee that the datastore had been obtained previously. however, there are code paths on which we know the datastore must be there, so in order to avoid complexity, we use the variable directly. 

I hope this clarifies
Comment on attachment 8457999 [details]
21872.html

Thanks Jose! r+
Attachment #8457999 - Flags: review?(sergi.mansilla) → review+
landed in master:

https://github.com/mozilla-b2g/gaia/commit/f163359d45b9279f119385d1386a6e9bd0647a47
Status: NEW → 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: