1
0
Fork 0
Commit Graph

105 Commits

Author SHA1 Message Date
Andrew Tomaka 97bf360353 Merge branch 'atomaka/feature/type-on-card-index' into 'master'
Add type and rarity to card index



See merge request !27
2015-11-09 12:50:37 -05:00
Andrew Tomaka 6f3957a0b2 Add type and rarity to card index 2015-11-09 12:49:57 -05:00
Andrew Tomaka c16b1dcb4f Merge branch 'atomaka/bugfix/card-cost' into 'master'
Accept the Card Cost stat

need to accept the paramater

See merge request !26
2015-11-09 12:36:03 -05:00
Andrew Tomaka 69dc25001f Accept the Card Cost stat 2015-11-09 12:34:58 -05:00
Andrew Tomaka e9f76f2d62 Add the new StatType in the migration 2015-11-09 12:23:04 -05:00
Andrew Tomaka c6a42c7c8f Merge branch 'atomaka/feature/costs' into 'master'
Add Cost Stat

Database migration will update all cards to add new stat with all zero values.

See merge request !25
2015-11-09 12:17:08 -05:00
Andrew Tomaka 697c893b17 Add Cost Stat 2015-11-09 12:11:53 -05:00
Andrew Tomaka 3a80191239 Merge branch 'atomaka/bugfix/staging-api' into 'master'
Allow api subdomain on staging to work too

in staging, the subdomain becomes 'api.staging' and 'api' will not match. We can resolve this with a regex: `/^api(\.|$)/`.

There is a configuration setting, `config.action_dispatch.tld_length` that could resolve this as well.  Typically, I imagine this being set by environment, but since Heroku suggests running all Rails apps as production, even if it is a different environment, this isn't really an option.

See merge request !24
2015-11-04 14:20:31 -05:00
Andrew Tomaka ab32f5dad9 Allow api subdomain on staging to work too 2015-11-04 14:18:40 -05:00
Andrew Tomaka 550fc91138 Merge branch 'atomaka/feature/api-subdomain' into 'master'
Constrain API to the api subdomain



See merge request !23
2015-11-04 14:10:43 -05:00
Andrew Tomaka 2f52a92c67 Constrain API to the api subdomain 2015-11-04 14:04:13 -05:00
Andrew Tomaka 4555334d05 Merge branch 'atomaka/bugfix/card-order' into 'master'
Default scope sucks, fix ordering for cards

`default_scope` is always active.  It can be disabled by creating your ActiveRecord query with `unscoped` but that requires knowing about `default_scope`. Let's remove it and order per use case.

See merge request !22
2015-11-04 12:00:07 -05:00
Andrew Tomaka 803837fdb3 Default scope sucks, fix ordering for cards 2015-11-04 11:56:26 -05:00
Andrew Tomaka 2f2e4b2381 Merge branch 'atomaka/feature/card-by-updated' into 'master'
Sort cards by updated_at in admin

Cards that were recently updated, have a higher chance to be updated again because of the bouncing around between screens.  Put those at the top.

See merge request !21
2015-11-04 11:47:33 -05:00
Andrew Tomaka 70f410baa5 Sort cards by updated_at in admin 2015-11-04 11:46:44 -05:00
Andrew Tomaka 9505e08b28 Merge branch 'atomaka/feature/dashboard' into 'master'
Get Started On Dashboard

Add a few things for a basic dashboard

See merge request !20
2015-11-03 16:22:35 -05:00
Andrew Tomaka 7419056e2c Track newly created cards 2015-11-03 16:21:41 -05:00
Andrew Tomaka 6a6a31b77c Add some basic info to the dashboard 2015-11-03 16:15:20 -05:00
Andrew Tomaka a0be5a27d2 Fix migration so it doesn't break things! 2015-11-03 15:37:21 -05:00
Andrew Tomaka c0bd723e31 Merge branch 'atomaka/feature/useful-things' into 'master'
Skill Useful Fixes

* Add default sort order to the Leader Skill page
* Remove passive skill name requirement.

See merge request !19
2015-11-03 15:31:05 -05:00
Andrew Tomaka cd7e8f736f Allow unnamed passive skills 2015-11-03 15:29:10 -05:00
Andrew Tomaka 8bef784209 Order leader skills alphabetically 2015-11-03 15:16:26 -05:00
Andrew Tomaka 59384c0b85 Merge branch 'atomaka/feature/link-counter-cache' into 'master'
Add counter cache for links

It is difficult to find out which cards are missing links.  This allows us to easily find those cards.

See merge request !18
2015-11-03 14:37:22 -05:00
Andrew Tomaka ab8b944682 Add counter cache for links 2015-11-03 14:36:44 -05:00
Andrew Tomaka 1302454e5e Remove caching 2015-11-03 13:24:10 -05:00
Andrew Tomaka c5816a3f43 Enable caching 2015-11-03 13:21:11 -05:00
Andrew Tomaka 480dbd1a64 Merge branch 'atomaka/feature/api-caching' into 'master'
Add some memory caching for now

This is a very basic cache for the time being.  I am not even sure if it is a performance gain.

See merge request !17
2015-11-03 13:17:18 -05:00
Andrew Tomaka 8c826b44ee Add some memory caching for now 2015-11-03 13:16:59 -05:00
Andrew Tomaka 44b4f7314d Merge branch 'atomaka/bugfix/api-n+1' into 'master'
Fix N+1 on API

Rarity
Type
Leader Skill
Passive Skill
Super Attack
Awaken Type
Dokkan Card
HP, ATK, Def
Links (one query per)

N+11-16 depending on link count * 224 cards = > 3000 queries.  WHOOPS.

Let's drop that down to 13 queries total.

See merge request !16
2015-11-03 12:09:23 -05:00
Andrew Tomaka 183ca46fa4 Fix N+1 on API 2015-11-03 12:04:58 -05:00
Andrew Tomaka 6910d6ae89 Merge branch 'development' into 'master'
Development



See merge request !15
2015-10-27 09:52:25 -04:00
Andrew Tomaka 8b7216e1ad Merge branch 'atomaka/feature/cors' into 'development'
Deal with cross origins



See merge request !14
2015-10-27 09:51:57 -04:00
Andrew Tomaka 7e82b16f29 Deal with cross origins 2015-10-27 09:42:56 -04:00
Andrew Tomaka 307262a701 Merge branch 'development' 2015-10-25 17:35:51 -04:00
Andrew Tomaka 092d712378 Finishing of stat import 2015-10-25 17:35:36 -04:00
Andrew Tomaka 242da0bfca Merge branch 'development' into 'master'
Development



See merge request !13
2015-10-25 11:49:34 -04:00
Andrew Tomaka f50b344645 Merge branch 'atomaka/feature/importer-links' into 'development'
Add passive and link descriptions

Update the importer to add passive and link descriptions from atomaka data sources.

See merge request !12
2015-10-25 11:43:04 -04:00
Andrew Tomaka 2ba6dcaa17 Add passive and link descriptions 2015-10-25 11:41:37 -04:00
Andrew Tomaka d0daf51aef Merge branch 'development' into 'master'
Development

Includes new importer

See merge request !11
2015-10-23 20:42:18 -04:00
Andrew Tomaka d9b5ed17a5 Merge branch 'atomaka/feature/importer' into 'development'
Build importer

Attempt to import data from renzy's store.

See merge request !10
2015-10-23 20:40:28 -04:00
Andrew Tomaka 5730e0ade5 Build importer 2015-10-23 20:32:44 -04:00
Andrew Tomaka 8eccf7e152 Make passive skills more usable.
See merge request !9
2015-10-23 13:44:09 -04:00
Andrew Tomaka 70e44b948f Merge branch 'atomaka/bugfix/full-passive-skill' into 'development'
Show all relevant passive skill details

Fix to issue #2 

See merge request !8
2015-10-23 13:42:49 -04:00
Andrew Tomaka 72c012a5df Show all relevant passive skill details 2015-10-23 13:41:19 -04:00
Andrew Tomaka aee4ec8da4 Merge branch 'development' into 'master'
Development

Bugfixes to add uniqueness constraints to Super Attacks and Leader Skills

See merge request !7
2015-10-23 11:29:04 -04:00
Andrew Tomaka 6e9ad101e0 Merge branch 'atomaka/bugfix/unique-passive-skill' into 'development'
Uniqueness constraint on passive skill



See merge request !6
2015-10-23 11:28:07 -04:00
Andrew Tomaka 23796373f0 Uniqueness constraint on passive skill 2015-10-23 11:27:15 -04:00
Andrew Tomaka 5a59c4d798 Merge branch 'atomaka/bugfix/unique-super-attacks' into 'development'
Super Attack name + description should be unique



See merge request !5
2015-10-23 11:22:32 -04:00
Andrew Tomaka f5f91f0ff9 Super Attack name + description should be unique 2015-10-23 11:21:26 -04:00
Andrew Tomaka cfac2aaff7 Merge branch 'atomaka/bugfix/unique-leader-skill' into 'development'
Require leader skills to be unique



See merge request !4
2015-10-23 11:06:22 -04:00