Closed Bug 576489 Opened 14 years ago Closed 14 years ago

Refactor/unify data loading

Categories

(Tree Management Graveyard :: TBPL, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Swatinem, Assigned: Swatinem)

References

Details

Attachments

(5 files, 2 obsolete files)

No description provided.
Summary: Refactor → Refactor/unify data loading
Attached patch WIP Part1: unify datasources (obsolete) (deleted) — Splinter Review
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)
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 on attachment 455665 [details] [diff] [review] WIP Part1: unify datasources Looks good to me
Attachment #455665 - Flags: feedback?(mstange) → feedback+
Blocks: 544373
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)
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.
Attached patch Kill HgData and TinderboxData (obsolete) (deleted) — Splinter Review
Just removes the two classes, to aid with future refactorings.
Attachment #469477 - Flags: review?(mstange)
Attachment #469477 - Flags: review?(mstange) → review+
Attached patch Kill HgData and TinderboxData (deleted) — Splinter Review
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+
Attached patch refactor LogId handling (deleted) — Splinter Review
Attachment #471798 - Flags: review?(mstange)
Attachment #471804 - Flags: review?(mstange)
Attachment #471798 - Flags: review?(mstange) → review+
Attachment #471804 - Flags: review?(mstange) → review+
Attachment #474646 - Flags: review?(mstange)
Attachment #474646 - Flags: review?(mstange) → review+
This is basically done now.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: Webtools → Tree Management
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: