refactor: wire Dashboard, ListIssues, ListPulls to templates #45
Reference in New Issue
Block a user
Delete Branch "feature/template-refactor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Dashboardhandler to renderdashboard.htmltemplate withItemsandErrorfieldsListIssueshandler to renderissues.htmltemplate withIssues,Orgs,SelectedOrg,SelectedState,HasMore,NextPage,ErrorfieldsListPullshandler to renderpulls.htmltemplate withPulls,Orgs,SelectedOrg,Errorfieldsfmt.SprintfHTML template strings from the three handlersListIssuesnow reads?org=and?state=query params for filteringListPullsnow reads?org=query param for filteringCloses #34
Unblocks #32 (pagination)
Test plan
GET /renders dashboard.html template with triage itemsGET /issuesrenders issues.html templateGET /issues?org=leeworks-agents&state=closedreturns filtered resultsGET /pullsrenders pulls.html templateGET /pulls?org=leeworks-agentsreturns filtered resultsgo test ./...passes