Closed
Bug 394353
Opened 17 years ago
Closed 14 years ago
Tag list is not updated when manually adding, renaming, or deleting tags from within the tags field
Categories
(Firefox :: Bookmarks & History, defect, P4)
Firefox
Bookmarks & History
Tracking
()
RESOLVED
FIXED
Firefox 4.0b11
People
(Reporter: abillings, Assigned: mak)
References
Details
Attachments
(2 files, 3 obsolete files)
5.39 KB,
patch
|
dietrich
:
review+
dietrich
:
approval2.0+
|
Details | Diff | Splinter Review |
19.17 KB,
patch
|
dietrich
:
review+
neil
:
feedback+
dietrich
:
approval2.0+
|
Details | Diff | Splinter Review |
In the new dialog for adding a bookmark, there is a text box to type in tags. This has an expansion arrow next to it that shows the tags that are available (having already been used for other bookmarks).
Whether this section with tags is displayed or not is a sticky session. Once the user opens it, it will be open whenever the "Add Bookmark" dialog is brought up. If it is closed, it will stay closed.
I found that if it is expanded and a *new* tag is added to a bookmark, the new tag will not be added to the list of available tags immediately. If the user is on the page where the new tag was added and invokes the "Add Bookmark" dialog, they will see their new tag in the textbox for tags but not the list of available tags.
If the expansion arrow next to the tags text box is selected to close the tag list and then selected again to reopen it, the new tag will *then* appear in the list. This happens even if you are bookmarking a different page. Any added tags do not appear in the list of available tags, at least in that session, until the list is collapsed and re-expanded.
Steps to Reproduce
1. Navigate to a new page.
2. Select control/command-d to add the page to bookmarks.
3. Select the button next to the "tags" textbox to expand the tags list.
4. Type in the tag, '1234', into the tag textbox.
5. Select the "Done" button to close the dialog.
6. Navigate to a different page.
7. Select control/command-d to add the page to bookmarks.
8. Look at the tags list (the list will be expanded). '1234' will not be in the list of available tags.
9. Select the button next to the "tags" textbox twise, to collapse and expand the tags list.
Result: '1234' will now appear in the list of tags when it wasn't there before.
Comment 1•17 years ago
|
||
we need a full battery of new tests in litmus to cover this UI
Flags: in-litmus?
Updated•17 years ago
|
Assignee: nobody → mano
Comment 2•17 years ago
|
||
Requesting blocking. This bug is pretty obvious if you use tags a lot.
Flags: blocking-firefox3?
Target Milestone: --- → Firefox 3 M10
I was just about to file a similar bug - specifically for the same behaviour in 'Places Organizer', but was pointed to this Bug by someone on IRC. Testing Places (3.0a9pre) for the first time, I'd imported my old bookmarks and was in the process of tagging them in the 'Places Organizer', and after clicking the Tag list 'roll down arrow' noticed that the now-exposed Tags list was not refreshing when I clicked on a different bookmark. It only refreshes the list if I 'roll up' the Tags list and then roll it down again.
This should be 'BLOCKING', IMHO - as it severely affects the usability of Places.
Update: lol -- Dietrich beat me to it while i was typing this!
Updated•17 years ago
|
Flags: blocking-firefox3? → blocking-firefox3+
Comment 4•17 years ago
|
||
I can reproduce with the 2007-10-07-04 nightly but I can't reproduce with a current trunk build. At step 8 the tag list is not expanded.
WORKFORME?
Comment 5•17 years ago
|
||
I'm seeing what Florian sees, but I remember seeing what Al saw.
We appear to now be resetting the state of the twisties in the edit bookmark popup.
Also confirming what Florian & Seth observe here on XP with 2007110605 build, which I assume is the intended behaviour (unless of course it's meant to remember the open/close status of the Tags List, which might be nice). However, to restate what I was talking about before, try this:
Steps to Reproduce:
1. Open 'Places Organizer'
2. In the upper-right pane, scroll down until you come to some bookmarks without any Tags. Select one of them.
3. Click the 'expand Tags' down arrow to expand the Tags list.
3. Give the item a Tag such as 'xyz'.
4. Now click on any other bookmark. Observe that 'xyz' is not present in the list of available Tags. Click a few other bookmarks just to confirm -- 'xyz' still won't appear.
5. Now close the Tags list by clicking the Tags 'up' arrow (it now changes to a 'down' arrow).
6. Click the 'down' arrow.
7. Observe that 'xyz' is now present in the list.
Expected Result:
- The Tags list should refresh automatically when a different bookmark item is selected; no Tags list up-&-down arrow clicking should be required.
***Related Symptoms***
- As the Tags List is not currently updating as long as it remains open, still in Places Organizer:
1. If, with the Tags List hidden, a bookmarked item with no Tag assigned to it is selected, and then the Tags List is opened, clicking on other previously-Tagged bookmarked appears to show that NO Tags have been assigned to any (ie: the checkboxes remain empty for all).
2. Similarly, if the Tags List is expanded when a bookmark item with Tags already assigned to it is selected, it appears that ALL following-clicked bookmark items have picked up that original item's Tags (ie: the checkboxes that were checked for it remain checked for every bookmark item).
Updated•17 years ago
|
Target Milestone: Firefox 3 M10 → Firefox 3 Mx
Updated•17 years ago
|
Target Milestone: Firefox 3 Mx → Firefox 3 M11
Comment 7•17 years ago
|
||
So what's the expected behavior here?
When the tag list is expended and the user selects another bookmark, should the tag list get collapsed while the info of the newly selected bookmark is displayed or should the tag selector stay expended and it's content be updated?
Keywords: uiwanted
Updated•17 years ago
|
Priority: -- → P3
Reporter | ||
Comment 8•17 years ago
|
||
Any chance on this getting fixed soon?
Florian, I would think that the contents would update.
Comment 9•17 years ago
|
||
I agree. The tag list should stay open when selecting a new bookmark. Another behavior will confuse and especially bother the user to re-open the list each time.
But the question still remains. When the tag list should be updated? Should we listen to each keypress event or should it be done when the user hits return or leaves the input field?
Updated•17 years ago
|
Target Milestone: Firefox 3 beta3 → ---
Updated•17 years ago
|
Priority: P3 → P4
Comment 10•17 years ago
|
||
Just tried to reproduce this bug, and was unable to. The tags list in the "add bookmark" start popup isn't state-remembering, thus the list is always closed when adding a new bookmark. This is also un-reproducible in the bookmarks library. Should we close as WFM?
Comment 11•17 years ago
|
||
I can confirm the reported problems in Comment #0 and Comment #6 are now not present. Rather than "WFM" should it not be "FIXED, VERIFIED"?
Comment 12•17 years ago
|
||
A part of this issue is still visible but I don't know if it is still covered by another bug. I cannot find a similar one. Just do following:
1. Open the Library and expand the Tag folder
2. Open edit dialog of a bookmark
3. Expanding the tag list
4. Add some tags in the tag text field
5. Hit tab key
As you see now the list of tags within the Library is updated but the tag list inside the edit bookmark dialog doesn't show this newly added tags. It should also be updated when leaving the tag text field.
Comment 13•17 years ago
|
||
What you are saying is true, but you don't have to close the tags list and reopen it in order for it to update. All you have to do is click on another bookmark, and then click on the one you edited again. But I agree, this is a bug. Maybe we should change the title here accordingly then, or start a new one all together (seems more appropriate).
Comment 14•17 years ago
|
||
One-liner.... Hopefully approved!
Comment 15•17 years ago
|
||
This is going to be real tricky. Asaf has pointed my attention to some scenarios where my patch will simply be inaffective. For example, if the library is open and showing a specific bookmark and its tags, while that same bookmark is changed through the browser window... Anyway, I am canceling the review request and rewriting this.
Updated•17 years ago
|
Attachment #308002 -
Flags: review?(mano)
Comment 16•17 years ago
|
||
(In reply to comment #15)
> scenarios where my patch will simply be inaffective. For example, if the
> library is open and showing a specific bookmark and its tags, while that same
> bookmark is changed through the browser window... Anyway, I am canceling the
The only problem I can see with this example is that the bookmark properties are getting closed when leaving the tags field within the browser window. I think that this shouldn't happen. Asaf, is there already a bug about this issue?
Comment 17•17 years ago
|
||
Not blocking on this bug for final ship. Would take a safe enough patch if one comes through.
Flags: wanted-firefox3+
Flags: blocking-firefox3-
Flags: blocking-firefox3+
Assignee | ||
Comment 18•16 years ago
|
||
the behavior is already well defined, the field should update in every situation where tags for the edited item change, so on tagsField blur but also when the bookmark gets a new tag while it is being edited.
Keywords: uiwanted
Comment 19•16 years ago
|
||
Test case https://litmus.mozilla.org/show_test.cgi?id=5122 has been updated on the 3.0 test run for regression testing.
Flags: in-litmus? → in-litmus+
Comment 20•16 years ago
|
||
Huh, looks like this bug was getting forgotten. Marco, Dietrich, any chance to get this fixed for FF3.1? If this one-line patch will help it would be fantastic.
Aakash, this bug is not fixed yet. Means the Litmus test should be disabled. Further please see comment 0 for detailed steps. Your test isn't correct. It misses major parts (step 3 and step 9). Even please try to focus on already fixed bugs. It will save you from adding not needed tests for now. Thanks.
Flags: wanted-firefox3.1?
Flags: in-litmus?
Flags: in-litmus+
Comment 21•16 years ago
|
||
Ah, Whoops! Thanks for catching that, Henrik. I've reverted the test case back to its original form and have created a new disabled test case here. The new test case is located here: https://litmus.mozilla.org/show_test.cgi?id=7486
Comment 22•16 years ago
|
||
Michael, are you still wanna work on this bug?
Updated•16 years ago
|
Flags: wanted-firefox3.5? → wanted-firefox3.5+
Comment 24•16 years ago
|
||
No response from assignee. Lets assign it to default. Further I run into this issue several times while doing the FFT's on XP.
Assignee: dev → nobody
Status: ASSIGNED → NEW
Updated•16 years ago
|
Summary: When adding bookmarks, new tags don't appear in available tags until tag list is collapsed and expanded → Tag list is not updated when manually adding, renaming, or deleting tags from within the tags field
Updated•15 years ago
|
Flags: wanted-firefox3.5+ → wanted-firefox3.6+
Comment 25•15 years ago
|
||
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h".
In Thunderbird 3.0b, you do that as follows:
Tools | Message Filters
Make sure the correct account is selected. Click "New"
Conditions: Body contains places-to-b-and-h
Change the action to "Delete Message".
Select "Manually Run" from the dropdown at the top.
Click OK.
Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter.
Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
Assignee | ||
Updated•14 years ago
|
Attachment #308002 -
Attachment is obsolete: true
Assignee | ||
Comment 27•14 years ago
|
||
Attachment #504445 -
Flags: review?(dietrich)
Updated•14 years ago
|
Attachment #504445 -
Flags: review?(dietrich) → review+
Updated•14 years ago
|
Attachment #504445 -
Flags: approval2.0+
Assignee | ||
Comment 28•14 years ago
|
||
Flags: in-testsuite+
Flags: in-litmus?
Flags: in-litmus-
Whiteboard: [fixed-in-places]
Comment 29•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 4.0b10
Assignee | ||
Comment 30•14 years ago
|
||
Reopening because I missed some of the cases (Thus this can't be verified) and the fix can use a better observer
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Updated•14 years ago
|
Whiteboard: [fixed-in-places]
Assignee | ||
Comment 31•14 years ago
|
||
This i why I hate tests, just writing a test with more cases found 3 or 4 small bugs related to this simple bug.
afaict this should cover all the testcases reported in this bug, and the chrome test is good enough to ensure them.
Attachment #506743 -
Flags: review?(dietrich)
Attachment #506743 -
Flags: approval2.0?
Comment 32•14 years ago
|
||
Comment on attachment 506743 [details] [diff] [review]
part 2: more tests and fixes
> _getCommonTags: function(aArrIndex) {
s/aArrIndex//
also, please add a comment explaining what this function does. i had to poke around to remember what it does, since the name is ambiguous.
> onItemChanged: function EIO_onItemChanged(aItemId, aProperty,
> aIsAnnotationProperty, aValue,
> aLastModified, aItemType) {
>+ if (aProperty == "tags") {
>+ // Tags case is special, since they should be updated if either:
>+ // - the notification is for the edited bookmark
>+ // - the notification is for the edited history entry
>+ // - the notification is for one of edited uris
>+ let shouldUpdateTagsField = this._itemId == aItemId;
>+ if (this._itemId == -1 || this._multiEdit) {
>+ // Check if the changed uri is part of the modified ones.
>+ let changedURI = PlacesUtils.bookmarks.getBookmarkURI(aItemId);
>+ let uris = this._multiEdit ? this._uris : [this._uri];
>+ if (uris.some(function (aURI) aURI.spec == changedURI.spec)) {
>+ shouldUpdateTagsField = true;
>+ }
>+ }
>+
>+ if (shouldUpdateTagsField) {
>+ if (this._multiEdit) {
>+ this._tags = this._uris.map(function (aURI) PlacesUtils.tagging.getTagsForURI(aURI));
what if i select all in my unsorted folder? seems like an easy way to block the UI. we don't need to address this now if it's no worse than whatever happens currently in that situation, only if it makes things worse.
r=me, but leaving a? until confirmed that the above change doesn't cause a new hang, or measurably more hang.
Attachment #506743 -
Flags: review?(dietrich) → review+
Assignee | ||
Comment 33•14 years ago
|
||
good point, this version will update tags only for uris touched by the notification, thus reducing reads for a lot of entries, I still have to walk the full array of entries, but this does not involve any read.
Attachment #506743 -
Attachment is obsolete: true
Attachment #506821 -
Flags: review?(dietrich)
Attachment #506821 -
Flags: feedback?(neil)
Attachment #506821 -
Flags: approval2.0?
Attachment #506743 -
Flags: approval2.0?
Assignee | ||
Comment 34•14 years ago
|
||
bah I keep attaching old version of the patches :\ sorry
Attachment #506821 -
Attachment is obsolete: true
Attachment #506822 -
Flags: review?(dietrich)
Attachment #506822 -
Flags: feedback?(neil)
Attachment #506822 -
Flags: approval2.0?
Attachment #506821 -
Flags: review?(dietrich)
Attachment #506821 -
Flags: feedback?(neil)
Attachment #506821 -
Flags: approval2.0?
Comment 35•14 years ago
|
||
Comment on attachment 506822 [details] [diff] [review]
part 2: more tests and fixes (v1.1)
[Checked in: Comment 36]
Seems reasonable to me.
Attachment #506822 -
Flags: feedback?(neil) → feedback+
Updated•14 years ago
|
Attachment #506822 -
Flags: review?(dietrich)
Attachment #506822 -
Flags: review+
Attachment #506822 -
Flags: approval2.0?
Attachment #506822 -
Flags: approval2.0+
Assignee | ||
Updated•14 years ago
|
Attachment #504445 -
Attachment description: patch v1.0 → patch v1.0 (checked-in)
Assignee | ||
Comment 36•14 years ago
|
||
Comment on attachment 506822 [details] [diff] [review]
part 2: more tests and fixes (v1.1)
[Checked in: Comment 36]
http://hg.mozilla.org/mozilla-central/rev/e31e67a25d54
Attachment #506822 -
Attachment description: part 2: more tests and fixes (v1.1) → part 2: more tests and fixes (v1.1) (checked-in)
Assignee | ||
Updated•14 years ago
|
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
Target Milestone: Firefox 4.0b10 → Firefox 4.0b11
Updated•14 years ago
|
Attachment #504445 -
Attachment description: patch v1.0 (checked-in) → patch v1.0
[Checked in: Comment 28 & 29]
Updated•14 years ago
|
Attachment #506822 -
Attachment description: part 2: more tests and fixes (v1.1) (checked-in) → part 2: more tests and fixes (v1.1)
[Checked in: Comment 36]
You need to log in
before you can comment on or make changes to this bug.
Description
•