Skip to content
Snippets Groups Projects
Commit f0946114 authored by Martin Lowe's avatar Martin Lowe :flag_ca:
Browse files

fix: remove releases from project, as they are now stored in a separate

API call
parent 195080da
No related branches found
No related tags found
1 merge request!271fix: remove releases from project, as they are now stored in a separate
Pipeline #75069 passed
......@@ -25,14 +25,12 @@ import io.soabase.recordbuilder.core.RecordBuilder;
public record Project(int nid, String projectId, String shortProjectId, String name, String summary, String url, String websiteUrl,
List<WebsiteRepo> websiteRepo, String logo, List<String> tags, List<Repo> githubRepos, List<Repo> gitlabRepos, GithubProject github,
GitlabProject gitlab, List<ProjectParticipant> contributors, List<ProjectParticipant> committers,
List<ProjectParticipant> projectLeads, List<Collaboration> industryCollaborations, Object specProjectWorkingGroup,
List<Release> releases, String topLevelProject) {
List<ProjectParticipant> projectLeads, List<Collaboration> industryCollaborations, Object specProjectWorkingGroup, String topLevelProject) {
public Project(int nid, String projectId, String shortProjectId, String name, String summary, String url, String websiteUrl,
List<WebsiteRepo> websiteRepo, String logo, List<String> tags, List<Repo> githubRepos, List<Repo> gitlabRepos, GithubProject github,
GitlabProject gitlab, List<ProjectParticipant> contributors, List<ProjectParticipant> committers,
List<ProjectParticipant> projectLeads, List<Collaboration> industryCollaborations, Object specProjectWorkingGroup,
List<Release> releases, String topLevelProject) {
List<ProjectParticipant> projectLeads, List<Collaboration> industryCollaborations, Object specProjectWorkingGroup, String topLevelProject) {
this.nid = nid;
this.projectId = Objects.requireNonNull(projectId);
this.shortProjectId = Objects.requireNonNull(shortProjectId);
......@@ -52,7 +50,6 @@ public record Project(int nid, String projectId, String shortProjectId, String n
this.projectLeads = Objects.requireNonNull(projectLeads);
this.industryCollaborations = Objects.requireNonNull(industryCollaborations);
this.specProjectWorkingGroup = Objects.requireNonNull(specProjectWorkingGroup);
this.releases = Objects.requireNonNull(releases);
this.topLevelProject = Objects.requireNonNull(topLevelProject);
}
......
......@@ -84,7 +84,6 @@ public class MockProjectsAPI implements ProjectsAPI {
.projectLeads(Collections.emptyList())
.industryCollaborations(Collections.emptyList())
.specProjectWorkingGroup(Collections.emptyMap())
.releases(Collections.emptyList())
.topLevelProject("eclipse")
.build());
......@@ -110,7 +109,6 @@ public class MockProjectsAPI implements ProjectsAPI {
.github(ProjectGithubProjectBuilder.builder().org("org name").ignoredRepos(Collections.emptyList()).build())
.contributors(Collections.emptyList())
.industryCollaborations(Collections.emptyList())
.releases(Collections.emptyList())
.topLevelProject("eclipse")
.build());
......@@ -137,7 +135,6 @@ public class MockProjectsAPI implements ProjectsAPI {
.github(ProjectGithubProjectBuilder.builder().org("org name").ignoredRepos(Collections.emptyList()).build())
.contributors(Collections.emptyList())
.industryCollaborations(Collections.emptyList())
.releases(Collections.emptyList())
.topLevelProject("eclipse")
.build());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment