Skip to content
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

Merged
merged 36 commits into from
Jan 4, 2024
Merged

Conversation

jeppekroghitk
Copy link
Contributor

@jeppekroghitk jeppekroghitk commented Nov 29, 2023

Link to ticket

LEAT-58

Description

Adds leantime support for sprint report.

Checklist

  • My code is covered by test cases.
  • My code passes our test (all our tests).
  • My code passes our static analysis suite.
  • My code passes our continuous integration process.

@jeppekroghitk jeppekroghitk changed the base branch from develop to feature/api-setup-and-planning-overview November 29, 2023 13:25
Base automatically changed from feature/api-setup-and-planning-overview to feature/leantime December 13, 2023 09:20
@jeppekroghitk jeppekroghitk requested a review from tuj December 13, 2023 09:36
src/Service/JiraApiService.php Outdated Show resolved Hide resolved
src/Service/JiraApiService.php Outdated Show resolved Hide resolved
src/Service/JiraApiService.php Outdated Show resolved Hide resolved
src/Service/LeantimeApiService.php Outdated Show resolved Hide resolved
src/Service/LeantimeApiService.php Show resolved Hide resolved
@@ -79,4 +82,10 @@ public function getIssuesDataForProject(string $projectId): array;
* @return array<AccountData>
*/
public function getAllAccountData(): array;

public function getAllProjectsV2(): SprintReportProjects;
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which three?

@jeppekroghitk jeppekroghitk requested a review from tuj January 3, 2024 15:00
}

public function getProjectVersions(string $projectId): SprintReportVersions
{
return new SprintReportVersions();
throw new ApiServiceException('Method not implemented', 404);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


public function getSprintReportData(string $projectId, string $versionId): SprintReportData;

public function getAllProjectsV2(): SprintReportProjects;
Copy link
Contributor

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;
Copy link
Contributor

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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to getSprintReportProjectVersions

src/Service/LeantimeApiService.php Outdated Show resolved Hide resolved
$issues->add($issue);

// Set issue tag.
if (isset($issueEntry->tags)) {
Copy link
Contributor

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


// Set issue tag.
if (isset($issueEntry->tags)) {
$tagId = $this->tagToId($issueEntry->tags);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$tagId = $this->tagToId($issueEntry->tags);
$tagId = $issueEntry->tags

@jeppekroghitk jeppekroghitk requested a review from tuj January 4, 2024 08:10
@jeppekroghitk jeppekroghitk merged commit 34f9c88 into feature/leantime Jan 4, 2024
6 checks passed
@jeppekroghitk jeppekroghitk deleted the feature/sprint-planning branch January 4, 2024 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants