Closed
Bug 1020406
Opened 12 years ago
Closed 12 years ago
Refactor database abstraction layer in Login
Categories
(Webmaker Graveyard :: Login, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: kate, Assigned: kate)
References
Details
(Whiteboard: [login][June13])
Attachments
(1 file)
Right now we only have access to a single model. Let's expose the model(s) directly so we have more flexibility
| Assignee | ||
Comment 1•12 years ago
|
||
So I took a crack at this, basically what I tried to do in this patch was:
* refactor /models to be /db, and initialize the DB separately from the model definitions
* expose an object containing User, which includes the controller methods
* consolidate the API in the user model/user controller files into a single API
Attachment #8434410 -
Flags: review?(jon)
Comment 2•12 years ago
|
||
Comment on attachment 8434410 [details]
https://github.com/mozilla/login.webmaker.org/pull/274/files
this looks like a pretty good set of changes overall. Some minor things to fix up noted in the PR.
I'm not sure of the timing of this landing vs the new functionality and I were working on. Lets discuss tomorrow, and see how we can reduce the pain
Attachment #8434410 -
Flags: review?(jon) → review-
| Assignee | ||
Updated•12 years ago
|
Attachment #8434410 -
Flags: review- → review?(jon)
Comment 3•12 years ago
|
||
Comment on attachment 8434410 [details]
https://github.com/mozilla/login.webmaker.org/pull/274/files
I think it'll be ready to land after this last set of changes. Can you also rebase on master? No conflicts fortunately, but master changed a lot today
Attachment #8434410 -
Flags: review?(jon) → review-
| Assignee | ||
Comment 4•12 years ago
|
||
Comment on attachment 8434410 [details]
https://github.com/mozilla/login.webmaker.org/pull/274/files
ok, last few things fixed up
Attachment #8434410 -
Flags: review- → review?(jon)
Comment 5•12 years ago
|
||
Comment on attachment 8434410 [details]
https://github.com/mozilla/login.webmaker.org/pull/274/files
noice. r+ with one nit noted in the PR
Attachment #8434410 -
Flags: review?(jon) → review+
Comment 6•12 years ago
|
||
Commit pushed to master at https://github.com/mozilla/login.webmaker.org
https://github.com/mozilla/login.webmaker.org/commit/36f594c9ed586bc335ed85beff04999b7e916583
Bug 1020406 - Refactor login to expose multiple models if needed
| Assignee | ||
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Whiteboard: [June13][login] → [login][June13]
You need to log in
before you can comment on or make changes to this bug.
Description
•