1
0
Fork 0
forked from OpenNeo/impress
impress/app/controllers
Emi Matchu dc44b4dbb3 Oops, fix bug with saving outfits of pets loaded from Neopets.com
Okay right, the wardrobe-2020 app treats `state` as a bit of an
override thing, and `pose` is the main canonical field for how a pet
looks. We were missing a few pieces here:

1. After loading a pet, we weren't including the `pose` field in the
   initial query string for the wardrobe URL, but we _were_ including
   the `state` field, so the outfit would get set up with a conflicting
   pet state ID vs pose.
2. When saving an outfit, we weren't taking the `state` field into
   account at all. This could cause the saved outfit to not quite match
   how it actually looked in-app, because the default pet state for
   that species/color/pose trio could be different; and regardless, the
   outfit state would come back with `appearanceId` set to `null`,
   which wouldn't match the local outfit state, which would trigger an
   infinite loop.

Here, we complete the round-trip of the `state` field, from pet loading
to outfit saving to the outfit data that comes back after saving!
2024-02-08 09:51:31 -08:00
..
alt_styles_controller.rb Add SVG support to alt styles 2024-01-31 03:02:19 -08:00
application_controller.rb Add mini profiler to each page 2023-10-27 19:38:49 -07:00
campaigns_controller.rb new donate layout for post-2017 campaign 2018-01-18 17:14:02 -08:00
closet_hangers_controller.rb Fix closet list petpage export 2023-11-06 12:55:03 -08:00
closet_lists_controller.rb Use flash[:notice] instead of flash[:success] 2023-10-23 19:05:07 -07:00
contributions_controller.rb Track contributions of Alt Styles 2024-01-24 03:54:43 -08:00
donation_features_controller.rb homepage outfit features 2014-09-10 15:38:26 -05:00
donations_controller.rb Use flash[:notice] instead of flash[:success] 2023-10-23 19:05:07 -07:00
item_appearances_controller.rb Load item page restricted zones data from Rails app, not impress-2020 2023-11-11 08:49:19 -08:00
item_trades_controller.rb Oops, load the data for the bulk item quantity form on the trades page! 2024-01-21 06:42:24 -08:00
items_controller.rb Oops, load the data for the bulk item quantity form on the trades page! 2024-01-21 06:42:24 -08:00
locales_controller.rb locale cookie should be long-term, not a session cookie 2013-01-24 18:24:33 -06:00
neopets_connections_controller.rb closet hangers index uses neopets connections dropdown 2014-01-18 22:50:14 -06:00
neopets_page_import_tasks_controller.rb Fix petpage etc import 2023-11-06 12:59:28 -08:00
outfits_controller.rb Oops, fix bug with saving outfits of pets loaded from Neopets.com 2024-02-08 09:51:31 -08:00
pet_types_controller.rb Remove references to species/color translations at call sites 2024-01-23 05:23:57 -08:00
pets_controller.rb Add alt style support to modeling 2024-01-24 03:25:23 -08:00
sitemap_controller.rb move from with_translations to includes(:translations), since we dont usually care about requiring 2013-01-24 18:26:00 -06:00
static_controller.rb yum, new campaigns 2015-08-05 19:26:12 -04:00
users_controller.rb Use flash[:notice] instead of flash[:success] 2023-10-23 19:05:07 -07:00