-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LEAT-58: Sprint report #32
Conversation
src/Service/ApiServiceInterface.php
Outdated
@@ -79,4 +82,10 @@ public function getIssuesDataForProject(string $projectId): array; | |||
* @return array<AccountData> | |||
*/ | |||
public function getAllAccountData(): array; | |||
|
|||
public function getAllProjectsV2(): SprintReportProjects; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These 3 functions are already added to ProjectTrackerInterface. Remove them from ApiServiceInterface.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which three?
src/Service/JiraApiService.php
Outdated
} | ||
|
||
public function getProjectVersions(string $projectId): SprintReportVersions | ||
{ | ||
return new SprintReportVersions(); | ||
throw new ApiServiceException('Method not implemented', 404); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be 501 error code
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/501
|
||
public function getSprintReportData(string $projectId, string $versionId): SprintReportData; | ||
|
||
public function getAllProjectsV2(): SprintReportProjects; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename to getSprintReportProjects
|
||
public function getAllProjectsV2(): SprintReportProjects; | ||
|
||
public function getProjectV2(string $projectId): SprintReportProject; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename to getSprintReportProject
|
||
public function getProjectV2(string $projectId): SprintReportProject; | ||
|
||
public function getProjectVersions(string $projectId): SprintReportVersions; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename to getSprintReportProjectVersions
$issues->add($issue); | ||
|
||
// Set issue tag. | ||
if (isset($issueEntry->tags)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing comment about choice of handling all tags as a single comma-separated string
src/Service/LeantimeApiService.php
Outdated
|
||
// Set issue tag. | ||
if (isset($issueEntry->tags)) { | ||
$tagId = $this->tagToId($issueEntry->tags); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$tagId = $this->tagToId($issueEntry->tags); | |
$tagId = $issueEntry->tags |
Link to ticket
LEAT-58
Description
Adds leantime support for sprint report.
Checklist