Open autumnfound opened 5 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.
We require the ability to set listings to be unpublished or published, as well as approved and unapproved.