| Summary: | git log gets 50 (page items) console errors when switching between remote and local | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Susan McCourt <susan> | ||||
| Component: | Git | Assignee: | Project Inbox <orion.git-inbox> | ||||
| Status: | RESOLVED WONTFIX | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | malgorzata.tomczyk, Szymon.Brandys | ||||
| Version: | 0.4 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Susan McCourt
I traced this a bit, enough to determine that there is definitely unnecessary rendering of commands going on. I commented out line 281 (navigator.updateCommands()) in git-log.js and the problem is corrected. AFAICT, initTitleBar is only called by loadResource. And loadResource will load/render a new commits list. So I don't think updating item level commands in initTitleBar (updating actions in the old commits list) makes sense. When debugging this, it seemed that when updateCommands was called, the navigator no longer had the GitCommitRenderer but instead had a default explorer renderer. So it didn't know what item level scope id to render, hence all the console errors. Maybe just removing the call to updateCommands is good enough, but I didn't trust that I understand the code enough. There may be more additional extra work going on that could be optimized.... Created attachment 212748 [details]
patch that comments out updateCommands
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see: https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see: https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html |