Skip to content

Show only "sellable" articles/subscriptions #536

@nymous

Description

@nymous

In #527 we added the sellable scope to Articles and SubscriptionOffers, but some places where we use these models were forgotten:

  • SubscriptionOffers passed to the "new sale" controller (app/controllers/sales_controller.rb
  • in the same controller, "create sale" action when errored, for Articles and SubscriptionOffers
  • remove all .unscoped in tests

Also in the admin dashboard, maybe we can distinguish between sellable and unsellable items (strikethrough? in a separate list hidden by default?). At least remove the delete icon for items that have already been deleted).
Maybe we can add a sellable? method on models for ease of use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions