Commit 88e9657
authored
fix: Updated both job files 4 sidekiq (#13)
* feat: implement datadragon and player sync
1. Data Dragon Service - Busca dados estáticos da Riot
2. Região Configurável - Não mais hardcoded, usa player.region
3. Champion Mapping - Funcionando corretamente agora
4. 8 Novos API Endpoints - Para dados da Riot
5. 5 Rake Tasks - Gerenciamento de cache e sync
6. Suite de Testes - Criada para SyncPlayerFromRiotJob
* chore: add admin bypass ruleset
* feat(players): extract riot sync service
- Create Players::Services::RiotSyncService
- Extract Riot API logic from controller
- Support import, sync, search operations
- Add retry logic for better success
* feat(players): extract stats service
- Create Players::Services::StatsService (90 lines)
- Extract statistics calculation
- Calculate win rate, KDA, recent form
- Make stats reusable and testable
* refactor(players): migrate controller to module
- Move to Players::Controllers namespace
- Reduce from 750 to 350 lines (-53%)
- Use services for business logic
- Create proxy for backwards compatibility
* refactor(players): migrate serializers and jobs
- Move serializers to Players module
- Move jobs to Players module
- Organize all players domain code
* refactor(auth): migrate authentication module
- Move AuthController to module
- Move User and Organization serializers
- JwtService already in module
- Create proxy controller
* refactor: migrate matches, schedules, team goals
- Migrate 3 core business modules
- Organize by domain functionality
- Create proxies for all
* refactor: migrate analytics module
- Migrate 7 analytics controllers
- Organize performance analysis
- Maintain namespace structure
* refactor: migrate scouting module
- Migrate scouting controllers
- Move serializers and jobs
- Organize talent discovery
* refactor: migrate riot integration
- Migrate 2 Riot controllers
- Move 2 services to module
- Consolidate Riot API functionality
* refactor: migrate vod reviews and dashboard
- Migrate VOD Reviews (2 controllers)
- Migrate Dashboard module
- Organize video review features
* refactor: migrate dashboard to modular arc
- Migrate Dashboard module
* docs: finalize migration and update gitignore
- Update gitignore for backups
- Complete modular architecture migration
* fix: Updated both job files 4 sidekiq (#12)
1. Use /lol/league/v4/entries/by-puuid/{puuid} instead of /by-summoner/{id}
2. Added new method fetch_ranked_stats_by_puuid as a workaround1 parent 041c1cb commit 88e9657
3 files changed
Lines changed: 47 additions & 11 deletions
File tree
- app
- jobs
- modules/players/jobs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
| |||
20 | 18 | | |
21 | 19 | | |
22 | 20 | | |
23 | | - | |
24 | 21 | | |
25 | 22 | | |
26 | | - | |
27 | 23 | | |
28 | 24 | | |
29 | 25 | | |
30 | 26 | | |
31 | 27 | | |
32 | 28 | | |
33 | | - | |
34 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
35 | 32 | | |
36 | | - | |
37 | 33 | | |
38 | 34 | | |
39 | 35 | | |
| |||
43 | 39 | | |
44 | 40 | | |
45 | 41 | | |
46 | | - | |
47 | 42 | | |
48 | 43 | | |
49 | 44 | | |
| |||
85 | 80 | | |
86 | 81 | | |
87 | 82 | | |
88 | | - | |
89 | 83 | | |
90 | 84 | | |
91 | 85 | | |
| |||
144 | 138 | | |
145 | 139 | | |
146 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
147 | 161 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
139 | 161 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
0 commit comments