Page MenuHomePhorge

make recurrence not dirty
ClosedPublic

Authored by knauss on Jun 5 2015, 2:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 18, 4:18 AM
Unknown Object (File)
Thu, Apr 4, 6:23 PM
Unknown Object (File)
Fri, Mar 29, 8:22 PM
Unknown Object (File)
Fri, Mar 29, 12:55 PM
Unknown Object (File)
Thu, Mar 28, 2:12 PM
Unknown Object (File)
Mar 27 2024, 4:30 AM
Unknown Object (File)
Mar 25 2024, 8:54 PM
Unknown Object (File)
Mar 24 2024, 3:34 AM
Subscribers
None

Details

Summary

Recurrences should not randomly marked as dirty, most of the work is done in kcalcore

Test Plan

Diff Detail

Repository
rKP kdepim
Branch
dev/invitations
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

knauss retitled this revision from to make recurrence not dirty.
knauss updated this object.
knauss edited the test plan for this revision. (Show Details)
knauss added a reviewer: mollekopf.

remove kDebug->kWarning change

mollekopf edited edge metadata.

As this requires rather extensive changes, and only seems to work for a single recurrence rule: Wouldn't it be easier to clone the incidence, do all the changes, compare to the cloned incidence to see if anything has changed, and reset the dirty flags as required?

This could either be implemented purely in the editor, or as part of the incidence using a Incidence::apply(Incidence) method, that would apply the changes from the given incidence, but would ensure the dirty flags are only changed if actually necessary.

incidenceeditor-ng/incidencerecurrence.cpp
286

Put into the local scope of every if as necessary.
That way it's obvious when it's empty and when it's not and that the list is always empty in the beginning.

294–295

Extract into static function and reuse below.

297–298

reuse function from above

316–322

reuse function from above

320–327

reuse function from above

This revision now requires changes to proceed.Jun 5 2015, 3:17 PM

This could either be implemented purely in the editor, or as part of the incidence using a Incidence::apply(Incidence) method, that would apply the changes from the given incidence, but would ensure the dirty flags are only changed if actually necessary.

Respectively just improve IncidenceBase::assign

knauss edited edge metadata.

make feature with less code.

knauss edited edge metadata.

remove kWarning

mollekopf edited edge metadata.
This revision is now accepted and ready to land.Jun 12 2015, 12:17 PM