services

package
v0.0.0-...-e75809f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2020 License: GPL-3.0 Imports: 27 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PermissionService

type PermissionService struct {
	DB *gorm.DB
}

PermissionService ...

func (PermissionService) CanAccessRetrospectiveFeedback

func (service PermissionService) CanAccessRetrospectiveFeedback(sprintID string, userID uint) bool

CanAccessRetrospectiveFeedback ...

func (PermissionService) IsUserAdmin

func (service PermissionService) IsUserAdmin(userID uint) bool

IsUserAdmin ...

func (PermissionService) UserCanAccessRetro

func (service PermissionService) UserCanAccessRetro(retroID string, userID uint) bool

UserCanAccessRetro ...

func (PermissionService) UserCanAccessSprint

func (service PermissionService) UserCanAccessSprint(retroID string, sprintID string, userID uint) bool

UserCanAccessSprint ...

func (PermissionService) UserCanAccessSprintTask

func (service PermissionService) UserCanAccessSprintTask(retroID string, sprintID string, sprintTaskID string, userID uint) bool

UserCanAccessSprintTask ...

func (PermissionService) UserCanCreateOrEditRetro

func (service PermissionService) UserCanCreateOrEditRetro(teamID uint, userID uint) bool

UserCanCreateOrEditRetro ...

func (PermissionService) UserCanEditSprint

func (service PermissionService) UserCanEditSprint(retroID string, sprintID string, userID uint) bool

UserCanEditSprint ...

func (PermissionService) UserCanEditSprintTask

func (service PermissionService) UserCanEditSprintTask(retroID string, sprintID string, sprintTaskID string, userID uint) bool

UserCanEditSprintTask ...

type RetrospectiveFeedbackService

type RetrospectiveFeedbackService struct {
	DB *gorm.DB
}

RetrospectiveFeedbackService ...

func (RetrospectiveFeedbackService) Add

Add ...

func (RetrospectiveFeedbackService) Delete

func (service RetrospectiveFeedbackService) Delete(retroFeedbackID string) (int, error)

Delete ...

func (RetrospectiveFeedbackService) List

func (service RetrospectiveFeedbackService) List(userID uint, sprintID string, retroID string,
	feedbackType models.RetrospectiveFeedbackType) (
	feedbackList *retrospectiveSerializers.RetrospectiveFeedbackListSerializer,
	status int,
	err error)

List ...

func (RetrospectiveFeedbackService) ListGoal

func (service RetrospectiveFeedbackService) ListGoal(userID uint, sprintID string,
	retroID string, goalType string) (
	feedbackList *retrospectiveSerializers.RetrospectiveFeedbackListSerializer,
	status int,
	err error)

ListGoal ...

func (RetrospectiveFeedbackService) Resolve

func (service RetrospectiveFeedbackService) Resolve(userID uint, sprintID string, retroID string,
	feedbackID string,
	markResolved bool) (
	*retrospectiveSerializers.RetrospectiveFeedback,
	int,
	error)

Resolve ...

func (RetrospectiveFeedbackService) Update

Update ...

type RetrospectiveService

type RetrospectiveService struct {
	DB          *gorm.DB
	TeamService userServices.TeamService
}

RetrospectiveService ...

func (RetrospectiveService) Create

Create the Retrospective with the given values (provided the user is a member of the retrospective's team.

func (RetrospectiveService) Get

func (service RetrospectiveService) Get(retroID string, isEagerLoading bool) (retro *retroSerializers.Retrospective, status int, err error)

Get the details of the given Retrospective.

func (RetrospectiveService) GetEditLevels

GetEditLevels ...

func (RetrospectiveService) GetLatestSprint

func (service RetrospectiveService) GetLatestSprint(retroID string, userID uint) (*retroSerializers.Sprint, int, error)

GetLatestSprint returns the latest sprint for the retro

func (RetrospectiveService) GetTeamMembers

func (service RetrospectiveService) GetTeamMembers(retrospectiveID string, userID uint, isAdmin bool) (
	members *userSerializers.MembersSerializer, status int, err error)

GetTeamMembers ...

func (RetrospectiveService) List

func (service RetrospectiveService) List(userID uint, perPageString string, pageString string, isAdmin bool) (
	retrospectiveList *retroSerializers.RetrospectiveListSerializer,
	status int,
	err error)

List all the Retrospectives of all the teams, given user is a member of.

func (RetrospectiveService) Update

Update the Retrospective with the given values provided the user is a member of the retrospective's team.

type SprintService

type SprintService struct {
	DB *gorm.DB
}

SprintService ...

func (SprintService) ActivateSprint

func (service SprintService) ActivateSprint(sprintID string, retroID string) (int, error)

ActivateSprint activates the given sprint

func (SprintService) AddSprintMember

func (service SprintService) AddSprintMember(
	sprintID string,
	memberID uint) (*retroSerializers.SprintMemberSummary, int, error)

AddSprintMember ...

func (SprintService) AssignPoints

func (service SprintService) AssignPoints(sprintID string, sprintTaskID *string) (err error)

AssignPoints ...

func (SprintService) Create

func (service SprintService) Create(
	retroID string,
	userID uint,
	sprintData retroSerializers.CreateSprintSerializer) (*retroSerializers.Sprint, int, error)

Create creates a new sprint for the retro

func (SprintService) DeleteSprint

func (service SprintService) DeleteSprint(sprintID string) (int, error)

DeleteSprint deletes the given sprint

func (SprintService) FreezeSprint

func (service SprintService) FreezeSprint(sprintID string, retroID string) (int, error)

FreezeSprint freezes the given sprint

func (SprintService) Get

func (service SprintService) Get(sprintID string, userID uint, includeSprintSummary bool) (*retroSerializers.Sprint, int, error)

Get return details of the given sprint

func (SprintService) GetSprintMemberList

func (service SprintService) GetSprintMemberList(sprintID string) (sprintMemberList *userSerializers.MembersSerializer,
	status int, err error)

GetSprintMemberList returns the sprint member list

func (SprintService) GetSprintMemberSanitizedTimeTrackerData

func (service SprintService) GetSprintMemberSanitizedTimeTrackerData(
	taskProviderConfig []byte,
	timeTrackerConfig []byte,
	sprint retroModels.Sprint) ([]string, []timeTrackerSerializers.TimeLog, error)

GetSprintMemberSanitizedTimeTrackerData ...

func (SprintService) GetSprintMemberTimeTrackerData

func (service SprintService) GetSprintMemberTimeTrackerData(
	timeTrackerConfig []byte,
	sprint retroModels.Sprint) ([]string, []timeTrackerSerializers.TimeLog, error)

GetSprintMemberTimeTrackerData ...

func (SprintService) GetSprintMembersSummary

func (service SprintService) GetSprintMembersSummary(
	sprintID string) (*retroSerializers.SprintMemberSummaryListSerializer, int, error)

GetSprintMembersSummary returns the sprint member summary list

func (SprintService) GetSprintSummary

func (service SprintService) GetSprintSummary(
	sprintID string,
	retroID uint) (*retroSerializers.SprintSummary, int, error)

GetSprintSummary ...

func (SprintService) GetSprintTaskSummary

func (service SprintService) GetSprintTaskSummary(
	sprintID string,
	retroID uint) (summary map[string]retroSerializers.SprintTaskSummary, status int, err error)

GetSprintTaskSummary ...

func (SprintService) GetSprintsList

func (service SprintService) GetSprintsList(retrospectiveID string, userID uint, perPage int, after string) (*retroSerializers.SprintsSerializer, int, error)

GetSprintsList ...

func (SprintService) GetTimeTrackerData

func (service SprintService) GetTimeTrackerData(sprint retroModels.Sprint, taskProviderConfig []byte) (
	[]string,
	map[uint][]timeTrackerSerializers.TimeLog,
	error)

GetTimeTrackerData ...

func (SprintService) QueueSprint

func (service SprintService) QueueSprint(sprintID uint, assignPoints bool)

QueueSprint ...

func (SprintService) QueueSprintMember

func (service SprintService) QueueSprintMember(sprintID uint, sprintMemberID string)

QueueSprintMember ...

func (SprintService) RemoveSprintMember

func (service SprintService) RemoveSprintMember(sprintID string, memberID string) (int, error)

RemoveSprintMember ...

func (SprintService) SetNotSynced

func (service SprintService) SetNotSynced(sprintID uint)

SetNotSynced ...

func (SprintService) SetSyncFailed

func (service SprintService) SetSyncFailed(sprintID uint)

SetSyncFailed ...

func (SprintService) SetSynced

func (service SprintService) SetSynced(sprintID uint)

SetSynced ...

func (SprintService) SetSyncing

func (service SprintService) SetSyncing(sprintID uint)

SetSyncing ...

func (SprintService) SyncSprintData

func (service SprintService) SyncSprintData(sprintID string) (err error)

SyncSprintData ...

func (SprintService) SyncSprintMemberData

func (service SprintService) SyncSprintMemberData(sprintID uint, sprintMemberID string) (err error)

SyncSprintMemberData ...

func (SprintService) UpdateSprint

func (service SprintService) UpdateSprint(
	sprintID string,
	userID uint,
	sprintData retroSerializers.UpdateSprintSerializer) (*retroSerializers.Sprint, int, error)

UpdateSprint updates the given sprint

func (SprintService) UpdateSprintMember

func (service SprintService) UpdateSprintMember(sprintID string, sprintMemberID string,
	memberData retroSerializers.SprintMemberUpdate) (*retroSerializers.SprintMemberSummary, int, error)

UpdateSprintMember update the sprint member summary

func (SprintService) ValidateSprint

func (service SprintService) ValidateSprint(sprintID string, retroID string) (bool, error)

ValidateSprint validate the given sprint

type SprintTaskMemberService

type SprintTaskMemberService struct {
	DB *gorm.DB
}

SprintTaskMemberService ...

func (SprintTaskMemberService) AddMember

func (service SprintTaskMemberService) AddMember(
	sprintTaskID string,
	retroID string,
	sprintID string,
	memberID uint) (member *retroSerializers.TaskMember, status int, err error)

AddMember ...

func (SprintTaskMemberService) GetMember

func (service SprintTaskMemberService) GetMember(
	sprintMemberTask retroModels.SprintMemberTask,
	memberID uint,
	retroID string,
	sprintID string) (member *retroSerializers.TaskMember, status int, err error)

GetMember returns the task member summary of a task for a particular sprint member

func (SprintTaskMemberService) GetMembers

func (service SprintTaskMemberService) GetMembers(
	sprintTaskID string,
	retroID string,
	sprintID string) (members *retroSerializers.TaskMembersSerializer, status int, err error)

GetMembers ...

func (SprintTaskMemberService) UpdateTaskMember

func (service SprintTaskMemberService) UpdateTaskMember(
	sprintTaskID string,
	retroID string,
	sprintID string,
	smtID string,
	taskMemberData *retroSerializers.SprintTaskMemberUpdate) (*retroSerializers.TaskMember, int, error)

UpdateTaskMember ...

type SprintTaskService

type SprintTaskService struct {
	DB *gorm.DB
}

SprintTaskService ...

func (SprintTaskService) AssignPointsToSprintTask

func (service SprintTaskService) AssignPointsToSprintTask(sprintTaskID string, sprintID string)

AssignPointsToSprintTask ...

func (SprintTaskService) Delete

func (service SprintTaskService) Delete(sprintTaskID string, retroID string, sprintID string) (int, error)

Delete ...

func (SprintTaskService) Get

func (service SprintTaskService) Get(
	sprintTaskID string,
	retroID string,
	sprintID string,
	userID uint) (*retroSerializers.SprintTask, int, error)

Get ...

func (SprintTaskService) List

func (service SprintTaskService) List(
	retroID string,
	sprintID string,
	userID uint) (taskList *retroSerializers.SprintTasksSerializer, status int, err error)

List ...

func (SprintTaskService) MarkDone

func (service SprintTaskService) MarkDone(
	sprintTaskID string,
	retroID string,
	sprintID string,
	userID uint,
	data retroSerializers.SprintTaskDone) (task *retroSerializers.SprintTask, status int, err error)

MarkDone ...

func (SprintTaskService) MarkUndone

func (service SprintTaskService) MarkUndone(
	sprintTaskID string,
	retroID string,
	sprintID string,
	userID uint) (task *retroSerializers.SprintTask, status int, err error)

MarkUndone ...

func (SprintTaskService) Update

func (service SprintTaskService) Update(sprintTaskID string,
	retroID string,
	sprintID string,
	data retroSerializers.SprintTaskUpdate,
	userID uint) (*retroSerializers.SprintTask, int, error)

Update ...

type TrailService

type TrailService struct {
	DB *gorm.DB
}

TrailService ...

func (TrailService) Add

func (service TrailService) Add(action constants.ActionType, actionItem constants.ActionItemType, actionItemID string, actionByID uint)

Add ...

func (TrailService) GetTrails

func (service TrailService) GetTrails(sprintID uint, retroID string) (trails *trailSerializer.TrailSerializer, status int, err error)

GetTrails method to get history of trails for a particular sprint

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL