impress/app/models
Emi Matchu ed5b62e161 Use PetType's created_at to predict who an item might be compatible with
This is a basic attempt at the Vandagyre logic, but also things like
"Maraquan items released before the Maraquan X was released"!

I also added a new task, `rails items:update_cached_fields`, which needs
to be run after this change, because it affects the value of
`Item#predicted_fully_modeled?`.

Eyeballing the updated search results for `-is:modeled`, this feels
pretty close? I'm guessing it's not perfect (e.g. maybe a pet type we
got modeled late into its existence, or some items that just never did
fit a certain pet), but feels pretty good.

I also know we had the "modeling hints" override in Impress 2020, which
we aren't reading yet. We should probably take that into account here
too!
2024-11-19 16:41:50 -08:00
..
fundraising Move fundraising models into the Fundraising module 2024-02-18 20:29:31 -08:00
item Add is:modeled query to items 2024-11-19 15:54:55 -08:00
pet Reapply "Extract modeling ViewerData class into new Pet::ModelingSnapshot file" 2024-11-10 11:43:54 -08:00
alt_style.rb Fall back to blank image if alt style has no preview image 2024-11-15 20:04:45 -08:00
application_record.rb Upgrade to Rails 5.2.8.1 2023-10-23 19:05:05 -07:00
auth_record.rb Add AuthUser model, connecting to openneo_id db 2023-10-23 19:05:07 -07:00
auth_user.rb Move NCMall and NeoPass services into a Neopets module 2024-10-18 17:27:15 -07:00
closet_hanger.rb Fix MissingAttributeError in ClosetHanger#merge_quantities 2024-02-28 13:30:55 -08:00
closet_list.rb Disallow email addresses in closet list descriptions 2024-04-16 17:04:31 -07:00
closet_visibility.rb Delete a couple unused accessors 2023-11-11 15:42:08 -08:00
color.rb Handle new colors/species in the Rainbow Pool 2024-11-15 19:56:07 -08:00
contribution.rb Track contributions of Alt Styles 2024-01-24 03:54:43 -08:00
item.rb Use PetType's created_at to predict who an item might be compatible with 2024-11-19 16:41:50 -08:00
item_outfit_relationship.rb Oops, update outfit's updated_at when adding/removing items 2024-02-08 10:32:53 -08:00
nc_mall_record.rb Add more info to NC Mall section of Item Getting Guide 2024-05-14 16:04:40 -07:00
neopets_connection.rb Upgrade to Rails 5.2.8.1 2023-10-23 19:05:05 -07:00
neopets_page.rb Update most URLs to use HTTPS 2023-10-25 15:22:57 -07:00
outfit.rb Add Customize More button back to item pages 2024-09-06 17:12:11 -07:00
parent_swf_asset_relationship.rb Revert modeling refactors to the old modeling that worked! 2024-11-06 14:31:16 -08:00
pet.rb Reapply "Extract modeling ViewerData class into new Pet::ModelingSnapshot file" 2024-11-10 11:43:54 -08:00
pet_state.rb Reapply "Use our IntegerSet serializer for PetState#swf_asset_ids" 2024-11-10 11:41:06 -08:00
pet_type.rb Use PetType's created_at to predict who an item might be compatible with 2024-11-19 16:41:50 -08:00
species.rb Handle new colors/species in the Rainbow Pool 2024-11-15 19:56:07 -08:00
swf_asset.rb Revert modeling refactors to the old modeling that worked! 2024-11-06 14:31:16 -08:00
user.rb Add shadowban mechanism for closet lists 2024-04-20 20:57:15 -07:00
zone.rb Remove unused logic for whether a zone is "sometimes" occupied 2024-08-31 13:16:47 -07:00