hensei-api/app/models
Justin Edmund c0922203a7
Create pipeline for importing data via PRs (#148)
* Add table for data version and migrate

* Modify migration and re-migrate

* Create data_version.rb

Adds a model for DataVersion

* Add aws-sdk-s3 and create aws_service.rb

AwsService handles streaming game image files from the Granblue Fantasy server to our S3 instance.

* Add importers

The Importer libraries take CSV data and import them into the database for each type. We currently support characters, summons and weapons.

* Add downloaders

Downloaders take Granblue IDs and download images for those items from the Granblue Fantasy server in all relevant sizes.

Downloaders can download to disk or stream the file directly to S3.

* Create data_importer.rb

* Fetches a list of all CSV files present in the updates folder
* Checks which have already been imported
* Sends unimported data to the appropriate Importer to handle

* Create download_manager.rb

Creates an appropriate downloader for each Granblue ID it receives

* Update download_images.rake

Most of this task has been extracted into the Downloader libraries

* Update import_data.rake

* Create deploy.rake

This task is to be run as a post-deploy script. It checks for new unimported data, imports it, then downloads the relevant images to S3 or local disk depending on the parameters provided.

* Update credentials.yml.enc

* Began working on a README and added example CSVs

* Modify importer to handle updates

This way we can also add FLBs and other uncaps easier.

* Updates only require values that will change

When updating a row, fields that don't have a provided value will not be changed

* Rebuild search indices in post deploy

* Clean up logs with LoggingHelper

* More logging adjustments

Trying to get a nice-looking output

* Change some ASCII characters

* Final ASCII changes

* Fix issues with Summon and Weapon importers

* Finish README for contributing
2025-01-13 05:33:04 -08:00
..
concerns Restart on Rails 2020-09-14 18:30:54 -07:00
app_update.rb February 2023 Update (#48) 2023-02-04 23:46:12 -08:00
application_record.rb Run RuboCop on everything 2022-12-21 00:22:47 -08:00
awakening.rb June 2023 Update (#102) 2023-06-19 03:53:48 -07:00
character.rb Don't index on nicknames for now (#139) 2023-12-26 14:03:29 -08:00
data_version.rb Create pipeline for importing data via PRs (#148) 2025-01-13 05:33:04 -08:00
favorite.rb Add all blueprints and associate with models 2022-12-21 03:31:55 -08:00
gacha.rb Update seeds and fix deletion bug (#110) 2023-06-23 20:34:08 -07:00
grid_character.rb Add support for inclusions/exclusions (#124) 2023-08-21 20:01:15 -07:00
grid_summon.rb Add support for inclusions/exclusions (#124) 2023-08-21 20:01:15 -07:00
grid_weapon.rb Add support for weapon transcendence (#142) 2024-01-15 14:05:17 -08:00
guidebook.rb June 2023 Update (#102) 2023-06-19 03:53:48 -07:00
job.rb July 2023 Feature Release: Tagging objects (#118) 2023-07-05 21:51:36 -07:00
job_accessory.rb February 2023 Update (#48) 2023-02-04 23:46:12 -08:00
job_skill.rb June 2023 Update (#102) 2023-06-19 03:53:48 -07:00
party.rb Allow PartiesController to accept nested attributes (#141) 2024-01-13 09:56:55 -08:00
raid.rb June 2023 Update (#102) 2023-06-19 03:53:48 -07:00
raid_group.rb June 2023 Update (#102) 2023-06-19 03:53:48 -07:00
summon.rb Don't index on nicknames for now (#139) 2023-12-26 14:03:29 -08:00
user.rb Implement roles and visibility (#128) 2023-08-25 15:53:56 -07:00
weapon.rb Don't index on nicknames for now (#139) 2023-12-26 14:03:29 -08:00
weapon_awakening.rb June 2023 Update (#102) 2023-06-19 03:53:48 -07:00
weapon_key.rb Add all blueprints and associate with models 2022-12-21 03:31:55 -08:00