Making WordPress.org

Opened 3 months ago

Last modified 3 weeks 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 (4)

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

2 months ago

#2 @iandunn
2 months 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.

This ticket was mentioned in Slack in #meta by sippis. View the logs.

7 weeks ago

#4 @iandunn
3 weeks ago

This is mitigated by r6814, since cancelled events will not be shown any longer. Active duplicates are still shown, though.

Additionally, deleted events are still shown, see #3491.

Note: See TracTickets for help on using tickets.