- When repeating an event, we were basing our knowledge of whether or not this event already had duplicates, on its parent's
id
but itsid
would change between versions. This resulted in infinite duplicates when committing an event with therepeat
property. This has been changed to check that its parent'sworkflowGuid
does not change across document versions.
Backwards compatibility break: project level code that fetches repeated events should now rely on workflowGuid
and workflowLocale
, not _id
. Therefore the major version number has been bumped. You will need to update it in package.json
. This will not be an issue for most projects other than bumping the version in package.json
.
- Although it caused no apparent issue, the pieces that were duplicated from an event of type
repeat
had its parent'shasClones
property set to true (since it was duplicated and unchanged after that). To make more sense in the pieces, the duplicates now have thenowClones
property set to false upon cloning.
An event can now be repeated (selecting recurring type) after editing it, not only after saving it for the first time.
Fixes an error that was occurring when trying to save a recurring event.
Improves help text and labeling on fields.
Updates the linter, removes an unused dependency, and sets up CircleCI.
The month
pieces filter now includes all months that events span, not only the months in which they begin.
upcoming
now takes end time into account.
Repeating events were incompatible with apostrophe-workflow
. This issue has been fixed.
Use of addFields
by modules extending apostrophe-events
now works as expected.
Added start
and and
cursor filters.
Added year
, month
and day
cursor filters, which are suitable for use with the piecesFilters
option.
Fixed a significant performance bug. The events widget was fetching every widget rather than just those with the appropriate IDs. The set of results was then being winnowed by the algorithm for handling many widgets with one query, but not before considerable resources were spent fetching areas for those events, etc.