Add some support for datasync, and deleting times from Harvest
This commit is contained in:
parent
fe0daf00bc
commit
bdb8b22ef4
4 changed files with 35 additions and 53 deletions
|
@ -26,7 +26,4 @@ Harvest integration data models
|
|||
|
||||
from .harvest import (HarvestCacheUser, HarvestCacheClient,
|
||||
HarvestCacheProject, HarvestCacheTask,
|
||||
HarvestCacheTimeEntry,
|
||||
# TODO: deprecate / remove these
|
||||
HarvestUser, HarvestClient, HarvestProject,
|
||||
HarvestTask, HarvestTimeEntry)
|
||||
HarvestCacheTimeEntry)
|
||||
|
|
|
@ -111,15 +111,6 @@ class HarvestCacheUser(model.Base):
|
|||
return normalize_full_name(self.first_name, self.last_name)
|
||||
|
||||
|
||||
class HarvestUser(HarvestCacheUser):
|
||||
""" DEPRECATED """
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
warnings.warn("HarvestUser class is deprecated; "
|
||||
"please use HarvestCacheUser instead",
|
||||
DeprecationWarning, stacklevel=2)
|
||||
|
||||
|
||||
class HarvestCacheClient(model.Base):
|
||||
"""
|
||||
Represents a client record in Harvest.
|
||||
|
@ -152,15 +143,6 @@ class HarvestCacheClient(model.Base):
|
|||
return self.name or ''
|
||||
|
||||
|
||||
class HarvestClient(HarvestCacheClient):
|
||||
""" DEPRECATED """
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
warnings.warn("HarvestClient class is deprecated; "
|
||||
"please use HarvestCacheClient instead",
|
||||
DeprecationWarning, stacklevel=2)
|
||||
|
||||
|
||||
class HarvestCacheProject(model.Base):
|
||||
"""
|
||||
Represents a project record in Harvest.
|
||||
|
@ -234,15 +216,6 @@ class HarvestCacheProject(model.Base):
|
|||
return self.name or ''
|
||||
|
||||
|
||||
class HarvestProject(HarvestCacheProject):
|
||||
""" DEPRECATED """
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
warnings.warn("HarvestProject class is deprecated; "
|
||||
"please use HarvestCacheProject instead",
|
||||
DeprecationWarning, stacklevel=2)
|
||||
|
||||
|
||||
class HarvestCacheTask(model.Base):
|
||||
"""
|
||||
Represents a task record in Harvest.
|
||||
|
@ -277,15 +250,6 @@ class HarvestCacheTask(model.Base):
|
|||
return self.name or ''
|
||||
|
||||
|
||||
class HarvestTask(HarvestCacheTask):
|
||||
""" DEPRECATED """
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
warnings.warn("HarvestTask class is deprecated; "
|
||||
"please use HarvestCacheTask instead",
|
||||
DeprecationWarning, stacklevel=2)
|
||||
|
||||
|
||||
class HarvestCacheTimeEntry(model.Base):
|
||||
"""
|
||||
Represents a time entry record in Harvest.
|
||||
|
@ -361,12 +325,3 @@ class HarvestCacheTimeEntry(model.Base):
|
|||
|
||||
def __str__(self):
|
||||
return str(self.spent_date or '')
|
||||
|
||||
|
||||
class HarvestTimeEntry(HarvestCacheTimeEntry):
|
||||
""" DEPRECATED """
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
warnings.warn("HarvestTimeEntry class is deprecated; "
|
||||
"please use HarvestCacheTimeEntry instead",
|
||||
DeprecationWarning, stacklevel=2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue