Add the option Recently Updated to Sort by-select list

Created on 18 October 2022, over 2 years ago
Updated 13 October 2023, over 1 year ago

Problem/Motivation

Aside of having the option to sort by Recently Created it might be handy to also provide the option to sort by Recently Updated. That option might become useful for a use case where you have several modules solving the same problem all created a long time ago. One of them has been updated recently while the others have not. That might provide a better indication about the development status than what the module maintainer has checked off on the module page.
Two caveats to keep in mind. First there are modules that haven’t had an official release in years but still function perfectly fine and solve the problem they were initially built for. Second adding a filter for recently updated modules might be an invitation to potentially game the system by publishing pointless releases every few weeks just for the sake of staying on top of the list.

For the record the issue was identified and initially discussed during #3312892: Drupal Usability Meeting 2022-10-07 . The issue has a link to the recording of the meeting. The attendees were @AaronMcHale, @benjifisher, @narendraR, @rkoller, @shaal, @simohell, @srishtiiee, @Utkarsh_33, and @worldlinemine.

Steps to reproduce

Proposed resolution

Add the option Recently Updated to the Sort by-select list

Remaining tasks

  • ✅ File an issue about this project
  • ☐ Manual Testing
  • ☐ Code Review
  • ☐ Accessibility Review
  • ☐ Automated tests needed/written?
Feature request
Status

Postponed: needs info

Version

1.0

Component

User experience

Created by

🇩🇪Germany rkoller Nürnberg, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States chrisfromredfin Portland, Maine
  • 🇦🇺Australia pameeela

    Based on the latest comments, this is blocked on not having the data about when a module was last updated.

    On the UX side, I am not sure. As a few have pointed out, the updated date is not necessarily useful. But there is already a sort for 'Newest', and I think recently updated is more useful than that. Perhaps once this becomes unblocked we could replace the Newest filter with this?

    (I tried to find where the 'Newest' sort was added to see if there was any discussion but I couldn't find it.)

  • 🇮🇳India narendraR Jaipur, India

    Hi @Chris, is this issue relevant now as we have JSONAPI endpoint in use or should we close this?

  • 🇮🇳India narendraR Jaipur, India
  • 🇺🇸United States chrisfromredfin Portland, Maine

    Still relevant in that we want to support it as a sort-order, but we need to get that data from the backend. I'm not sure if the recency of updated that people are looking for is the recency of updating the actual project page, though. So we don't want to use the node updated date of the module_project node.

    I think what we actually want is something like "date of last commit to the repo in any way" or "recent release." However, I'm also not sure if people want this from the perspective of wanting to find _NEW_ modules only, in which case it makes more sense to sort by the module_project node's _created_ date.

    I am going to punt this to the Site Builders Subcommittee for their next meeting and leave it postponed for now.

    I know @mandclu has opinions on this, also.

  • 🇺🇸United States leslieg

    Thanks @chrisfromredfin. That's an interesting question. I'll bring this up for discussion at next Tuesday's Sitebuilder Subcommittee meeting.

    My personal opinion is to use creation date of the project on drupal.org. Since the default filters are "Covered by Security Policy" and "Maintained", then the list of newest projects should eliminate projects that aren't ready for prime time yet. (Advanced filters would still allow this option if someone wanted to see all new projects.)

    I think using "last_updated" as the sort would always promote the largest modules as they are constantly updating their codebases. Maybe that isn't true all the time, however I don't think it's what people have asked for when using this sort.

    Will update here after we meet on Tuesday.

  • 🇺🇸United States drumm NY, US

    Is this sort order actually needed? What is the use case for it? Will many people use it?

  • 🇺🇸United States leslieg

    While we were doing discovery. this was added as a sort due to people asking - how do I find modules that were added recently so I can decide if there is something newer than what I am currently using. Not sure how many foks would actualy use it. Maybe we start with "sort by relevance" only and then re-address this option if folks start asking for it. Interested in @chrisfromredfin thoughts

  • 🇺🇸United States teknorah Mokena, IL, US

    What about instead of a drop down sort by option on the grid view, having a sortable updated field (by clicking on the column title) on the list view? This way, the special use case would be covered, but maybe less confusing in the sort by options?

Production build 0.71.5 2024