Closed
Bug 576489
Opened 14 years ago
Closed 14 years ago
Refactor/unify data loading
Categories
(Tree Management Graveyard :: TBPL, defect)
Tree Management Graveyard
TBPL
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Swatinem, Assigned: Swatinem)
References
Details
Attachments
(5 files, 2 obsolete files)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Swatinem
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
mstange
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
mstange
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
mstange
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Updated•14 years ago
|
Blocks: 566870, tbpl-server
Summary: Refactor → Refactor/unify data loading
Assignee | ||
Comment 1•14 years ago
|
||
WIP patch, not for review yet, just want to get some early feedback :)
The patch moves HgData, TinderboxData and Data into DatasourceClassic that treats both datasources as one unit.
It also refactors how the pushes list is generated, which means that it adds more pushes when the history button is pressed instead of replacing the whole list.
TODO items:
- implement error handling
- make updates work, they currently dont
- save the results in the datasource, currently only the results loaded last are kept alive, so refreshing the whole list when switching time zones only loads half the results
- both items above depend on merging newly loaded results, so that the UI can be refreshed based on changed items
The patch uses only tinderbox showbuilds.cgi which is slower than the current method, however it uses smaller deltas for history and updates once I implement them so the effects should be positive overall.
This also means that loading tinderbox fails more frequently, which results in the whole page being unusable, as both datasources need to succeed in order for it to work.
Attachment #455665 -
Flags: feedback?(mstange)
Attachment #455665 -
Flags: feedback?(ehsan)
Assignee | ||
Comment 2•14 years ago
|
||
I also plan to do 2/3 more patches:
- support for multi-branch trees
- unify details/summary loading, this may not work that well with the currently very slow tinderbox based summary parser. The plan would be to pre-parse the summaries on the server once we have a real server-based datasource.
- implement “history as you scroll” and removing the loading indicators, again this makes absolutely no sense with the current datasource and is merely a preparation for when we have a fast non-failing server.
Comment 3•14 years ago
|
||
Comment on attachment 455665 [details] [diff] [review]
WIP Part1: unify datasources
Looks good to me
Attachment #455665 -
Flags: feedback?(mstange) → feedback+
Assignee | ||
Comment 4•14 years ago
|
||
Just uploading my current work after the summit since I may not have the ability to work on it before I get home.
Attachment #455665 -
Attachment is obsolete: true
Attachment #455665 -
Flags: feedback?(ehsan)
Comment 5•14 years ago
|
||
FWIW, the WIP patch looks good to me as well, but I'm not very familiar with all of the code which this patch is changing.
Assignee | ||
Comment 6•14 years ago
|
||
Just removes the two classes, to aid with future refactorings.
Attachment #469477 -
Flags: review?(mstange)
Updated•14 years ago
|
Attachment #469477 -
Flags: review?(mstange) → review+
Assignee | ||
Comment 7•14 years ago
|
||
My patch writing skills have failed again, missed to write the right url in the commit message replace.
Attachment #469477 -
Attachment is obsolete: true
Attachment #469521 -
Flags: review+
Assignee | ||
Comment 8•14 years ago
|
||
http://hg.mozilla.org/users/mstange_themasta.com/tinderboxpushlog/rev/7ac0e5b82192
Kill HgData and TinderboxData
Assignee | ||
Comment 9•14 years ago
|
||
Attachment #471798 -
Flags: review?(mstange)
Assignee | ||
Comment 10•14 years ago
|
||
Attachment #471804 -
Flags: review?(mstange)
Updated•14 years ago
|
Attachment #471798 -
Flags: review?(mstange) → review+
Updated•14 years ago
|
Attachment #471804 -
Flags: review?(mstange) → review+
Assignee | ||
Comment 11•14 years ago
|
||
Assignee | ||
Comment 12•14 years ago
|
||
Attachment #474646 -
Flags: review?(mstange)
Updated•14 years ago
|
Attachment #474646 -
Flags: review?(mstange) → review+
Assignee | ||
Comment 13•14 years ago
|
||
show loading 0% when reloading and using history: http://hg.mozilla.org/users/mstange_themasta.com/tinderboxpushlog/rev/cfaf4671cf12
Assignee | ||
Comment 14•14 years ago
|
||
This is basically done now.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: Webtools → Tree Management
Updated•10 years ago
|
Product: Tree Management → Tree Management Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•