Making WordPress.org

Opened 5 weeks ago

Last modified 9 hours ago

#3321 new enhancement

Remove active duplicates from Events API

Reported by: iandunn Owned by:
Milestone: Priority: low
Component: API Keywords:


This is related to #2720 and #3027, but distinct.

There are cases where a meetup organizer will accidentally create duplicate events, but not realize it, and leave all of them active (instead of deleting the duplicates so that there's only 1 total).

For example:

That has the effect of pushing all other upcoming events out of the Events Widget.

When the official-wordpress-events plugin pulls new events from the meetup.com API, though, we can detect if they have the same title and date as existing events, and just ignore them, instead of saving them.

The most efficient way to do this may be to add a unique key constraint over multiple columns, rather than trying to do something in code.

Change History (2)

This ticket was mentioned in Slack in #meta-wordcamp by iandunn. View the logs.

34 hours ago

#2 @iandunn
9 hours ago

This is closely related to #3027 and #2720, so I think we should take those into account when considering solutions. There may be an elegant solution which solves all of those cases; whereas coming up with 3 independent solutions could get messy.

Note: See TracTickets for help on using tickets.