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; ...@@ -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, 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, List<WebsiteRepo> websiteRepo, String logo, List<String> tags, List<Repo> githubRepos, List<Repo> gitlabRepos, GithubProject github,
GitlabProject gitlab, List<ProjectParticipant> contributors, List<ProjectParticipant> committers, GitlabProject gitlab, List<ProjectParticipant> contributors, List<ProjectParticipant> committers,
List<ProjectParticipant> projectLeads, List<Collaboration> industryCollaborations, Object specProjectWorkingGroup, List<ProjectParticipant> projectLeads, List<Collaboration> industryCollaborations, Object specProjectWorkingGroup, String topLevelProject) {
List<Release> releases, String topLevelProject) {
public Project(int nid, String projectId, String shortProjectId, String name, String summary, String url, String websiteUrl, 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, List<WebsiteRepo> websiteRepo, String logo, List<String> tags, List<Repo> githubRepos, List<Repo> gitlabRepos, GithubProject github,
GitlabProject gitlab, List<ProjectParticipant> contributors, List<ProjectParticipant> committers, GitlabProject gitlab, List<ProjectParticipant> contributors, List<ProjectParticipant> committers,
List<ProjectParticipant> projectLeads, List<Collaboration> industryCollaborations, Object specProjectWorkingGroup, List<ProjectParticipant> projectLeads, List<Collaboration> industryCollaborations, Object specProjectWorkingGroup, String topLevelProject) {
List<Release> releases, String topLevelProject) {
this.nid = nid; this.nid = nid;
this.projectId = Objects.requireNonNull(projectId); this.projectId = Objects.requireNonNull(projectId);
this.shortProjectId = Objects.requireNonNull(shortProjectId); this.shortProjectId = Objects.requireNonNull(shortProjectId);
...@@ -52,7 +50,6 @@ public record Project(int nid, String projectId, String shortProjectId, String n ...@@ -52,7 +50,6 @@ public record Project(int nid, String projectId, String shortProjectId, String n
this.projectLeads = Objects.requireNonNull(projectLeads); this.projectLeads = Objects.requireNonNull(projectLeads);
this.industryCollaborations = Objects.requireNonNull(industryCollaborations); this.industryCollaborations = Objects.requireNonNull(industryCollaborations);
this.specProjectWorkingGroup = Objects.requireNonNull(specProjectWorkingGroup); this.specProjectWorkingGroup = Objects.requireNonNull(specProjectWorkingGroup);
this.releases = Objects.requireNonNull(releases);
this.topLevelProject = Objects.requireNonNull(topLevelProject); this.topLevelProject = Objects.requireNonNull(topLevelProject);
} }
......
...@@ -84,7 +84,6 @@ public class MockProjectsAPI implements ProjectsAPI { ...@@ -84,7 +84,6 @@ public class MockProjectsAPI implements ProjectsAPI {
.projectLeads(Collections.emptyList()) .projectLeads(Collections.emptyList())
.industryCollaborations(Collections.emptyList()) .industryCollaborations(Collections.emptyList())
.specProjectWorkingGroup(Collections.emptyMap()) .specProjectWorkingGroup(Collections.emptyMap())
.releases(Collections.emptyList())
.topLevelProject("eclipse") .topLevelProject("eclipse")
.build()); .build());
...@@ -110,7 +109,6 @@ public class MockProjectsAPI implements ProjectsAPI { ...@@ -110,7 +109,6 @@ public class MockProjectsAPI implements ProjectsAPI {
.github(ProjectGithubProjectBuilder.builder().org("org name").ignoredRepos(Collections.emptyList()).build()) .github(ProjectGithubProjectBuilder.builder().org("org name").ignoredRepos(Collections.emptyList()).build())
.contributors(Collections.emptyList()) .contributors(Collections.emptyList())
.industryCollaborations(Collections.emptyList()) .industryCollaborations(Collections.emptyList())
.releases(Collections.emptyList())
.topLevelProject("eclipse") .topLevelProject("eclipse")
.build()); .build());
...@@ -137,7 +135,6 @@ public class MockProjectsAPI implements ProjectsAPI { ...@@ -137,7 +135,6 @@ public class MockProjectsAPI implements ProjectsAPI {
.github(ProjectGithubProjectBuilder.builder().org("org name").ignoredRepos(Collections.emptyList()).build()) .github(ProjectGithubProjectBuilder.builder().org("org name").ignoredRepos(Collections.emptyList()).build())
.contributors(Collections.emptyList()) .contributors(Collections.emptyList())
.industryCollaborations(Collections.emptyList()) .industryCollaborations(Collections.emptyList())
.releases(Collections.emptyList())
.topLevelProject("eclipse") .topLevelProject("eclipse")
.build()); .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