derpibooru / philomena

Next-generation imageboard
https://derpibooru.org/
GNU Affero General Public License v3.0
219 stars 56 forks source link

New Commissions Not Searchable #56

Closed SomewhatDamaged closed 4 years ago

SomewhatDamaged commented 4 years ago

Describe the bug Making a new commission (via /profiles/:name/commission/new) and then adding an item to it (via /profiles/:name/commission/items/new), doesn't update the commission_items_count value.

So, when searching commissions and it filters for commission_items_count > 0, it doesn't show the commission.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://derpibooru.org/commissions
  2. Click on "Create My Listing"
  3. Create a listing for yourself.
  4. Click "Add An Item"
  5. Add an item
  6. Go to https://derpibooru.org/commissions

Expected behavior The listing should be searchable via https://derpibooru.org/commissions

Screenshots Showing debug from my dev build. This shows there being a commission_items_count of 0 despite there being a commission item present. image

Desktop (please complete the following information):

liamwhite commented 4 years ago

Went through and fixed all the old data.