06f8d28874
February 2023 Update ( #48 )
2023-02-04 23:46:12 -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
18049385ce
Add destroy implementation and json template
2022-02-23 16:30:52 -08:00
9d4706b741
Add route for updating parties
2022-02-04 14:47:47 -08:00
5ea9f367c1
Add routes to pull data for individual objects in a party
2022-02-04 01:00:30 -08:00
e95baf7ee6
Add extra slots to Parties
2022-01-25 17:00:26 -08:00
b08d851341
Store user id from access token
2020-09-26 10:51:14 -07:00
975dd39ec8
Update parties_controller.rb
...
Finding parties based on shortcode, and saving parties with user ID where available
2020-09-25 10:55:13 -07:00
071f6b4664
Controllers should inherit from ApiController
2020-09-19 12:46:24 -07:00
2164c10ab1
Move route from party to parties
2020-09-18 06:43:49 -07:00
aa7820dd22
Add PartiesController
2020-09-16 03:42:12 -07:00
f616fe23db
Restart on Rails
2020-09-14 18:30:54 -07:00