Merge lp://staging/~renatofilho/ubuntu-ui-toolkit/limit-alarms-fetch into lp://staging/ubuntu-ui-toolkit

Proposed by Renato Araujo Oliveira Filho
Status: Merged
Merged at revision: 948
Proposed branch: lp://staging/~renatofilho/ubuntu-ui-toolkit/limit-alarms-fetch
Merge into: lp://staging/ubuntu-ui-toolkit
Diff against target: 36 lines (+14/-1)
2 files modified
modules/Ubuntu/Components/plugin/adapters/alarmsadapter_organizer.cpp (+13/-0)
tests/unit/tst_alarms/tst_alarms.cpp (+1/-1)
To merge this branch: bzr merge lp://staging/~renatofilho/ubuntu-ui-toolkit/limit-alarms-fetch
Reviewer Review Type Date Requested Status
Zsombor Egri Approve
PS Jenkins bot continuous-integration Approve
Nicholas Skaggs (community) Approve
Review via email: mp+207629@code.staging.launchpad.net

Commit message

[alarms] Filter only alarms of the current week.

Description of the change

This is necessary because query for events without a valid date interval will return all events on the database, including the recurrence ones.
Ex. A alarm that recurs every day, will be returned infinite times.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Zsombor Egri (zsombi) wrote :

Shouldn't we filter 1 full week ahead? The order the alarms should be collected is having the next upcoming event as the first one in the list..

Please make a FIXME note that this is a temporary workaround until we get a proper performant fetching for all occurrences.

review: Needs Fixing
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Tested on clock and calendar, tests now pass properly without EDS warnings/crashes.

review: Approve
949. By Renato Araujo Oliveira Filho

Instead of return the current events we will return the next 7 days events, to make sure that they will be returned in the correct order.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
950. By Renato Araujo Oliveira Filho

Fixed alarm test to work with the new limited query.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
951. By Renato Araujo Oliveira Filho

Fixed the alarm fetch.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Zsombor Egri (zsombi) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to status/vote changes: