Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Bug 1042939 - Resurrect periodic sync, alarms refactor r=millermedeiros #25282

Merged
merged 1 commit into from Oct 21, 2014

Conversation

lambdabaa
Copy link
Contributor

No description provided.

@lambdabaa lambdabaa force-pushed the alarms-refactor branch 3 times, most recently from 5bb6a3b to af8724c Compare October 21, 2014 00:43
@try-server-hook
Copy link

gaye Gareth Aye (gaye) started tests. Results

@lambdabaa lambdabaa changed the title Resurrect periodic sync, alarms refactor r=millermedeiros Bug 1042939 - Resurrect periodic sync, alarms refactor r=millermedeiros Oct 21, 2014
this.errorController = new ErrorController(this);
notificationsController.app = this;
this.notificationsController = notificationsController;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since it's static I would not attach it to the app module.. we can simply require('controllers/notifications') when needed!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me!

// Find the event and busytime associated with this alarm.
return Promise.all([
findObjectById(alarm.eventId, eventStore, trans),
findObjectById(alarm.busytimeId, busytimeStore, trans)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we update the eventStore.get and busytimeStore.get to return a promise instead of creating an intermediary helper method?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think they do return promises... I think I thought findObjectById would help clean things up for other reasons

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe findObjectById is just unnecessary lol

@try-server-hook
Copy link

gaye Gareth Aye (gaye) started tests. Results


navigator.mozApps.getSelf().onsuccess = (event) => {
var app = event.target.result;
var url = message.imageURL.split('?')[1];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure we don't need to encode/decode the URL?

@try-server-hook
Copy link

gaye Gareth Aye (gaye) started tests. Results

@try-server-hook
Copy link

gaye Gareth Aye (gaye) started tests. Results

lambdabaa pushed a commit that referenced this pull request Oct 21, 2014
Bug 1042939 - Resurrect periodic sync, alarms refactor r=millermedeiros
@lambdabaa lambdabaa merged commit 3c90141 into mozilla-b2g:master Oct 21, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants