After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 767400 - Unclarity whether "When" search filter means "around that date" or "up to that date"
Unclarity whether "When" search filter means "around that date" or "up to tha...
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: File Search Interface
3.20.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-06-08 15:12 UTC by Bastian Ilsø
Modified: 2016-11-03 11:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
the two labels "When" and "4 weeks ago" leads to a misinterpretation in the range. (3.91 KB, image/png)
2016-06-08 15:12 UTC, Bastian Ilsø
  Details
Apply time search filter to a search (1.42 KB, patch)
2016-10-04 17:32 UTC, Neha Yadav
none Details | Review
Apply time search filter to a search (1.16 KB, patch)
2016-10-04 19:43 UTC, Neha Yadav
none Details | Review
Apply time search filter to a search (1.39 KB, patch)
2016-10-04 21:04 UTC, Neha Yadav
none Details | Review
Apply time search filter to a search (1.73 KB, patch)
2016-10-05 11:02 UTC, Neha Yadav
reviewed Details | Review
ui-utilities: Apply time search filter to a search (1.75 KB, patch)
2016-10-05 14:05 UTC, Neha Yadav
reviewed Details | Review
ui-utilities: clarify search popover dates (1.74 KB, patch)
2016-10-05 14:52 UTC, Neha Yadav
needs-work Details | Review
ui-utilities: clarify date label (5.40 KB, patch)
2016-11-02 16:59 UTC, Monica Baluna
none Details | Review
ui-utilities: clarify date label (5.52 KB, patch)
2016-11-02 17:16 UTC, Monica Baluna
none Details | Review
ui-utilities: clarify date label (5.45 KB, patch)
2016-11-02 17:56 UTC, Monica Baluna
none Details | Review
ui-utilities: clarify date label (5.48 KB, patch)
2016-11-02 18:00 UTC, Monica Baluna
none Details | Review
ui-utilities: clarify date label (5.51 KB, patch)
2016-11-02 18:02 UTC, Monica Baluna
committed Details | Review

Description Bastian Ilsø 2016-06-08 15:12:11 UTC
Created attachment 329395 [details]
the two labels "When" and "4 weeks ago" leads to a misinterpretation in the range.

This is related to applying the time search filter to a search.

In the attached screenshot I read "When? 4 weeks ago" while in fact, what is meant is "When? Since 4 weeks ago". It would be nice if the label "4 weeks ago" was modified to include "Since".
Comment 1 Neha Yadav 2016-10-04 17:32:42 UTC
Created attachment 336936 [details] [review]
Apply time search filter to a search
Comment 2 Carlos Soriano 2016-10-04 19:35:41 UTC
Review of attachment 336936 [details] [review]:

Hey Neha, thanks for the patch!

The strings are wrong though:

::: src/nautilus-ui-utilities.c
@@ +402,3 @@
     {
         /* weeks */
+        return ngettext ("Since Last week", "Since %d weeks ago", days / 7);

you have typos here, you do "Since Last"... which is two caps. It should be just the first character of the sentence.
Same for all the other cases.
Comment 3 Neha Yadav 2016-10-04 19:43:44 UTC
Created attachment 336947 [details] [review]
Apply time search filter to a search

Updated all the changes
Comment 4 Carlos Soriano 2016-10-04 20:12:55 UTC
Review of attachment 336947 [details] [review]:

This patch is a patch above the other patch. This is not how we work, but rather making one single good patch.

Look at https://wiki.gnome.org/Newcomers/CodeContributionWorkflow#Follow_Up_on_the_Feedback
Comment 5 Neha Yadav 2016-10-04 21:04:09 UTC
Created attachment 336955 [details] [review]
Apply time search filter to a search

Label is modified by including "Since"
Comment 6 Carlos Soriano 2016-10-05 09:33:51 UTC
Review of attachment 336955 [details] [review]:

The code looks good now! Thanks!

However the commit message it's not correct. Read https://wiki.gnome.org/Newcomers/CodeContributionWorkflow#Commit_guidelines to know how to write a correct commit message.
Comment 7 Neha Yadav 2016-10-05 11:02:01 UTC
Created attachment 336976 [details] [review]
Apply time search filter to a search

In commit we changed the label by simply adding "Since"

The problem is that in search filter there is a misinterpretation
because of two different label that is "When" and "4 weeks ago".
Which is not clear for user that whether "When" represent to
"around that date" or "up to that date".

To fix this issue we simply add "Since" before time period inside
file nautilus-ui-utilities.
Comment 8 Carlos Soriano 2016-10-05 13:44:44 UTC
Review of attachment 336976 [details] [review]:

The commit message title is missing the file you are touching. Also the title is slightly confusing. How about:
"ui-utilities: clarify search popover dates"
Comment 9 Neha Yadav 2016-10-05 14:05:30 UTC
Created attachment 336986 [details] [review]
ui-utilities: Apply time search filter to a search

In commit we changed the label by simply adding "Since"

The problem is that in search filter there is a misinterpretation
because of two different label that is "When" and "4 weeks ago".
Which is not clear for user that whether "When" represent to
"around that date" or "up to that date".

To fix this issue we simply add "Since" before time period inside
file nautilus-ui-utilities.
Comment 10 Carlos Soriano 2016-10-05 14:29:30 UTC
Review of attachment 336986 [details] [review]:

As pointed out before, the title of the commit message is not clear enough.
I proposed "ui-utilities: clarify search popover dates", but you can come with something different and we can discuss it if you want.
Comment 11 Neha Yadav 2016-10-05 14:52:06 UTC
Created attachment 336990 [details] [review]
ui-utilities: clarify search popover dates

In commit we changed the label by simply adding "Since"

The problem is that in search filter there is a misinterpretation
because of two different label that is "When" and "4 weeks ago".
Which is not clear for user that whether "When" represent to
"around that date" or "up to that date".

To fix this issue we simply add "Since" before time period inside
file nautilus-ui-utilities.
Comment 12 Carlos Soriano 2016-10-05 16:13:25 UTC
Review of attachment 336990 [details] [review]:

I just realized this puts the "Since" also in the list box when selecting a date range...
Instead it should be only in the resulting label, because if not it's too noisy and repeats the "since" label of the tittle.
For that you will need to add some boolean to get_text_for_date_range to indicate you want the "since" word too, and also add this boolean to get_text_for_days_ago for the same purpose.

Sorry I didn't notice this before.
Comment 13 Monica Baluna 2016-11-02 16:59:56 UTC
Created attachment 338966 [details] [review]
ui-utilities: clarify date label

Date label does not point out that nautilus searches for files created after
that date. In order to fix this, prepend "Since" to the date label.
Comment 14 Monica Baluna 2016-11-02 17:16:27 UTC
Created attachment 338972 [details] [review]
ui-utilities: clarify date label

Date label does not point out that nautilus searches for files created after
that date. In order to fix this, prepend "Since" to the date label.
Comment 15 Monica Baluna 2016-11-02 17:56:19 UTC
Created attachment 338982 [details] [review]
ui-utilities: clarify date label

Date label does not point out that nautilus searches for files modified or used
after that date. In order to fix this, prepend "Since" to the date label.
Comment 16 Monica Baluna 2016-11-02 18:00:32 UTC
Created attachment 338983 [details] [review]
ui-utilities: clarify date label

Date label does not point out that nautilus searches for files modified or used
after that date. In order to fix this, prepend "Since" to the date label.
Comment 17 Monica Baluna 2016-11-02 18:02:46 UTC
Created attachment 338984 [details] [review]
ui-utilities: clarify date label

Date label does not point out that nautilus searches for files modified or used
after that date. In order to fix this, prepend "Since" to the date label.
Comment 18 Ernestas Kulik 2016-11-02 19:56:53 UTC
Review of attachment 338984 [details] [review]:

LGTM, thanks!
Comment 19 Carlos Soriano 2016-11-02 20:00:42 UTC
Review of attachment 338984 [details] [review]:

Looks good, thanks!!
Comment 20 Ernestas Kulik 2016-11-03 11:18:48 UTC
Attachment 338984 [details] pushed as 01476a1 - ui-utilities: clarify date label