EclipseFdn / marketplace-rest-api

Proof of concept project within the Microservice initiative, the Foundation looks to leverage Quarkus to renew their MPC API.
https://eclipsefdn.github.io/marketplace-rest-api-specs/
Eclipse Public License 2.0
2 stars 10 forks source link

Add moderation + publish status to listings #24

Open autumnfound opened 5 years ago

autumnfound commented 5 years ago

We require the ability to set listings to be unpublished or published, as well as approved and unapproved.

autumnfound commented 4 years ago

In order to achieve this, 3 files will need to be updated:

In org.eclipsefoundation.marketplace.dto.Listing, 2 new properties should be added named moderationStatus and publishStatus. They should have standard getters/setters to follow the standard accessor pattern.

The codec org.eclipsefoundation.marketplace.dto.codecs.ListingCodec will need to have lines added to encode and decode to ensure the fields are properly written to the database. The field names should follow the pattern of other fields (e.g. moderation_status and publish_status).

The listing filter org.eclipsefoundation.marketplace.dto.filter.ListingFilter should have 2 new checks in getFilters that compare the values passed from the query string parameters if it exists.