Skip to content

Commit

Permalink
add custom status count fields to Run and Plan
Browse files Browse the repository at this point in the history
  • Loading branch information
Долженко Дмитрий Григорьевич committed Apr 1, 2020
1 parent ca1b254 commit faada62
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 40 deletions.
41 changes: 24 additions & 17 deletions plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,30 @@ import "strconv"

// Plan represents a Plan
type Plan struct {
AssignedToID int `json:"assignedto_id"`
BlockedCount int `json:"blocked_count"`
CompletedOn int `json:"completed_on"`
CreatedBy int `json:"created_by"`
CreatedOn int `json:"created_on"`
Description string `json:"description"`
Entries []Entry `json:"entries"`
FailedCount int `json:"failed_count"`
ID int `json:"id"`
IsCompleted bool `json:"is_completed"`
MilestoneID int `json:"milestone_id"`
Name string `json:"name"`
PassedCount int `json:"passed_count"`
ProjectID int `json:"project_id"`
RetestCount int `json:"retest_count"`
UntestedCount int `json:"untested_count"`
URL string `json:"url"`
AssignedToID int `json:"assignedto_id"`
BlockedCount int `json:"blocked_count"`
CompletedOn int `json:"completed_on"`
CreatedBy int `json:"created_by"`
CreatedOn int `json:"created_on"`
Description string `json:"description"`
Entries []Entry `json:"entries"`
FailedCount int `json:"failed_count"`
ID int `json:"id"`
IsCompleted bool `json:"is_completed"`
MilestoneID int `json:"milestone_id"`
Name string `json:"name"`
PassedCount int `json:"passed_count"`
ProjectID int `json:"project_id"`
RetestCount int `json:"retest_count"`
UntestedCount int `json:"untested_count"`
URL string `json:"url"`
CustomStatus1Count int `json:"custom_status1_count"`
CustomStatus2Count int `json:"custom_status2_count"`
CustomStatus3Count int `json:"custom_status3_count"`
CustomStatus4Count int `json:"custom_status4_count"`
CustomStatus5Count int `json:"custom_status5_count"`
CustomStatus6Count int `json:"custom_status6_count"`
CustomStatus7Count int `json:"custom_status7_count"`
}

// Entry represents the entry a Plan can have
Expand Down
53 changes: 30 additions & 23 deletions run.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,36 @@ import "strconv"

// Run represents a Run
type Run struct {
AssignedToID int `json:"assignedto_id"`
BlockedCount int `json:"blocked_count"`
CompletedOn int `json:"completed_on"`
Config string `json:"config"`
ConfigIDs []int `json:"config_ids"`
CreatedBy int `json:"created_by"`
CreatedOn int `json:"created_on"`
Description string `json:"description"`
EntryID string `json:"entry_id"`
EntryIndex int `json:"entry_index"`
FailedCount int `json:"failed_count"`
ID int `json:"id"`
IncludeAll bool `json:"include_all"`
IsCompleted bool `json:"is_completed"`
MilestoneID int `json:"milestone_id"`
Name string `json:"name"`
PassedCount int `json:"passed_count"`
PlanID int `json:"plan_id"`
ProjectID int `json:"project_id"`
RetestCount int `json:"retest_count"`
SuiteID int `json:"suite_id"`
UntestedCount int `json:"untested_count"`
URL string `json:"url"`
AssignedToID int `json:"assignedto_id"`
BlockedCount int `json:"blocked_count"`
CompletedOn int `json:"completed_on"`
Config string `json:"config"`
ConfigIDs []int `json:"config_ids"`
CreatedBy int `json:"created_by"`
CreatedOn int `json:"created_on"`
Description string `json:"description"`
EntryID string `json:"entry_id"`
EntryIndex int `json:"entry_index"`
FailedCount int `json:"failed_count"`
ID int `json:"id"`
IncludeAll bool `json:"include_all"`
IsCompleted bool `json:"is_completed"`
MilestoneID int `json:"milestone_id"`
Name string `json:"name"`
PassedCount int `json:"passed_count"`
PlanID int `json:"plan_id"`
ProjectID int `json:"project_id"`
RetestCount int `json:"retest_count"`
SuiteID int `json:"suite_id"`
UntestedCount int `json:"untested_count"`
URL string `json:"url"`
CustomStatus1Count int `json:"custom_status1_count"`
CustomStatus2Count int `json:"custom_status2_count"`
CustomStatus3Count int `json:"custom_status3_count"`
CustomStatus4Count int `json:"custom_status4_count"`
CustomStatus5Count int `json:"custom_status5_count"`
CustomStatus6Count int `json:"custom_status6_count"`
CustomStatus7Count int `json:"custom_status7_count"`
}

// RequestFilterForRun represents the filters
Expand Down

0 comments on commit faada62

Please sign in to comment.