Bug 742767 - [webadmin] Bookmarks implementation
Summary: [webadmin] Bookmarks implementation
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-webadmin
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Vojtech Szocs
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-02 17:12 UTC by Asaf Shakarchi
Modified: 2012-08-09 08:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-09 08:06:18 UTC
oVirt Team: ---


Attachments (Terms of Use)

Description Asaf Shakarchi 2011-10-02 17:12:16 UTC
- List bookmarks on the left side panel
- Bookmarks dialog based view for adding new bookmarks

Comment 1 Vojtech Szocs 2011-10-03 13:50:08 UTC
> List bookmarks on the left side panel
Done and pushed, git commit hash 15451477719241e72fe10e1fafb7cb93e63938c2

Comment 2 Vojtech Szocs 2011-10-03 14:53:29 UTC
> Bookmarks dialog based view for adding new bookmarks
Done, New/Edit bookmark dialog, sending patch

Comment 3 Vojtech Szocs 2011-10-05 12:51:27 UTC
New/Edit bookmark dialog pushed, git commit hash 9e59fd7e8f795c29ca28b18c0b89e749483a282e

Comment 4 Asaf Shakarchi 2011-10-10 00:59:21 UTC
Extending the scope of this BZ to the Bookmark action toolbar on the left pane as well.

Comment 5 Vojtech Szocs 2011-10-24 13:50:43 UTC
Bookmark toolbar finished, action buttons bound to corresponding BookmarkListModel commands.

There is still one issue with bookmarks:

Assume user saves bookmark for search string "Host: name = dev-01". When user clicks this bookmark, following happens:
1) CommonModel.BookmarkListModel_Navigated() sets the search string according to bookmark value ("Host: name = dev-01"), search panel UI is updated
2) CommonModel.TagListModel_SelectedItemsChanged() resets the search string to "Host:", removing extra criteria, search panel UI is updated

Need to investigate why 2) happens.

Comment 6 Vojtech Szocs 2011-10-24 14:15:35 UTC
In CommonModel.BookmarkListModel_Navigated() method, getTagList().getResetCommand().Execute() causes TagListModel.Reset() -> TagListModel.SyncSearch(), which executes asynchronously after BookmarkListModel_Navigated() does its job.

Therefore, TagListModel.Reset() causes the search string to be "resetted" to the default value for the given main tab, e.g. "Hosts:".

Comment 7 Vojtech Szocs 2011-10-25 08:37:59 UTC
CommonModel.TagListModel_SelectedItemsChanged() patched, needs review from Gilad. Pinning a tag must deselect tree selection, otherwise CommonModel.SplitSearchString() will calculate wrong search/prefix strings when unpinning a tag.

Comment 8 Vojtech Szocs 2011-10-25 09:41:36 UTC
In C# SystemTreeModel.ResetRequestedEvent is handled in a custom way, need to adapt that logic in webadmin.

Comment 10 Itamar Heim 2012-08-09 08:06:18 UTC
closing ON_QA bugs as oVirt 3.1 was released:
http://www.ovirt.org/get-ovirt/


Note You need to log in before you can comment on or make changes to this bug.