Closed Bug 1225038 Opened 9 years ago Closed 8 years ago

Remove obsolete functions from NotificationCollection

Categories

(Hello (Loop) :: Client, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Iteration:
47.2 - Feb 22

People

(Reporter: standard8, Assigned: malayaleecoder, Mentored)

References

Details

(Whiteboard: [tech-debt][lang=js][good first bug])

Attachments

(1 file)

From investigation, the following functions in NotificationCollection are obsolete and can be removed:

warn,warnL10,error,errorL10,success,successL10n

Although this leaves very little functionality for NotificationCollection (its basically just a backbone collection), we'll be changing how it works in a follow-up bug.
Note, I forgot to mention that the associated tests should also be removed.
Rank: 29
Blocks: 1225057
Assignee: pablo_lm1 → nobody
Mentor: standard8
Whiteboard: [tech-debt] → [tech-debt][lang=js][good first bug]
Note: Loop development is now in https://github.com/mozilla/loop there are readme and contributing documents in the repository.
Assignee: nobody → malayaleecoder
Status: NEW → ASSIGNED
Flags: needinfo?(standard8)
Attachment #8718046 - Flags: review?(standard8)
Comment on attachment 8718046 [details] [review]
[loop] malayaleecoder:Bug1225038 > mozilla:master

Looks good, please squash the commits and add ", r=Standard8" onto the end of the commit message.

Thank you for the work on this.
Flags: needinfo?(standard8)
Attachment #8718046 - Flags: review?(standard8) → review+
Hello Mark,

I have squashed the commits into the PR. Please have a look.
Do suggest me more bugs for fix in Loop :)
Flags: needinfo?(standard8)
Ok, something didn't go quite right with that push. What you need to do to get out it, I think is:

git checkout master
git pull upstream master
git checkout Bug1225038
git rebase -i master

When you do the rebase command, it'll ask you which commits you want to keep. Remove all the lines apart from the good one - 603032a, I think, then save the file and exit. That should get you just the good commit on the branch.

You then need to:

git push -f origin Bug1225038

which will overwrite the branch on your remote, and hopefully get down to just one commit.
Flags: needinfo?(standard8)
@Mark: Done, please check :)
Flags: needinfo?(standard8)
Much better

https://github.com/mozilla/loop/commit/7bb7eea0b2b2acd9760aa91033a5f01da25df607

Thank you for your work on this.

(In reply to malayaleecoder from comment #5)
> Do suggest me more bugs for fix in Loop :)

Bug 1225057 would be the next one in this series - I think its a bit more difficult, but if you do it split up into the patches suggested in the user story (they could be separate PRs or commits on the sam PR), I think it would be a good next step.
Status: ASSIGNED → RESOLVED
Iteration: --- → 47.2 - Feb 22
Closed: 8 years ago
Flags: needinfo?(standard8)
Resolution: --- → FIXED
Anytime:) I already started doing Bug 1225057. See you there!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: