five-for-the-future icon indicating copy to clipboard operation
five-for-the-future copied to clipboard

Update Usermeta with latest 5ftf contribution.

Open StevenDufresne opened this issue 3 years ago • 3 comments

We want to query for inactive accounts in #27 and #210. In order to do so we should:

  • [ ] Wait until #119 is decided, since that determines the criteria to use
  • [ ] Create safe list of activities that qualify as 5ftF contributions (activity in github.com/wordpress repos, posts/comments on Make blogs, WordCamp organizing, etc)
  • [ ] Add a "latest 5ftf contribution" meta field to usermeta. Update that with time() whenever a 5ftf contribution is added to their profile.
    • [ ] This should be centralized in wporg-profiles-activity-handler, rather than each individual notifier having to do it.
    • [ ] Don't update it for non-contribution activity, like opening posts on support forums (and commenting on posts they opened), committing to personal plugins/themes, etc.
  • [ ] Some things like GitHub activity wouldn't be covered by the Profiles handler, though, and would need do be updated separately.
    • [ ] document that in the centralized code, so future devs will know to update new sources that are added.

This would be more performant than having to query all their activity and filter it. It can also be used in https://github.com/WordPress/five-for-the-future/issues/129.

StevenDufresne avatar May 04 '22 05:05 StevenDufresne

@iandunn Is there anything that is blocking this?

StevenDufresne avatar May 11 '22 22:05 StevenDufresne

I don't think so. It might be a good thing to do early on so that it has been populated for a lot of folks by the time we start sending out emails.

iandunn avatar May 12 '22 17:05 iandunn

For translate.w.org, I'd guess that these projects would count as 5ftF:

  • Apps
  • bbPress
  • BuddyPress
  • GlotPress
  • Meta
  • WordPress

And these would be considered ecosystem contributions:

  • Patterns
  • Plugins
  • Themes

These would be ignored since they're not active

  • Waiting
  • Disabled Projects

It might be most simplest to setup a safelist for the 5ftf ones, and then have the rest be skipped by default.

iandunn avatar Jul 06 '22 16:07 iandunn

Mostly done in https://meta.trac.wordpress.org/changeset/13881 so closing.

pkevan avatar Jul 08 '24 15:07 pkevan