diff --git a/src/main/java/org/eclipsefoundation/marketplace/dto/Listing.java b/src/main/java/org/eclipsefoundation/marketplace/dto/Listing.java index a6ff060de366a5cdc76ab5807c580c90ab0c20e6..40c5c013a2286a9fd3f9e12b88ce8c1e7e1f327e 100644 --- a/src/main/java/org/eclipsefoundation/marketplace/dto/Listing.java +++ b/src/main/java/org/eclipsefoundation/marketplace/dto/Listing.java @@ -63,7 +63,6 @@ public class Listing extends NodeBase { private List<Author> authors; private List<Tag> tags; private List<SolutionVersion> versions; - private String maintainers; /** * Default constructor, sets lists to empty lists to stop null pointers @@ -74,7 +73,6 @@ public class Listing extends NodeBase { this.versions = new ArrayList<>(); this.categoryIds = new ArrayList<>(); this.categories = new ArrayList<>(); - } /** @@ -349,27 +347,13 @@ public class Listing extends NodeBase { this.versions = new ArrayList<>(versions); } - - * @return the maintainers - */ - public String getMaintainers() { - return maintainers; - } - - /** - * @param maintainers the maintainers to set - */ - public void setMaintainers(String maintainers) { - this.maintainers = maintainers; - } - @Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + Objects.hash(authors, body, categories, categoryIds, creationDate, favoriteCount, foundationMember, homepageUrl, installsRecent, installsTotal, license, logo, organization, status, - supportUrl, tags, teaser, updateDate, versions, maintainers); + supportUrl, tags, teaser, updateDate, versions); return result; } @@ -391,16 +375,15 @@ public class Listing extends NodeBase { && foundationMember == other.foundationMember && Objects.equals(homepageUrl, other.homepageUrl) && installsRecent == other.installsRecent && installsTotal == other.installsTotal && Objects.equals(logo, other.logo) && Objects.equals(organization, other.organization) - && Objects.equals(organizations, other.organizations) && Objects.equals(status, other.status) - && Objects.equals(supportUrl, other.supportUrl) && Objects.equals(tags, other.tags) - && Objects.equals(teaser, other.teaser) && updateDate == other.updateDate - && Objects.equals(url, other.url) && Objects.equals(versions, other.versions); - && Objects.equals(maintainers, other.maintainers); + && Objects.equals(status, other.status) && Objects.equals(supportUrl, other.supportUrl) + && Objects.equals(tags, other.tags) && Objects.equals(teaser, other.teaser) + && updateDate == other.updateDate && Objects.equals(versions, other.versions); } @Override public String toString() { StringBuilder sb = new StringBuilder(); + sb.append("Listing ["); sb.append(", id=").append(getId()); sb.append(", name=").append(getName()); sb.append(", url=").append(getUrl()); @@ -421,7 +404,7 @@ public class Listing extends NodeBase { sb.append(", authors=").append(authors); sb.append(", tags=").append(tags); sb.append(", versions=").append(versions); - sb.append(", maintainers=").append(maintainers); + sb.append(']'); return sb.toString(); } } \ No newline at end of file diff --git a/src/main/java/org/eclipsefoundation/marketplace/dto/codecs/ListingCodec.java b/src/main/java/org/eclipsefoundation/marketplace/dto/codecs/ListingCodec.java index 71330c37fbb2e0c718241e936b4610a43095172a..53bb117ae40b267786d533718ac4f21b49b0da2e 100644 --- a/src/main/java/org/eclipsefoundation/marketplace/dto/codecs/ListingCodec.java +++ b/src/main/java/org/eclipsefoundation/marketplace/dto/codecs/ListingCodec.java @@ -80,7 +80,6 @@ public class ListingCodec implements CollectibleCodec<Listing> { doc.put(DatabaseFieldNames.CREATION_DATE, new Date(value.getCreationDate())); doc.put(DatabaseFieldNames.FOUNDATION_MEMBER_FLAG, value.isFoundationMember()); doc.put(DatabaseFieldNames.CATEGORY_IDS, value.getCategoryIds()); - doc.put(DatabaseFieldNames.MAINTAINERS, value.getMaintainers()); // for nested document types, use the converters to safely transform into BSON // documents @@ -119,7 +118,6 @@ public class ListingCodec implements CollectibleCodec<Listing> { out.setFavoriteCount(document.getLong(DatabaseFieldNames.MARKETPLACE_FAVORITES)); out.setFoundationMember(document.getBoolean(DatabaseFieldNames.FOUNDATION_MEMBER_FLAG)); out.setCategoryIds(document.getList(DatabaseFieldNames.CATEGORY_IDS, String.class)); - out.setMaintainers(document.getString(DatabaseFieldNames.MAINTAINERS)); // for nested document types, use the converters to safely transform into POJO out.setAuthors(document.getList(DatabaseFieldNames.LISTING_AUTHORS, Document.class).stream() diff --git a/src/main/node/index.js b/src/main/node/index.js index cb2aa1a79c3b5beee4e9cfd597112b142ec9467b..d8c99964533ef4f3094dd0a05a9bcc47558fb5d1 100644 --- a/src/main/node/index.js +++ b/src/main/node/index.js @@ -124,7 +124,6 @@ function generateJSON(id) { } ], "versions": solutions, - "maintainers": "Bill and Ted", "category_ids": splice(categoryIds).splice(0,Math.ceil(Math.random()*5)+1) }; }