[gnome-online-accounts/wip/rishi/remove-todoist] Remove Todoist and deprecate org.gnome.OnlineAccounts.Todo



commit bf77325d847d2878159e8ba2677768b2fe6386a6
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Nov 23 12:39:54 2018 +0100

    Remove Todoist and deprecate org.gnome.OnlineAccounts.Todo
    
    During the GNOME 3.25.x / 3.26 development cycle it was decided that
    Todoist doesn't fit the goals of GNOME Online Accounts [1].
    
    The two applications that were meant to consume the Todoist provider,
    GNOME Recipes [2] and To Do [3], are not part of a minimum viable GNOME
    system. While they do bear the GNOME name and follow the GNOME Human
    Interface Guidelines [4], they are not tightly coupled with the rest of
    GNOME. eg., they don't follow the GNOME development and release
    schedule. They are optional applications which often won't be
    installed, and we don't want to have online accounts that don't do
    anything.
    
    Since then, Recipes has grown its own built-in Todoist support, and
    To Do is expected to do the same.
    
    [1] https://wiki.gnome.org/Projects/GnomeOnlineAccounts/Goals
    [2] https://wiki.gnome.org/Apps/Recipes
    [3] https://wiki.gnome.org/Apps/Todo
    [4] https://developer.gnome.org/hig/stable/

 README                                   |   6 -
 configure.ac                             |  27 ---
 data/dbus-interfaces.xml                 |   8 +-
 data/icons/16x16/Makefile.am             |   1 -
 data/icons/16x16/goa-account-todoist.png | Bin 740 -> 0 bytes
 data/icons/22x22/Makefile.am             |   1 -
 data/icons/22x22/goa-account-todoist.png | Bin 948 -> 0 bytes
 data/icons/24x24/Makefile.am             |   1 -
 data/icons/24x24/goa-account-todoist.png | Bin 972 -> 0 bytes
 data/icons/32x32/Makefile.am             |   1 -
 data/icons/32x32/goa-account-todoist.png | Bin 1377 -> 0 bytes
 data/icons/48x48/Makefile.am             |   1 -
 data/icons/48x48/goa-account-todoist.png | Bin 2022 -> 0 bytes
 data/icons/96x96/Makefile.am             |   1 -
 data/icons/96x96/goa-account-todoist.png | Bin 4512 -> 0 bytes
 data/icons/meson.build                   |   1 -
 meson.build                              |  17 --
 meson_options.txt                        |   4 -
 po/POTFILES.in                           |   1 -
 src/goabackend/Makefile.am               |   1 -
 src/goabackend/goabackendenums.h         |   1 +
 src/goabackend/goaobjectskeletonutils.c  |  23 ---
 src/goabackend/goaobjectskeletonutils.h  |   3 -
 src/goabackend/goaprovider.c             |   4 -
 src/goabackend/goatodoistprovider.c      | 342 -------------------------------
 src/goabackend/goatodoistprovider.h      |  37 ----
 src/goabackend/meson.build               |   1 -
 27 files changed, 8 insertions(+), 474 deletions(-)
---
diff --git a/README b/README
index 6973165a..b4e3a2aa 100644
--- a/README
+++ b/README
@@ -71,12 +71,6 @@ useful:
 http://www.slideshare.net/KuoE0/pocket-authentication-with-oauth-on-firefox-os
 
 
-Todoist
--------
-
-OAuth 2.0: https://developer.todoist.com/
-
-
 Windows Live
 ------------
 
diff --git a/configure.ac b/configure.ac
index 6c3aa599..1ab97ffd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -285,32 +285,6 @@ if test "$enable_facebook" != "no"; then
   AC_DEFINE(GOA_FACEBOOK_ENABLED, 1, [Enable Facebook data provider])
 fi
 
-# Todoist
-AC_DEFINE(GOA_TODOIST_NAME, ["todoist"], [ProviderType and extension point name])
-AC_ARG_ENABLE([todoist],
-              [AS_HELP_STRING([--enable-todoist], [Enable Todoist provider])],
-              [],
-              [enable_todoist=no])
-AC_ARG_WITH(todoist-client-id,
-            [AS_HELP_STRING([--with-todoist-client-id], [Todoist OAuth 2.0 client id])],
-            [],
-            [])
-AC_ARG_WITH(todoist-client-secret,
-            [AS_HELP_STRING([--with-todoist-client-secret], [Todoist client secret])],
-            [],
-            [])
-if test "$with_todoist_client_id" = ""; then
-  with_todoist_client_id="2e41575c1dd74f98ad7cfb178e1ba3dd"
-fi
-if test "$with_todoist_client_secret" = ""; then
-  with_todoist_client_secret="3e59831ffdd64633918d19aa0a1efd2b"
-fi
-AC_DEFINE_UNQUOTED(GOA_TODOIST_CLIENT_ID, ["$with_todoist_client_id"], [Todoist OAuth 2.0 client id])
-AC_DEFINE_UNQUOTED(GOA_TODOIST_CLIENT_SECRET, ["$with_todoist_client_secret"], [Todoist client secret])
-if test "$enable_todoist" != "no"; then
-  AC_DEFINE(GOA_TODOIST_ENABLED, 1, [Enable Todoist data provider])
-fi
-
 # Windows Live
 AC_DEFINE(GOA_WINDOWS_LIVE_NAME, ["windows_live"], [ProviderType and extension point name])
 AC_ARG_ENABLE([windows-live],
@@ -574,7 +548,6 @@ echo "
        ownCloud provider:              ${enable_owncloud}
        Kerberos provider:              ${enable_kerberos}
        Facebook provider:              ${enable_facebook} (OAuth 2.0, id:${with_facebook_client_id})
-       Todoist provider:               ${enable_todoist} (OAuth 2.0, id:${with_todoist_client_id} 
secret:${with_todoist_client_secret})
        Windows Live provider:          ${enable_windows_live} (OAuth 2.0, id:${with_windows_live_client_id})
         Pocket provider:                ${enable_pocket} (id:${with_pocket_client_id})
        Last.fm provider:               ${enable_lastfm} (id:${with_lastfm_client_id} 
secret:${with_lastfm_client_secret})
diff --git a/data/dbus-interfaces.xml b/data/dbus-interfaces.xml
index 205ce045..47a72c9a 100644
--- a/data/dbus-interfaces.xml
+++ b/data/dbus-interfaces.xml
@@ -256,7 +256,9 @@
          Note that the #org.gnomeOnlineAccounts.Todo interface is added or
          removed from the account asynchronously.
     -->
-    <property name="TodoDisabled" type="b" access="readwrite"/>
+    <property name="TodoDisabled" type="b" access="readwrite">
+      <annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
+    </property>
 
     <!-- ReadLaterDisabled:
          @since: 3.12.0
@@ -797,8 +799,12 @@
 
       An account object implements this interface if it provides
       todo-like capabilities.
+
+      The #org.gnome.OnlineAccounts.Todo interface is not used by
+      any account.
   -->
   <interface name="org.gnome.OnlineAccounts.Todo">
+    <annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
   </interface>
 
   <!--
diff --git a/data/icons/16x16/Makefile.am b/data/icons/16x16/Makefile.am
index 38c1d22a..26c54c88 100644
--- a/data/icons/16x16/Makefile.am
+++ b/data/icons/16x16/Makefile.am
@@ -10,7 +10,6 @@ icon_DATA =                           \
        goa-account-owncloud.png        \
        goa-account-pocket.png          \
        goa-account-foursquare.png      \
-       goa-account-todoist.png \
        $(NULL)
 
 EXTRA_DIST = \
diff --git a/data/icons/22x22/Makefile.am b/data/icons/22x22/Makefile.am
index 4ca45d31..a4b1fc6a 100644
--- a/data/icons/22x22/Makefile.am
+++ b/data/icons/22x22/Makefile.am
@@ -10,7 +10,6 @@ icon_DATA =                           \
        goa-account-owncloud.png        \
        goa-account-pocket.png          \
        goa-account-foursquare.png      \
-       goa-account-todoist.png \
        $(NULL)
 
 EXTRA_DIST = \
diff --git a/data/icons/24x24/Makefile.am b/data/icons/24x24/Makefile.am
index 0d45d8ac..721e1f80 100644
--- a/data/icons/24x24/Makefile.am
+++ b/data/icons/24x24/Makefile.am
@@ -10,7 +10,6 @@ icon_DATA =                           \
        goa-account-pocket.png          \
        goa-account-foursquare.png      \
        goa-account-flickr.png          \
-       goa-account-todoist.png \
        $(NULL)
 
 EXTRA_DIST = \
diff --git a/data/icons/32x32/Makefile.am b/data/icons/32x32/Makefile.am
index 8a0b612c..a13313de 100644
--- a/data/icons/32x32/Makefile.am
+++ b/data/icons/32x32/Makefile.am
@@ -10,7 +10,6 @@ icon_DATA =                           \
        goa-account-owncloud.png        \
        goa-account-pocket.png          \
        goa-account-foursquare.png      \
-       goa-account-todoist.png \
        $(NULL)
 
 EXTRA_DIST = \
diff --git a/data/icons/48x48/Makefile.am b/data/icons/48x48/Makefile.am
index 82323095..e86a6e47 100644
--- a/data/icons/48x48/Makefile.am
+++ b/data/icons/48x48/Makefile.am
@@ -10,7 +10,6 @@ icon_DATA =                           \
        goa-account-pocket.png          \
        goa-account-flickr.png          \
        goa-account-foursquare.png      \
-       goa-account-todoist.png \
        $(NULL)
 
 EXTRA_DIST = \
diff --git a/data/icons/96x96/Makefile.am b/data/icons/96x96/Makefile.am
index bc174ef9..0cfa9ddb 100644
--- a/data/icons/96x96/Makefile.am
+++ b/data/icons/96x96/Makefile.am
@@ -10,7 +10,6 @@ icon_DATA =                           \
        goa-account-pocket.png          \
        goa-account-flickr.png          \
        goa-account-foursquare.png      \
-       goa-account-todoist.png \
        $(NULL)
 
 EXTRA_DIST = \
diff --git a/data/icons/meson.build b/data/icons/meson.build
index 866e2f9e..79deee22 100644
--- a/data/icons/meson.build
+++ b/data/icons/meson.build
@@ -7,7 +7,6 @@ icon_data = [
   'goa-account-owncloud.png',
   'goa-account.png',
   'goa-account-pocket.png',
-  'goa-account-todoist.png'
 ]
 
 icon_data_256 = ['goa-account.png']
diff --git a/meson.build b/meson.build
index d462fe87..8a7fb935 100644
--- a/meson.build
+++ b/meson.build
@@ -216,18 +216,6 @@ config_h.set_quoted('GOA_POCKET_CLIENT_ID', pocket_client_id)
 enable_pocket = get_option('pocket')
 config_h.set('GOA_POCKET_ENABLED', enable_pocket)
 
-# Todoist
-config_h.set_quoted('GOA_TODOIST_NAME', 'todoist')
-
-todoist_client_id = get_option('todoist_client_id')
-config_h.set_quoted('GOA_TODOIST_CLIENT_ID', todoist_client_id)
-
-todoist_client_secret = get_option('todoist_client_secret')
-config_h.set_quoted('GOA_TODOIST_CLIENT_SECRET', todoist_client_secret)
-
-enable_todoist = get_option('todoist')
-config_h.set('GOA_TODOIST_ENABLED', enable_todoist)
-
 # Windows Live
 config_h.set_quoted('GOA_WINDOWS_LIVE_NAME', 'windows_live')
 
@@ -355,11 +343,6 @@ if enable_pocket
   output += ' (id:@0@)'.format(pocket_client_id)
 endif
 output += '\n'
-output += '        Todoist provider:               ' + enable_todoist.to_string()
-if enable_todoist
-  output += ' (OAuth 2.0, id:@0@ secret:@1@)'.format(todoist_client_id, todoist_client_secret)
-endif
-output += '\n'
 output += '        Windows Live provider:          ' + enable_windows_live.to_string()
 if enable_windows_live
   output += ' (OAuth 2.0, id:@0@)'.format(windows_live_client_id)
diff --git a/meson_options.txt b/meson_options.txt
index 2948a650..5e40150b 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -32,10 +32,6 @@ option('owncloud', type: 'boolean', value: true, description: 'Enable ownCloud p
 option('pocket', type: 'boolean', value: true, description: 'Enable Pocket provider')
 option('pocket_client_id', type: 'string', value: '16630-40b25246b56e8ad5310b2883', description: 'Pocket 
OAuth 2.0 client id')
 
-option('todoist', type: 'boolean', value: false, description: 'Enable Todoist provider')
-option('todoist_client_id', type: 'string', value: '2e41575c1dd74f98ad7cfb178e1ba3dd', description: 'Todoist 
OAuth 2.0 client id')
-option('todoist_client_secret', type: 'string', value: '3e59831ffdd64633918d19aa0a1efd2b', description: 
'Todoist client secret')
-
 option('windows_live', type: 'boolean', value: true, description: 'Enable Windows Live provider')
 option('windows_live_client_id', type: 'string', value: '0000000044067703', description: 'Windows Live OAuth 
2.0 client id')
 
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 81394795..735f974b 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -19,7 +19,6 @@ src/goabackend/goaowncloudprovider.c
 src/goabackend/goapocketprovider.c
 src/goabackend/goaprovider.c
 src/goabackend/goasmtpauth.c
-src/goabackend/goatodoistprovider.c
 src/goabackend/goautils.c
 src/goabackend/goawebview.c
 src/goabackend/goawindowsliveprovider.c
diff --git a/src/goabackend/Makefile.am b/src/goabackend/Makefile.am
index 0c1fb795..f9517e12 100644
--- a/src/goabackend/Makefile.am
+++ b/src/goabackend/Makefile.am
@@ -94,7 +94,6 @@ libgoa_backend_1_0_la_SOURCES =                                               \
        goawindowsliveprovider.h        goawindowsliveprovider.c        \
        goapocketprovider.h             goapocketprovider.c             \
        goalastfmprovider.h             goalastfmprovider.c             \
-       goatodoistprovider.h            goatodoistprovider.c            \
        goaobjectskeletonutils.h        goaobjectskeletonutils.c        \
        goautils.h                      goautils.c                      \
        goawebview.h                    goawebview.c                    \
diff --git a/src/goabackend/goabackendenums.h b/src/goabackend/goabackendenums.h
index 5ddfed56..58a4d8ab 100644
--- a/src/goabackend/goabackendenums.h
+++ b/src/goabackend/goabackendenums.h
@@ -71,6 +71,7 @@ typedef enum
  * @GOA_PROVIDER_FEATURE_PRINTERS: Network printing services (e.g. Google Cloud Print).
  * @GOA_PROVIDER_FEATURE_MAPS: Maps related services (e.g. Foursquare, Facebook).
  * @GOA_PROVIDER_FEATURE_MUSIC: Music related services (e.g. Vkontakte).
+ * @GOA_PROVIDER_FEATURE_TODO: Deprecated; currently unused.
  * @GOA_PROVIDER_FEATURE_INVALID: Used for error handling. No provider
  *   should provide this feature.
  *
diff --git a/src/goabackend/goaobjectskeletonutils.c b/src/goabackend/goaobjectskeletonutils.c
index 8737be2e..e2ec3e73 100644
--- a/src/goabackend/goaobjectskeletonutils.c
+++ b/src/goabackend/goaobjectskeletonutils.c
@@ -204,29 +204,6 @@ goa_object_skeleton_attach_maps (GoaObjectSkeleton *object,
   g_clear_object (&maps);
 }
 
-void
-goa_object_skeleton_attach_todo (GoaObjectSkeleton *object,
-                                 gboolean           todo_enabled)
-{
-  GoaTodo *todo = NULL;
-
-  todo = goa_object_get_todo (GOA_OBJECT (object));
-  if (todo_enabled)
-    {
-      if (todo == NULL)
-        {
-          todo = goa_todo_skeleton_new ();
-          goa_object_skeleton_set_todo (object, todo);
-        }
-    }
-  else
-    {
-      if (todo != NULL)
-        goa_object_skeleton_set_todo (object, NULL);
-    }
-  g_clear_object (&todo);
-}
-
 void
 goa_object_skeleton_attach_read_later (GoaObjectSkeleton *object,
                                        gboolean           read_later_enabled)
diff --git a/src/goabackend/goaobjectskeletonutils.h b/src/goabackend/goaobjectskeletonutils.h
index 124d12b9..0ebdb15e 100644
--- a/src/goabackend/goaobjectskeletonutils.h
+++ b/src/goabackend/goaobjectskeletonutils.h
@@ -55,9 +55,6 @@ void             goa_object_skeleton_attach_photos         (GoaObjectSkeleton *o
 void             goa_object_skeleton_attach_printers       (GoaObjectSkeleton *object,
                                                             gboolean           printers_enabled);
 
-void             goa_object_skeleton_attach_todo           (GoaObjectSkeleton *object,
-                                                            gboolean           todo_enabled);
-
 void             goa_object_skeleton_attach_read_later     (GoaObjectSkeleton *object,
                                                             gboolean           read_later_enabled);
 
diff --git a/src/goabackend/goaprovider.c b/src/goabackend/goaprovider.c
index 70930d87..f1122791 100644
--- a/src/goabackend/goaprovider.c
+++ b/src/goabackend/goaprovider.c
@@ -33,7 +33,6 @@
 #include "goapocketprovider.h"
 #include "goamediaserverprovider.h"
 #include "goalastfmprovider.h"
-#include "goatodoistprovider.h"
 
 #ifdef GOA_KERBEROS_ENABLED
 #include "goakerberosprovider.h"
@@ -960,9 +959,6 @@ static struct
 #ifdef GOA_LASTFM_ENABLED
   { GOA_LASTFM_NAME, goa_lastfm_provider_get_type },
 #endif
-#ifdef GOA_TODOIST_ENABLED
-  { GOA_TODOIST_NAME, goa_todoist_provider_get_type },
-#endif
 #ifdef GOA_IMAP_SMTP_ENABLED
   { GOA_IMAP_SMTP_NAME, goa_imap_smtp_provider_get_type },
 #endif
diff --git a/src/goabackend/meson.build b/src/goabackend/meson.build
index 3fb7fc1b..2c3a9cff 100644
--- a/src/goabackend/meson.build
+++ b/src/goabackend/meson.build
@@ -48,7 +48,6 @@ sources = enum_sources + files(
   'goarestproxy.c',
   'goasmtpauth.c',
   'goasouplogger.c',
-  'goatodoistprovider.c',
   'goautils.c',
   'goawebview.c',
   'goawindowsliveprovider.c',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]