Documentation ¶
Index ¶
- Variables
- func GetTaskTrackerConnectionFromRetro(db *gorm.DB, retroID string) (tasktracker.Connection, error)
- func NotDeletedSprint(db *gorm.DB) *gorm.DB
- func RegisterRetrospectiveFeedbackToAdmin(Admin *admin.Admin, config admin.Config)
- func RegisterRetrospectiveToAdmin(Admin *admin.Admin, config admin.Config)
- func RegisterSprintMemberTaskToAdmin(Admin *admin.Admin, config admin.Config)
- func RegisterSprintMemberToAdmin(Admin *admin.Admin, config admin.Config)
- func RegisterSprintSyncStatusToAdmin(Admin *admin.Admin, config admin.Config)
- func RegisterSprintTaskToAdmin(Admin *admin.Admin, config admin.Config)
- func RegisterSprintToAdmin(Admin *admin.Admin, config admin.Config)
- func RegisterTaskToAdmin(Admin *admin.Admin, config admin.Config)
- func RetroJoinSprints(db *gorm.DB) *gorm.DB
- func RetroJoinTasks(db *gorm.DB) *gorm.DB
- func RetroJoinUserTeams(db *gorm.DB) *gorm.DB
- func SMJoinMember(db *gorm.DB) *gorm.DB
- func SMJoinSMT(db *gorm.DB) *gorm.DB
- func SMJoinSprint(db *gorm.DB) *gorm.DB
- func SMJoinUT(db *gorm.DB) *gorm.DB
- func SMLeftJoinMember(db *gorm.DB) *gorm.DB
- func SMLeftJoinSMT(db *gorm.DB) *gorm.DB
- func SMLeftJoinSprint(db *gorm.DB) *gorm.DB
- func SMTJoinSM(db *gorm.DB) *gorm.DB
- func SMTJoinST(db *gorm.DB) *gorm.DB
- func SMTLeftJoinSM(db *gorm.DB) *gorm.DB
- func STJoinSMT(db *gorm.DB) *gorm.DB
- func STJoinSprint(db *gorm.DB) *gorm.DB
- func STJoinTask(db *gorm.DB) *gorm.DB
- func STLeftJoinSMT(db *gorm.DB) *gorm.DB
- func SprintJoinRetro(db *gorm.DB) *gorm.DB
- func SprintJoinSM(db *gorm.DB) *gorm.DB
- func SprintJoinST(db *gorm.DB) *gorm.DB
- func TaskJoinST(db *gorm.DB) *gorm.DB
- func TaskJoinTaskKeyMaps(db *gorm.DB) *gorm.DB
- func TrailJoinFeedback(db *gorm.DB) *gorm.DB
- func TrailJoinSM(db *gorm.DB) *gorm.DB
- func TrailJoinSMT(db *gorm.DB) *gorm.DB
- func TrailJoinST(db *gorm.DB) *gorm.DB
- type MemberTaskRole
- type Resolution
- type Retrospective
- type RetrospectiveFeedback
- type RetrospectiveFeedbackScope
- type RetrospectiveFeedbackType
- type Sprint
- type SprintMember
- type SprintMemberTask
- type SprintStatus
- type SprintSyncStatus
- type SprintTask
- type SyncStatus
- type Task
- type TaskKeyMap
- type Trail
Constants ¶
This section is empty.
Variables ¶
var MemberTaskRoleValues = [...]string{
"Developer",
"Reviewer",
}
MemberTaskRoleValues ...
var ResolutionValues = [...]string{
"-",
"Done",
"Won't Do",
"Duplicate",
"Can't Reproduce",
}
ResolutionValues ...
var RetrospectiveFeedbackScopeValues = [...]string{
"Team",
"Individual",
}
RetrospectiveFeedbackScopeValues ...
var RetrospectiveFeedbackTypeValues = [...]string{
"Note",
"Highlight",
"Goal",
}
RetrospectiveFeedbackTypeValues ...
var SprintStatusValues = [...]string{
"Draft",
"Active",
"Completed",
"Deleted",
}
SprintStatusValues ...
var SyncStatusValues = [...]string{
"Not Synced",
"Syncing",
"Synced",
"Sync Failed",
"Queued",
}
SyncStatusValues ...
Functions ¶
func GetTaskTrackerConnectionFromRetro ¶
func GetTaskTrackerConnectionFromRetro(db *gorm.DB, retroID string) (tasktracker.Connection, error)
GetTaskTrackerConnectionFromRetro ...
func NotDeletedSprint ¶
NotDeletedSprint is a gorm scope used to exclude the deleted/discard sprints
func RegisterRetrospectiveFeedbackToAdmin ¶
RegisterRetrospectiveFeedbackToAdmin ...
func RegisterRetrospectiveToAdmin ¶
RegisterRetrospectiveToAdmin ...
func RegisterSprintMemberTaskToAdmin ¶
RegisterSprintMemberTaskToAdmin ...
func RegisterSprintMemberToAdmin ¶
RegisterSprintMemberToAdmin ...
func RegisterSprintSyncStatusToAdmin ¶
RegisterSprintSyncStatusToAdmin ...
func RegisterSprintTaskToAdmin ¶
RegisterSprintTaskToAdmin ...
func RegisterSprintToAdmin ¶
RegisterSprintToAdmin ...
func RegisterTaskToAdmin ¶
RegisterTaskToAdmin ...
Types ¶
type MemberTaskRole ¶
type MemberTaskRole int8
MemberTaskRole ...
const ( Developer MemberTaskRole = iota Reviewer )
MemberTaskRole
func (MemberTaskRole) GetStringValue ¶
func (role MemberTaskRole) GetStringValue() string
GetStringValue ...
type Resolution ¶
type Resolution int8
Resolution ...
const ( TaskNotDoneResolution Resolution = iota DoneResolution WontDoResolution DuplicateResolution CantReproduceResolution )
Resolution
func (Resolution) GetStringValue ¶
func (resolution Resolution) GetStringValue() string
GetStringValue ...
type Retrospective ¶
type Retrospective struct { gorm.Model Title string `gorm:"type:varchar(255); not null"` ProjectName string `gorm:"type:varchar(255); not null"` TaskProviderConfig fields.JSONB `gorm:"type:jsonb; not null; default:'[]'::jsonb"` TimeProviderName string `gorm:"not null"` Team userModels.Team TeamID uint `gorm:"not null"` Sprints []Sprint StoryPointPerWeek float64 `gorm:"not null"` CreatedBy userModels.User CreatedByID uint `gorm:"not null"` }
Retrospective represents a retrospective of a team
func (*Retrospective) BeforeSave ¶
func (retrospective *Retrospective) BeforeSave(db *gorm.DB) (err error)
BeforeSave ...
func (*Retrospective) BeforeUpdate ¶
func (retrospective *Retrospective) BeforeUpdate(db *gorm.DB) (err error)
BeforeUpdate ...
type RetrospectiveFeedback ¶
type RetrospectiveFeedback struct { gorm.Model SubType string `gorm:"type:varchar(30); not null"` Type RetrospectiveFeedbackType `gorm:"default:0; not null"` Retrospective Retrospective RetrospectiveID uint `gorm:"not null"` Text string `gorm:"type:text; not null"` Scope RetrospectiveFeedbackScope `gorm:"default:0; not null"` AssigneeID *uint Assignee userModels.User AddedAt *time.Time ResolvedAt *time.Time ExpectedAt *time.Time CreatedByID uint `gorm:"not null"` CreatedBy userModels.User }
RetrospectiveFeedback represent Goals, Highlights and Notes of a sprint
func (*RetrospectiveFeedback) BeforeSave ¶
func (feedback *RetrospectiveFeedback) BeforeSave(db *gorm.DB) (err error)
BeforeSave ...
func (*RetrospectiveFeedback) BeforeUpdate ¶
func (feedback *RetrospectiveFeedback) BeforeUpdate(db *gorm.DB) (err error)
BeforeUpdate ...
type RetrospectiveFeedbackScope ¶
type RetrospectiveFeedbackScope int8
RetrospectiveFeedbackScope ...
const ( TeamScope RetrospectiveFeedbackScope = iota IndividualScope )
RetrospectiveFeedbackScope
func (RetrospectiveFeedbackScope) GetStringValue ¶
func (status RetrospectiveFeedbackScope) GetStringValue() string
GetStringValue ...
type RetrospectiveFeedbackType ¶
type RetrospectiveFeedbackType int8
RetrospectiveFeedbackType ...
const ( NoteType RetrospectiveFeedbackType = iota HighlightType GoalType )
RetrospectiveFeedbackType
func (RetrospectiveFeedbackType) GetStringValue ¶
func (status RetrospectiveFeedbackType) GetStringValue() string
GetStringValue ...
type Sprint ¶
type Sprint struct { gorm.Model Title string `gorm:"type:varchar(255); not null"` SprintID string `gorm:"type:varchar(30); not null"` Retrospective Retrospective RetrospectiveID uint `gorm:"not null"` Status SprintStatus `gorm:"default:0; not null"` StartDate *time.Time EndDate *time.Time SprintMembers []SprintMember SprintTasks []SprintTask LastSyncedAt *time.Time SyncStatus []SprintSyncStatus CreatedBy userModels.User CreatedByID uint `gorm:"not null"` }
Sprint represents a sprint of a retrospective
func (*Sprint) BeforeSave ¶
BeforeSave ...
func (*Sprint) BeforeUpdate ¶
BeforeUpdate ...
type SprintMember ¶
type SprintMember struct { gorm.Model Sprint Sprint SprintID uint `gorm:"not null"` Member userModels.User MemberID uint `gorm:"not null"` AllocationPercent float64 `gorm:"not null;default:100"` ExpectationPercent float64 `gorm:"not null;default:100"` Tasks []SprintMemberTask Vacations float64 `gorm:"not null;default:0"` Rating retrospective.Rating `gorm:"default:2; not null"` Comment string `gorm:"type:text"` }
SprintMember represents a member of a particular sprint
func (*SprintMember) BeforeSave ¶
func (sprintMember *SprintMember) BeforeSave(db *gorm.DB) (err error)
BeforeSave ...
func (*SprintMember) BeforeUpdate ¶
func (sprintMember *SprintMember) BeforeUpdate(db *gorm.DB) (err error)
BeforeUpdate ...
type SprintMemberTask ¶
type SprintMemberTask struct { gorm.Model SprintMember SprintMember SprintMemberID uint `gorm:"not null"` SprintTask SprintTask SprintTaskID uint `gorm:"not null"` TimeSpentMinutes uint `gorm:"not null"` PointsEarned float64 `gorm:"default:0; not null"` PointsAssigned float64 `gorm:"default:0; not null"` Rating retrospective.Rating `gorm:"default:2; not null"` Comment string `gorm:"type:text"` Role MemberTaskRole `gorm:"default:0; not null"` }
SprintMemberTask represents a task for a member for a particular sprint
func (*SprintMemberTask) BeforeSave ¶
func (sprintMemberTask *SprintMemberTask) BeforeSave(db *gorm.DB) (err error)
BeforeSave ...
func (*SprintMemberTask) BeforeUpdate ¶
func (sprintMemberTask *SprintMemberTask) BeforeUpdate(db *gorm.DB) (err error)
BeforeUpdate ...
type SprintStatus ¶
type SprintStatus int8
SprintStatus ...
const ( DraftSprint SprintStatus = iota ActiveSprint CompletedSprint DeletedSprint )
SprintStatus
func (SprintStatus) GetStringValue ¶
func (status SprintStatus) GetStringValue() string
GetStringValue ...
type SprintSyncStatus ¶
type SprintSyncStatus struct { gorm.Model SprintID uint `gorm:"not null"` Sprint Sprint Status SyncStatus `gorm:"default:0; not null"` }
SprintSyncStatus stores the sync history of a sprint
func (*SprintSyncStatus) BeforeSave ¶
func (syncStatus *SprintSyncStatus) BeforeSave(db *gorm.DB) (err error)
BeforeSave ...
func (*SprintSyncStatus) BeforeUpdate ¶
func (syncStatus *SprintSyncStatus) BeforeUpdate(db *gorm.DB) (err error)
BeforeUpdate ...
type SprintTask ¶
type SprintTask struct { gorm.Model Sprint Sprint SprintID uint `gorm:"not null"` Task Task TaskID uint `gorm:"not null"` }
SprintTask ...
type SyncStatus ¶
type SyncStatus int8
SyncStatus ...
const ( NotSynced SyncStatus = iota Syncing Synced SyncFailed Queued )
SyncStatus
func (SyncStatus) GetStringValue ¶
func (status SyncStatus) GetStringValue() string
GetStringValue ...
type Task ¶
type Task struct { gorm.Model Key string `gorm:"type:varchar(30); not null"` TrackerUniqueID string `gorm:"type:varchar(255); not null"` Retrospective Retrospective RetrospectiveID uint `gorm:"not null"` Summary string `gorm:"type:text; not null"` Description string `gorm:"type:text; not null"` Type string `gorm:"type:varchar(30); not null"` Status string `gorm:"type:varchar(50); not null"` Priority string `gorm:"type:varchar(50); not null"` Assignee string `gorm:"type:varchar(100); not null"` Estimate float64 `gorm:"not null; default: 0"` Fields fields.JSONB `gorm:"type:jsonb; not null; default:'{}'::jsonb"` Rating retrospective.Rating `gorm:"default:2; not null"` DoneAt *time.Time IsTrackerTask bool `gorm:"not null;default: false"` SprintMemberTasks []SprintMemberTask Resolution Resolution `gorm:"default:0"` }
Task represents the tasks for retrospectives
func (*Task) BeforeUpdate ¶
BeforeUpdate ...