a123e5fe23
Assign local ID when remixing as unauth
2023-02-03 19:32:22 -08:00
bdb68f17a9
Fix bug in party controller authorization
2023-02-02 02:28:46 -08:00
7d576c3485
Update controllers to properly authorize
...
For some of these, they weren't authorizing at all, so this is a good safety improvement
2023-01-31 02:51:38 -08:00
cce33ebf08
Add local_id to Party object
...
We can't save in the user_id column because it is an association, but that's okay
2023-01-31 00:54:17 -08:00
bedd72a753
Add edit_key to Parties output on create
...
We create a new view `created` that includes the `full` view but adds the `edit_key` param
2023-01-31 00:29:29 -08:00
7d142ada54
Add accessory_id to Party and enable saving
...
Saves without validation right now
2023-01-24 02:11:54 -08:00
18ca78a272
Implement localized remix names
2023-01-09 00:29:12 -08:00
fa2962ae1c
Add remix method to parties controller
2023-01-08 21:50:30 -08:00
1925678888
Return when no params
2023-01-08 21:50:30 -08:00
b0b446aba3
Fix set_from_slug
2023-01-08 21:50:30 -08:00
433bd19f6d
Fix party creation
2023-01-08 21:50:30 -08:00
2a465aca3b
Move shortcode setting to before_save on Party model
2023-01-08 21:50:30 -08:00
70bbd47606
Add endpoint and stub method
2023-01-08 21:49:57 -08:00
78df1df683
Allow empty strong params
2023-01-08 01:30:12 -08:00
beeeef3104
TEMP: Comment out problematic code
...
We don't ever send parameters when posting a party, so for now we don't need to worry about this.
We can't leave this like this though: You should be able to send a complete party in the future (for API creation via strings)
2023-01-08 01:16:25 -08:00
3226acdf4a
Allow input of expanded details and output them
2023-01-03 08:05:47 -08:00
6f588386d0
Filter out grids that don't have more than two distinct weapons
2022-12-29 02:36:52 -08:00
f17be0ea03
Merge branch 'main' of github.com:jedmund/hensei-api
2022-12-23 19:24:12 -08:00
e0df40f035
Remove log
2022-12-23 19:22:45 -08:00
574d8e0b3e
Normalize constants in ApiController
2022-12-23 19:08:36 -08:00
c5391a6683
Fix bug where now wasn't replaced
2022-12-22 00:44:39 -08:00
415ef39158
Add per_page to methods that return collections
2022-12-21 23:15:17 -08:00
af51869927
Fix build_conditions method
...
The method of assigning values was assigning nil if the value wasn't present in `params`, which is bad
2022-12-21 16:20:00 -08:00
290099e2f4
Refactor PartiesController for blueprinter
...
* Refactored and tried to simplify methods in PartiesController
* Implemented new error render methods in ApiController
* Removed parties/[weapons, summons, characters] routes
2022-12-21 15:34:54 -08:00
c1716c1e4f
Run RuboCop on everything
...
yolo
2022-12-21 00:22:47 -08:00
9e2f9c0af1
Fix job creation
2022-12-03 20:13:48 -08:00
ec3b42101b
Move logic to JobsController
...
It was getting too heavy to keep in PartiesController
2022-12-03 11:45:00 -08:00
5c9a2b8d7a
Refactor job skill assignment a bit
2022-12-02 20:46:51 -08:00
644ffd74e5
Added logic for swapping and replacing job skills
2022-12-02 11:20:43 -08:00
296fa0187c
Save base job skills on job change
2022-12-01 04:46:53 -08:00
9967d36f89
Fix race condition
2022-11-17 02:25:22 -08:00
cf132e20f5
Receive and output job data in templates
2022-04-04 23:41:00 -07:00
a99f0c31c5
Add pagination to favorites and teams
2022-03-21 03:53:52 -07:00
1f3ba2307f
Add pagination for collections
2022-03-14 19:42:29 -07:00
c7196f7c79
Add a permanent weapon count condition to Teams
...
This way, Discover Teams will only show high quality parties
2022-03-14 18:21:40 -07:00
d5ed98f0cf
Implement filters on profiles
2022-03-01 02:19:44 -08:00
96adcc9540
Don't run set_from_slug before destroying parties
...
This caused a 500 that caused parties to be unable to deleted
2022-02-28 16:55:42 -08:00
186fde79be
Enable filtering list of favorite parties
2022-02-27 22:52:25 -08:00
07dc8dd457
Refactor how we output favorite bool on parties
2022-02-27 22:28:17 -08:00
6afe242abe
Return a boolean indicating favorite in party object
2022-02-27 21:14:37 -08:00
57b6f2a7b4
Add back render call
2022-02-27 20:55:55 -08:00
7feb5157c8
Add method for displaying a user's favorites
2022-02-27 20:00:29 -08:00
4907f7c584
Properly implement filtering
2022-02-27 00:33:00 -08:00
af8b9d3570
Implement filterable endpoint for all parties
2022-02-26 20:57:24 -08:00
3f979f6d62
Add endpoint for getting all parties
...
No filters yet
2022-02-26 19:29:19 -08:00
47d5de057c
Remove ap call
2022-02-26 18:40:32 -08:00
a04a1cb5c8
Fix bug with wrong key when creating party
2022-02-26 18:25:54 -08:00
374e294a33
Change permitted param for extra toggle
2022-02-23 19:22:42 -08:00
ace4fb8568
Permit detail attributes and update all attributes instead of just extra
2022-02-23 18:11:19 -08:00
29c3415df2
Don't allow destroy if owner is not current user
2022-02-23 16:34:36 -08:00