Merge lp:~renatofilho/ubuntu/vivid/syncevolution/default-syncInterval into lp:ubuntu/vivid/syncevolution

Proposed by Renato Araujo Oliveira Filho
Status: Merged
Approved by: Ken VanDine
Approved revision: 31
Merge reported by: Ken VanDine
Merged at revision: not available
Proposed branch: lp:~renatofilho/ubuntu/vivid/syncevolution/default-syncInterval
Merge into: lp:ubuntu/vivid/syncevolution
Diff against target: 56 lines (+44/-0)
2 files modified
debian/patches/Use-90-days-as-default-value-for-syncInterval.patch (+43/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~renatofilho/ubuntu/vivid/syncevolution/default-syncInterval
Reviewer Review Type Date Requested Status
Ken VanDine Approve
Iain Lane Needs Information
Sebastien Bacher Needs Information
Review via email: mp+247768@code.launchpad.net

Commit message

Added patch for syncInterval default value.

Use 90 days as default value for syncInterval. This value will be used by the phone, setting it as default will avoid changes on old configuration files.

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks, could you provide some background on why that change is needed/wanted? Could you upstream the change as well?

review: Needs Information
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

> Thanks, could you provide some background on why that change is needed/wanted?
Added more context on commit message.

> Could you upstream the change as well?
No this will not get upstream this default value is specific for ubuntu devices.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Does that value makes sense on desktop as well?

Revision history for this message
Iain Lane (laney) wrote :

Is it appropriate to override the upstream default for all Ubuntu users like this?

I'd think that, if you want this for touch, the code interacting with syncevolution there should set the value appropriately.

review: Needs Information
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

This does not appear to be reviewed nor approved yet. Something looks buggy, as this has landed in the archive already somehow. Reverting for now, awaiting review and sponsorship by authorised developers to make uploads for this package.

https://launchpad.net/ubuntu/+source/syncevolution/1.5-0ubuntu3

Revision history for this message
Ken VanDine (ken-vandine) wrote :

This patch really just changes a default for a value added by another patch of ours. That other patch has been accepted upstream recently, so at least in Ubuntu, the phone is the only real use case affected. This patch eases the migration on the phone, so worth patching. If we decide not to override upstream's default, we'll need to come up with a way to handle migrating the current settings.

I'm not clear why this default won't be accepted upstream, I'll ask Renato for clarification on that.

review: Approve
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

> This patch really just changes a default for a value added by another patch of
> ours. That other patch has been accepted upstream recently, so at least in
> Ubuntu, the phone is the only real use case affected. This patch eases the
> migration on the phone, so worth patching. If we decide not to override
> upstream's default, we'll need to come up with a way to handle migrating the
> current settings.
>
> I'm not clear why this default won't be accepted upstream, I'll ask Renato for
> clarification on that.

This default value is used only by ubuntu devices the upstream project does not want to limit the number of the days synced in the calendar. They want to keep import all as default behavior.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

The proposed change will affect all Ubuntu installations, including Ubuntu Desktop and all flavours. This change is not limited to ubuntu phone, as proposed. Is this a gsettings property that can be overriden to an appropriate value in the settings overlay for the Ubuntu Phone flavour-only, without affecting all other Ubuntu flavours that use syncevolution?

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'debian/patches/Use-90-days-as-default-value-for-syncInterval.patch'
2--- debian/patches/Use-90-days-as-default-value-for-syncInterval.patch 1970-01-01 00:00:00 +0000
3+++ debian/patches/Use-90-days-as-default-value-for-syncInterval.patch 2015-01-27 19:51:10 +0000
4@@ -0,0 +1,43 @@
5+From db7ef82c8d87677b00ed310c8e6c1fb5cd729dd2 Mon Sep 17 00:00:00 2001
6+From: Renato Araujo Oliveira Filho <renato.filho@canonical.com>
7+Date: Tue, 27 Jan 2015 16:20:26 -0300
8+Subject: [PATCH] Use 90 days as default value for syncInterval.
9+
10+---
11+ src/syncevo/SyncConfig.cpp | 12 +++++++++---
12+ 1 file changed, 9 insertions(+), 3 deletions(-)
13+
14+diff --git a/src/syncevo/SyncConfig.cpp b/src/syncevo/SyncConfig.cpp
15+index 7e7e7b4..7429329 100644
16+--- a/src/syncevo/SyncConfig.cpp
17++++ b/src/syncevo/SyncConfig.cpp
18+@@ -2851,7 +2851,7 @@ static ConfigProperty sourcePropCalendarSyncInterval(Aliases("syncInterval"),
19+ "Defines the number of days before the current date that should be use as start date for the calendar sync.\n"
20+ "This can be set do limit the number of events imported from the source calendar.\n"
21+ "\n"
22+- "Leave it empty if you want to import all events.\n");
23++ "If unset, the limit will be set to 90 days..\n");
24+
25+ static StringConfigProperty sourcePropDatabaseFormat("databaseFormat",
26+ "Defines the data format to be used by the backend for its\n"
27+@@ -3044,9 +3044,15 @@ SyncSourceNodes::getNode(const ConfigProperty &prop) const
28+
29+ InitStateString SyncSourceConfig::getDatabaseID() const { return sourcePropDatabaseID.getProperty(*getNode(sourcePropDatabaseID)); }
30+ void SyncSourceConfig::setDatabaseID(const string &value, bool temporarily) { sourcePropDatabaseID.setProperty(*getNode(sourcePropDatabaseID), value, temporarily); }
31+-InitStateString SyncSourceConfig::getSyncInterval() const { return sourcePropCalendarSyncInterval.getProperty(*getNode(sourcePropCalendarSyncInterval)); }
32++InitStateString SyncSourceConfig::getSyncInterval() const {
33++ InitStateString interval = sourcePropCalendarSyncInterval.getProperty(*getNode(sourcePropCalendarSyncInterval));
34++ if (interval.empty()) {
35++ interval = InitStateString("90", false);
36++ }
37++ return interval;
38++}
39+ void SyncSourceConfig::setSyncInterval(const string &value, bool temporarily) {
40+- sourcePropCalendarSyncInterval.setProperty(*getNode(sourcePropCalendarSyncInterval), value, temporarily);
41++ sourcePropCalendarSyncInterval.setProperty(*getNode(sourcePropCalendarSyncInterval), value, temporarily);
42+ }
43+
44+ string SyncSourceConfig::getStartDate() const
45+--
46+2.1.0
47+
48
49=== modified file 'debian/patches/series'
50--- debian/patches/series 2014-11-21 16:32:22 +0000
51+++ debian/patches/series 2015-01-27 19:51:10 +0000
52@@ -3,3 +3,4 @@
53 0002-Avoid-register-unecessary-timezones.patch
54 fix-photo-merging.patch
55 calendar-limit-date-sync.diff
56+Use-90-days-as-default-value-for-syncInterval.patch

Subscribers

People subscribed via source and target branches