Dress to Impress, a big fancy Neopets customization tool!
Find a file
Matchu 96998643b5 Add manifest_url to swf_assets table
Ok so, impress-2020 guesses the manifest URL every time based on common
URL patterns. But the right way to do this is to read it from the
modeling data! But also, we don't have a great way to get the modeling
data directly. (Though as I write this, I guess we do have that
auto-modeling trick we use in the DTI 2020 codebase, I wonder if that
could work for this too?)

So anyway, in this change, we update the modeling code to save the
manifest URL, and also the migration includes a big block that attempts
to run impress-2020's manifest-guessing logic for every asset and save
the result!

It's uhh. Not fast. It runs at about 1 asset per second (a lot of these
aren't cache hits), and sometimes stalls out. And we have >600k assets,
so the estimated wall time is uhh. Seven days?

I think there's something we could do here around like, concurrent
execution? Though tbqh with the nature of the slowness being seemingly
about hitting the slow underlying images.neopets.com server, I don't
actually have a lot of faith that concurrency would actually be faster?

I also think it could be sensible to like… extract this from the
migration, and run it as a script to infer missing manifest URLs. That
would be easier to run in chunks and resume if something goes wrong.
Cuz like, I think my reasoning here was that backfilling this data was
part of the migration process… but the thing is, this migration can't
reliably get a manifest for everything (both cuz it depends on an
external service and cuz not everything has one), so it's a perfectly
valid migration to just leave the column as null for all the rows to
start, and fill this in later. I wish I'd written it like that!

But anyway, I'm just running this for now, and taking a break for the
night. Maybe later I'll come around and extract this into a separate
task to just try this on all assets missing manifests instead!
2023-11-09 21:42:51 -08:00
.devcontainer Build wardrobe-2020 JS during dev container setup 2023-10-26 21:39:42 +00:00
.husky Set up eslint for wardrobe-2020 2023-11-02 18:11:07 -07:00
.vscode Add the Pardon Our Dust page 2023-10-23 19:05:09 -07:00
app Add manifest_url to swf_assets table 2023-11-09 21:42:51 -08:00
bin Upgrade to Rails 7.1.1 2023-10-25 15:05:31 -07:00
config Remove "Import from pets" page 2023-11-06 13:06:18 -08:00
db Add manifest_url to swf_assets table 2023-11-09 21:42:51 -08:00
deploy Kill the app at high RAM, instead of trying to throttle it first 2023-10-27 17:03:08 -07:00
lib Update most URLs to use HTTPS 2023-10-25 15:22:57 -07:00
public Stop saving local copies of SWFs 2023-10-23 19:05:10 -07:00
test Remove unused automated testing files & gems 2023-10-25 16:09:01 -07:00
vendor Add Sentry to Rails 2023-11-06 12:37:40 -08:00
.eslintrc.json Set up eslint for wardrobe-2020 2023-11-02 18:11:07 -07:00
.gitignore Add .env.* to gitignore 2023-10-27 17:44:12 -07:00
.ruby-version Upgrade to Ruby 3.1.4 2023-10-23 19:05:07 -07:00
config.ru Upgrade to Rails 6.1.7.4 2023-10-23 19:05:07 -07:00
Gemfile Add Sentry to Rails 2023-11-06 12:37:40 -08:00
Gemfile.lock Add Sentry to Rails 2023-11-06 12:37:40 -08:00
LICENSE.md Update our license 2023-10-23 19:04:56 -07:00
package.json Set up eslint for wardrobe-2020 2023-11-02 18:11:07 -07:00
Procfile.dev Fix bin/dev to use the right settings in development 2023-11-02 16:54:39 -07:00
Rakefile Uninstall resque 2023-10-23 19:05:04 -07:00
README.md Oops, needs to be a README.md file! 2023-10-25 16:31:41 -07:00
yarn.lock Set up eslint for wardrobe-2020 2023-11-02 18:11:07 -07:00

Dress to Impress beach logo

Dress to Impress

Oh! We've been revitalizing the Rails app! Fun!

There'll be more to say about it here soon :3