Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
348 commits
Select commit Hold shift + click to select a range
90f0f8f
Merge pull request #1049 from cerebris/raise_errors_earlier
dgeb May 5, 2017
84f3863
Merge pull request #983 from senid231/982-fix-polymorphic-relationshi…
lgebhardt May 5, 2017
00ffaf5
Merge pull request #975 from senid231/make-apply-filter-respect-attri…
lgebhardt May 5, 2017
2dc8b4f
Skips the `test:bug_report_template:rails_5` in default task
lgebhardt May 5, 2017
3cd0be9
Update rails 5.1 and Ruby 2.3.4
lgebhardt May 5, 2017
68584b8
Update versions and dates
lgebhardt May 5, 2017
92e99b5
Exclude rails master from testing with ruby 2.1
lgebhardt May 5, 2017
2769330
Merge pull request #1050 from cerebris/default_rake_skip_bug_reports
lgebhardt May 5, 2017
22110a6
Merge pull request #1051 from cerebris/version_updates
lgebhardt May 5, 2017
3c0fb13
Merge branch 'master' into pr/1041
lgebhardt May 5, 2017
e58687c
Merge pull request #1028 from elvanja/fix-nested-relationships
lgebhardt May 5, 2017
5bb56cb
Merge branch 'master' into fix/processor
lgebhardt May 5, 2017
1d1cc4b
Merge pull request #1052 from cerebris/pr/1041
lgebhardt May 5, 2017
03807f4
Merge pull request #1026 from DavidMikeSimon/handle_exceptions_from_c…
lgebhardt May 5, 2017
dd436db
Use original key format when displaying error for filter not allowed
kevintraver May 25, 2017
bdcbf61
Refactor Processors and RecordAccessors
lgebhardt Jun 29, 2017
854ec70
Merge pull request #1045 from cerebris/refactor_record_accessors
dgeb Aug 31, 2017
72912e0
Fix inherited pagination
Exelord May 11, 2017
8314445
Merge pull request #1102 from cerebris/pr/1064
lgebhardt Aug 31, 2017
0c31405
fixes #909 add possibility to set generic validation error
senid231 Aug 18, 2017
230e244
Tests validation behavior on :base
lgebhardt Sep 6, 2017
31b305e
Merge pull request #1104 from cerebris/pr/1099
lgebhardt Sep 6, 2017
38757c6
Merge pull request #1069 from kevintraver/fix/invalid-filter-error-me…
lgebhardt Sep 6, 2017
2a84cdc
Alters build_joins sql for has_one relationships
Ross-Hunter May 10, 2017
9cdc890
Lock down minitest version.
Ross-Hunter May 11, 2017
ee4ae07
Tests sorting on related attributes of has_one relationships
lgebhardt Sep 6, 2017
ade6dde
Merge pull request #1106 from cerebris/pr/1061
lgebhardt Sep 6, 2017
357998d
Fix active_relation_resource_finder.rb
Sep 7, 2017
19f4d7b
Merge pull request #1107 from clemthenem/patch-1
lgebhardt Sep 7, 2017
40cf1eb
#1094 fix sorting by nested relationships
senid231 Sep 9, 2017
71ad630
Rename controller actions that begin with `get_`
scottgonzalez Nov 14, 2017
3a02a4d
Merge pull request #1132 from scottgonzalez/action-renaming
lgebhardt Nov 14, 2017
21dd5b6
Processor#show_related_resources should pass options to result if the…
senid231 Nov 17, 2017
83328c4
added application backtrace feature
gatopanx Nov 30, 2017
1089a45
added optional route formatting feature
gatopanx Dec 1, 2017
d9ca5ce
Add Issue and PR templates
lgebhardt Dec 10, 2017
6e35f3e
Update readme
lgebhardt Dec 10, 2017
067b308
Merge pull request #1140 from lgebhardt/github_templates
lgebhardt Dec 10, 2017
879994e
Merge pull request #1112 from senid231/1094-fix-nested-relationship-s…
lgebhardt Dec 10, 2017
119b539
Merge pull request #1134 from senid231/show-related-resources-pass-op…
lgebhardt Dec 10, 2017
33d0cb7
Merge pull request #1136 from gatopan/feature/add-application-backtrace
lgebhardt Dec 10, 2017
7a05c2b
#936 add ability to define custom sorting
senid231 Sep 8, 2017
5dfeb0f
Merge pull request #1109 from senid231/936-custom-sorting
lgebhardt Dec 10, 2017
d185ebb
Merge pull request #962 from fsmanuel/fix/processor
lgebhardt Dec 10, 2017
4c98648
Works around primary key being cast due to pluck bug
butchmarshall May 11, 2018
d6d6cb5
Allow pagination for nested resources but not for included resources
ArneZsng Jun 20, 2018
abe63e5
Add tests for included key
ArneZsng Jun 20, 2018
6946014
Added support for :primary_key in sorting on relationships
Jul 2, 2018
7136bdd
Merge pull request #1165 from HQTrust/hotfix-master/allow-pagination-…
lgebhardt Jul 3, 2018
5797c73
Merge pull request #1166 from kloeckner-i/feature/support_primary_key…
lgebhardt Jul 3, 2018
f2302ab
Merge pull request #1137 from labfellows/feature/add-optional-route-f…
lgebhardt Jul 3, 2018
fca75ec
Remove checking for existing relationships
ArneZsng Jul 5, 2018
24c7249
Skip adding relationship if it already exists
ArneZsng Jul 5, 2018
5f4c1a2
Adapt test for adding existing relationships
ArneZsng Jul 5, 2018
60bdd2e
Remove now superfluous error
ArneZsng Jul 5, 2018
a51ea62
Remove now superfluous translations
ArneZsng Jul 5, 2018
78a2edd
Merge pull request #1167 from HQTrust/hotfix-master/allow-to-post-exi…
lgebhardt Jul 6, 2018
1ee9cc8
Fixed Rails 4.x branch
butchmarshall Jul 10, 2018
7c0c7ab
Merge pull request #1159 from butchmarshall/pluck_fix
lgebhardt Jul 10, 2018
565d4b6
Use `destroy` instead of `delete` to ensure callbacks are called
lgebhardt Aug 30, 2018
f06b608
Merge pull request #1175 from lgebhardt/use_destroy_vs_delete
lgebhardt Aug 30, 2018
a57a82c
Update ruby and rails versions for travis tests
lgebhardt Oct 1, 2018
f619538
Merge pull request #1188 from lgebhardt/update_travis_matrix
lgebhardt Oct 1, 2018
cffb8c1
Deprecates and replaces the `allow_include` config option
lgebhardt Aug 8, 2017
b6a05fb
Add support for lambda and callables for allow_include?
lgebhardt Oct 1, 2018
1b12a00
Introduce `Resource.retrieve_records`
lgebhardt Oct 29, 2018
3330e77
Fix to_many allow_include?
lgebhardt Oct 30, 2018
be2912f
Add check_include tests
lgebhardt Oct 30, 2018
617aedb
Fix flappy check_include tests
lgebhardt Oct 31, 2018
b52ef84
Merge pull request #1189 from cerebris/retrieve_records
dgeb Oct 31, 2018
fb35962
Merge pull request #1096 from cerebris/includes_config
dgeb Oct 31, 2018
e8cad46
Add Arel.sql to pluck fields
lgebhardt Nov 7, 2018
18cb4f6
Merge pull request #1190 from cerebris/arel_sql_pluck_fields
lgebhardt Nov 7, 2018
306e96e
Fix deprecation warning re: sqlite representing boolean as integer in…
Sep 19, 2018
f37dd10
Update Travis testing to latest versions
lgebhardt Dec 6, 2018
9759c6e
Update tests and test data
lgebhardt Dec 6, 2018
16ff808
Update coverage directives for uncovered lines
lgebhardt Dec 6, 2018
012286b
Default to more restrictive backtrace configuration
arcreative Dec 26, 2018
4c3c771
Add automatic alias tracking to ActiveRelationResourceFinder
lgebhardt Dec 6, 2018
3f55ee6
Introduce ResourceSet, ResourceIdTree, and ResourceFragment helper cl…
lgebhardt Aug 23, 2018
398df59
Merge pull request #1191 from cerebris/join_tree
lgebhardt Jan 3, 2019
20973ac
Merge pull request #1204 from arcreative/more-restrictive-backtrace-c…
lgebhardt Jan 3, 2019
69b1d73
Bump jsonapi-resources to 0.10.0.beta1
lgebhardt Jan 3, 2019
895c5da
Add test for empty included relationships containing data elements
lgebhardt Jan 9, 2019
86f0c0d
Remove find_records overrides from tests
lgebhardt Jan 14, 2019
087568e
Remove unused `retrieve_records` method
lgebhardt Jan 14, 2019
fe5c5f1
Move `records` method to ActiveRelationResourceFinder
lgebhardt Jan 14, 2019
3213d57
Introduce Path class for parsing include, filter and sort paths
lgebhardt Feb 6, 2019
825c964
Update test fixtures and data
lgebhardt Feb 6, 2019
789b3b7
Rework joins and support belongs_to linkages without includes
lgebhardt Feb 6, 2019
9c00a9a
Fix count on `records` that select a column on rails 4
lgebhardt Feb 6, 2019
48f1c0a
Add join_left ActiveRecordAdapter to ponyfill
lgebhardt Feb 7, 2019
dd9ab5e
Do not use pagination or sorting in `count`
lgebhardt Feb 7, 2019
6243176
Rename PathPart to PathSegment
lgebhardt Feb 8, 2019
9c0391d
Clarify logic for processing polymorphic path segments with resource …
lgebhardt Feb 8, 2019
14b1a1e
Clarify model check
lgebhardt Feb 8, 2019
9918556
Test caching for `show_related_resource` requests
lgebhardt Feb 8, 2019
d82073c
Simplify and test `relationship_segments`
lgebhardt Feb 8, 2019
c4242e3
Merge pull request #1218 from cerebris/always_includes
lgebhardt Feb 11, 2019
d2db72b
Bump jsonapi-resources to 0.10.0.beta2
lgebhardt Feb 11, 2019
fbb6d36
Improve caching performance
Feb 13, 2019
0bb3067
Add relationship apply callable for custom joins
lgebhardt Feb 20, 2019
036e1a4
Merge pull request #1219 from Foodee/feature/single-mget-from-cache
lgebhardt Feb 22, 2019
47b45e6
Add ruby 2.6.1 testing and temporarily disable rails 6/master
lgebhardt Feb 23, 2019
c7872fd
Merge pull request #1223 from cerebris/ruby_2_6
lgebhardt Feb 25, 2019
80285b9
Add note about duplicate alias check
lgebhardt Feb 25, 2019
6ef031b
Merge pull request #1221 from cerebris/related_reworked
lgebhardt Feb 25, 2019
924f5c5
Rename `find_records` to allow detection of overrides that will break…
lgebhardt Feb 22, 2019
dd31121
Add rake task to check the upgrade for orphaned overrides
lgebhardt Feb 22, 2019
c24aec8
Merge pull request #1222 from cerebris/check_upgrade
lgebhardt Feb 25, 2019
1d328ea
Bump jsonapi-resources to 0.10.0.beta3
lgebhardt Feb 25, 2019
77610a3
Fix typo in deprecation warning
scottgonzalez Feb 27, 2019
0fed6d8
Remove unnecessary `distinct` from query in `Resource::find_fragments`
tommy-russoniello Feb 27, 2019
d7f2543
Merge pull request #1224 from scottgonzalez/get_related_resources
scottgonzalez Feb 27, 2019
469d452
Merge pull request #1225 from tommy-russoniello/remove-unnecessary-di…
scottgonzalez Feb 27, 2019
c50b1c5
Rename resource_finder config option to default_resource_finder
lgebhardt Mar 7, 2019
013d090
Allow Resource to set Resource Finder
lgebhardt Mar 14, 2019
d87cd2d
Add specialized `records` methods, `find_to_populate_by_keys`
lgebhardt Mar 1, 2019
5d18849
Remove unused `:include` IncludeDirectives key
lgebhardt Feb 27, 2019
50144c4
Add database_cleaner to keep integration tests isolated.
st0012 Mar 15, 2019
e6922ed
Port polymorphic to many linkage parsing from 0.9
st0012 Mar 20, 2019
b8ba9d2
Remove ResourceFinder support from Resource
lgebhardt Apr 11, 2019
9f7243e
Rename Resource to BasicResource
lgebhardt Apr 11, 2019
e17fcc2
Refactor ActiveRelationResourceFinder into ActiveRelationResource
lgebhardt Apr 11, 2019
1ac6bba
Merge pull request #1244 from cerebris/abandon_resource_finders
lgebhardt Apr 17, 2019
25eabb2
Fix typo in detail text for unsupported_media_type error
May 14, 2019
1bdbed5
Merge pull request #1250 from vaihtovirta/fix-typo-unsupported-media-…
lgebhardt May 16, 2019
35d34ce
Generate links using route helpers, formalize singletons
lgebhardt May 18, 2019
f4c6b93
Bump jsonapi-resources to 0.10.0.beta4
lgebhardt May 18, 2019
acaa474
Scope related route names in a similar manner to relationship routes
lgebhardt May 29, 2019
b63e843
Merge pull request #1254 from cerebris/related_scope
lgebhardt May 29, 2019
68a553f
Bump jsonapi-resources to 0.10.0.beta5
lgebhardt Jun 4, 2019
3a75833
Build Links with strings, track route setup on resource and relations…
lgebhardt Jun 6, 2019
9848b59
Merge pull request #1263 from cerebris/linkbuilder_track_routes_0_10
lgebhardt Jun 26, 2019
8f326cd
Support global exclude links configuration
lgebhardt Jun 26, 2019
b7a7990
Merge pull request #1264 from cerebris/default_exclude_links
lgebhardt Jul 8, 2019
7445e89
Test remove relationship does not remove related resource
lgebhardt Jul 9, 2019
436f062
Revert "Use `destroy` instead of `delete` to ensure callbacks are cal…
lgebhardt Jul 9, 2019
201426d
Merge pull request #1267 from cerebris/remove_relationship_use_delete
lgebhardt Jul 9, 2019
0072fef
Bump jsonapi-resources to 0.10.0.beta6
lgebhardt Jul 9, 2019
2efa6bd
Fix issues with resource definition order and initializers.
lgebhardt Jul 10, 2019
4b2e0f7
Merge pull request #1268 from cerebris/resource_class_inheritance_tweaks
lgebhardt Jul 11, 2019
ef6fb96
Bump jsonapi-resources to 0.10.0.beta7
lgebhardt Jul 11, 2019
3b8cc74
Cache computed attribute options
lgebhardt Jul 12, 2019
ca1baa0
Cache custom_generation_options options
lgebhardt Jul 12, 2019
7d753ec
Cache fields
lgebhardt Jul 12, 2019
c6e75ac
Optimize resource_path generation to reduce string allocations
lgebhardt Jul 12, 2019
388824b
Cache resources_paths per class
lgebhardt Jul 12, 2019
45fc9bc
Remove unneeded assignment
lgebhardt Jul 18, 2019
f4d45b1
Use each instead of collect
lgebhardt Jul 18, 2019
cf210f3
Merge pull request #1270 from cerebris/cleanup
lgebhardt Jul 18, 2019
defc701
Merge pull request #1269 from cerebris/performance
lgebhardt Jul 19, 2019
8424271
Warn on performance issues
lgebhardt Jul 19, 2019
bc783b5
Merge pull request #1271 from cerebris/warn_on_performance_issues
lgebhardt Jul 19, 2019
12c9471
Bump jsonapi-resources to 0.10.0.beta8
lgebhardt Jul 19, 2019
a5ab1af
Update bundler to 1.17
lgebhardt Sep 16, 2019
1041e34
Merge pull request #1283 from cerebris/bundle_1_17
lgebhardt Sep 16, 2019
a51d07f
Update bundler to 1.17
lgebhardt Sep 16, 2019
bc15797
Fix typo in config_description hash key
tobias-bischoff Aug 8, 2019
a1fdcb3
Consider relative URL root configuration
tobias-bischoff Sep 4, 2019
4cc1e5e
Add test for relative root in links
tobias-bischoff Sep 4, 2019
37fa80d
Clean up after test
tobias-bischoff Sep 4, 2019
9e18e02
Merge pull request #1274 from tobias-grasse/patch-1
lgebhardt Sep 16, 2019
81a51ca
Merge pull request #1282 from tobias-grasse/patch-2
lgebhardt Sep 16, 2019
3040156
require ruby 2.3 as minimum version
Aug 20, 2019
896563c
Add support for Rails 6
pabse Aug 23, 2019
bf3a943
Only use ActiveSupport.on_load for rails 6 and above
lgebhardt Sep 16, 2019
d9222d3
Support rails versions greater than 6.0.0
lgebhardt Sep 17, 2019
48953a2
Bump jsonapi-resources to 0.10.0.beta9
lgebhardt Sep 17, 2019
3145b8a
Bump jsonapi-resources to 0.10.0
lgebhardt Sep 30, 2019
864e810
Test against Postgres
lgebhardt Oct 8, 2019
99268a8
Track and select sort fields to fix postgres sql generation error
lgebhardt Oct 8, 2019
cc96793
Merge pull request #1287 from cerebris/test_on_pg
lgebhardt Oct 30, 2019
a7447ac
Bump jsonapi-resources to 0.10.1
lgebhardt Oct 30, 2019
c0cdf65
Fix indentation
scottgonzalez Nov 7, 2019
9a06090
Return a 404 response when no record is found
MarcelEeken Nov 13, 2019
a2d4b4d
Remove unnecessary setting of `missed_resource_ids`
scottgonzalez Nov 14, 2019
95393cd
Better Poro Resource Test
bf4 Dec 2, 2019
5a99d6f
Merge pull request #1295 from youngcapital/fix-api-returning-404-when…
lgebhardt Dec 10, 2019
52e52d2
Merge pull request #1296 from cerebris/scottgonzalez-patch-1
lgebhardt Dec 10, 2019
08edbc8
Merge pull request #1298 from bf4/better_poro_test
lgebhardt Dec 11, 2019
978f590
Bump jsonapi-resources to 0.10.2
lgebhardt Dec 11, 2019
25911bc
Fix issue with primary paginator being used for included resources
lgebhardt Mar 15, 2020
c73ab0b
Set default processor klass by name, deprecate default_processor_klass
lgebhardt Apr 5, 2020
4314ee1
Relax bundler version requirement to support later than 1.17
lgebhardt Apr 5, 2020
879d5da
Merge pull request #1319 from cerebris/relax_bundler_version
lgebhardt Apr 5, 2020
7b64a08
Merge pull request #1320 from cerebris/default_processor_klass_deprec…
lgebhardt Apr 5, 2020
5517f17
Merge pull request #1317 from cerebris/issue_1312
lgebhardt Jul 10, 2020
ef16a2a
Update license copyright years
tommy-russoniello Sep 19, 2020
ea8a3f9
Use inclusive terminology
vgsantoniazzi Sep 22, 2020
fd861d2
Merge pull request #1329 from vgsantoniazzi/master
lgebhardt Sep 22, 2020
c62f0d6
Merge pull request #1327 from tommy-russoniello/patch-1
lgebhardt Sep 22, 2020
b8a1f40
Add short term workaround to JoinManager test to account for differen…
lgebhardt Sep 23, 2020
344fcb0
Rework RequestParser to Request, provide access as jsonapi_request fo…
lgebhardt Aug 5, 2020
2708f13
Cleanup style
lgebhardt Sep 23, 2020
7a2de30
Merge pull request #1330 from cerebris/rework_request
lgebhardt Sep 23, 2020
3e9f9f3
Fix JSONAPI::PathSegment::Relationship#eql?
larskanis Nov 11, 2020
64bcfd6
Have inherit call through to superclass
mtrudel Nov 24, 2020
d15372e
Update version to 0.11.0.beta1
lgebhardt Jan 7, 2021
23d274a
Update copyright dates
lgebhardt Jan 7, 2021
fae536d
Merge pull request #1347 from cerebris/v0_11_0_beta1
lgebhardt Jan 7, 2021
b680600
Merge pull request #1338 from mtrudel/master
lgebhardt Jan 8, 2021
3ed4d4f
Merge pull request #1334 from larskanis/fix-relationship-eql
lgebhardt Jan 8, 2021
ca1a41b
Update testing matrix (#1350)
lgebhardt Jan 18, 2021
1322b59
Rails 6.1 (#1352)
lgebhardt Jan 20, 2021
eb43272
Refactor to allow resources to be serialized without the developer ne…
lgebhardt Jan 21, 2021
e894827
Setup github actions for CI (#1354)
lgebhardt Feb 4, 2021
856f139
Remove code specifically for pre 5.1 rails versions (#1353)
lgebhardt Feb 4, 2021
695bb7c
Fix some testing issues including flappy tests, simplify quoting gene…
lgebhardt Apr 12, 2021
bf4b4cd
Fix empty relationships on included resources (#1372)
JamesGlover Aug 9, 2021
d19ab43
Rails 7.0 deprecates content_type in favor of media_type (#1390)
bf4 Jan 11, 2023
0ba80a1
Fixes 1378 - Add Ruby 3.1 and Rails 7.0 to the CI matrix (#1379)
petergoldstein Jan 12, 2023
a2e8ad5
add frozen_string_literal magic comment (#1408)
yawboakye Sep 18, 2023
a3a2a7a
Implement allow_transactions feature (#1410)
revis0r Sep 19, 2023
4a9e54d
Refactor database schema definitions for clarity and consistency
seenanair Jun 17, 2025
dea548e
Update Gemfile to simplify SQLite3 version handling
seenanair Jun 18, 2025
ff8bc72
Add missing require statement for Rails generators in controller and …
seenanair Jun 18, 2025
e83a160
Add JSONAPI::CompatibilityHelper module for version-safe deprecation …
seenanair Jun 18, 2025
0eb11bc
Refactor deprecation warnings to use CompatibilityHelper and ensure c…
seenanair Jun 18, 2025
652fdb5
Add nil check for relation_position to prevent processing errors
seenanair Jun 18, 2025
45328e3
Update test_helper.rb to improve deprecation handling and unify fixtu…
seenanair Jun 18, 2025
35aef58
Refactor CI configuration to simplify Ruby and Rails versions
seenanair Jun 18, 2025
a7f21c4
Update gemspec and version to reflect Sanger Institute ownership and …
seenanair Jun 18, 2025
d999a78
Add wrapper file for sanger-jsonapi-resources to ensure compatibility…
seenanair Jun 18, 2025
3100a4b
Add Ruby 3.4 to CI matrix for testing compatibility
seenanair Jun 18, 2025
98a6958
Merge pull request #4 from sanger/y25-318-from-master
seenanair Jun 30, 2025
54e8f69
Add compatibility for obsolete Rack status symbols
yoldas Sep 16, 2025
a098867
Change version to 0.2.1
yoldas Sep 16, 2025
ffc23d8
Merge pull request #6 from sanger/y25-319-from-master-as-psd-we-need-…
yoldas Sep 19, 2025
fe5e1f1
Rails 8.1 fix
dasunpubudumal Jan 26, 2026
c2f0662
Rails 8.1 fixes
dasunpubudumal Jan 26, 2026
b80866e
Debugs
dasunpubudumal Jan 26, 2026
7086a63
Debugs
dasunpubudumal Jan 26, 2026
5b08066
Debugs
dasunpubudumal Jan 26, 2026
2d15270
Debugs
dasunpubudumal Jan 26, 2026
143cc16
Debugs
dasunpubudumal Jan 26, 2026
4a7d666
Debugs
dasunpubudumal Jan 26, 2026
6f2d402
Debugs
dasunpubudumal Jan 26, 2026
5465f91
Debugs
dasunpubudumal Jan 26, 2026
71b84c2
Debugs
dasunpubudumal Jan 26, 2026
bde2c2a
Rails 8.1 compatibility fix
dasunpubudumal Jan 26, 2026
fe5f506
Refactor routing_ext.rb to use modern block style for resource handling
dasunpubudumal Jan 26, 2026
928771a
Refactor routing_ext.rb to use modern block style for resource handling
dasunpubudumal Jan 26, 2026
4c72d7f
Refactor routing_ext.rb to handle Rails version compatibility in reso…
dasunpubudumal Jan 26, 2026
cc52b3b
Bump version to 0.3.0
dasunpubudumal Jan 26, 2026
e247112
Merge pull request #10 from sanger/rails-8.1-fix
dasunpubudumal Jan 26, 2026
33321fa
Adding CONTRIBUTING.md
TWJW-SANGER Mar 16, 2026
8a4ffcd
Merge pull request #11 from sanger/Y26-054
TWJW-SANGER Mar 16, 2026
4a9b175
Updating contributing section in README.md to reference CONTRIBUTING.md
TWJW-SANGER Apr 1, 2026
3313b33
Merge pull request #12 from sanger/Y26-054
TWJW-SANGER Apr 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## This issue is a (choose one):

- [ ] Problem/bug report.
- [ ] Feature request.
- [ ] Request for support. **Note: Please try to avoid submitting issues for support requests. Use [Gitter](https://gitter.im/cerebris/jsonapi-resources) instead.**

## Checklist before submitting:

- [ ] I've searched for an existing issue.
- [ ] I've asked my question on [Gitter](https://gitter.im/cerebris/jsonapi-resources) and have not received a satisfactory answer.
- [ ] I've included a complete [bug report template](https://github.com/cerebris/jsonapi-resources/blob/master/lib/bug_report_templates/rails_5_master.rb). This step helps us and allows us to see the bug without trying to reproduce the problem from your description. It helps you because you will frequently detect if it's a problem specific to your project.
- [ ] The feature I'm asking for is compliant with the [JSON:API](http://jsonapi.org/) spec.

## Description

Choose one section below and delete the other:

### Bug reports:

Please review [Did you find a bug?](https://github.com/cerebris/jsonapi-resources/blob/master/README.md#did-you-find-a-bug) and replace this content with a brief summary of your issue. If you can't submit a [bug report template](https://github.com/cerebris/jsonapi-resources/blob/master/lib/bug_report_templates/rails_5_master.rb) please be as thorough as possible when describing your your description. It's helpful to indicate which version of ruby and the JR gem you are using.

### Features:

Please replace this line with a clear writeup of your feature request. Features that break compliance with the [JSON:API](http://jsonapi.org/) spec will probably be closed.
26 changes: 26 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@


### All Submissions:

- [ ] I've checked to ensure there aren't other open [Pull Requests](https://github.com/cerebris/jsonapi-resources/pulls) for the same update/change.
- [ ] I've submitted a [ticket](https://github.com/cerebris/jsonapi-resources/issues) for my issue if one did not already exist.
- [ ] My submission passes all tests. (Please run the full test suite locally to cut down on noise from travis failures.)
- [ ] I've used Github [auto-closing keywords](https://help.github.com/articles/closing-issues-via-commit-messages/) in the commit message or the description.
- [ ] I've added/updated tests for this change.

### New Feature Submissions:

- [ ] I've submitted an issue that describes this feature, and received the go ahead from the maintainers.
- [ ] My submission includes new tests.
- [ ] My submission maintains compliance with [JSON:API](http://jsonapi.org/).

### Bug fixes and Changes to Core Features:

- [ ] I've included an explanation of what the changes do and why I'd like you to include them.
- [ ] I've provided test(s) that fails without the change.

### Test Plan:

### Reviewer Checklist:
- [ ] Maintains compliance with JSON:API
- [ ] Adequate test coverage exists to prevent regressions
37 changes: 37 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
push:
branches: [ 'master' ]
pull_request:
branches: ['**']

jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- '3.4'
- '3.3'
- '3.2'
rails:
- '7.1'
- '7.0'
- '8.0.2'
database_url:
- sqlite3:test_db
env:
RAILS_VERSION: ${{ matrix.rails }}
DATABASE_URL: ${{ matrix.database_url }}
name: Ruby ${{ matrix.ruby }} Rails ${{ matrix.rails }} DB ${{ matrix.database_url }}
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ coverage
test/log
test_db
test_db-journal
.idea
*.iml
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

30 changes: 30 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Contributing

All contributions to this project are subject to the [MIT License](https://foss-haas.mit-license.org/). By submitting a contribution, you agree to license your work under these terms.

## Contribution Process

### 1. Issue First

All contributions from outside the core team require an **Issue First** approach. Before submitting a pull request (PR), you must:

- Open an issue in the repository.
- Ensure the issue includes:
- **Clear problem statement:** Describe the issue or feature request.
- **Reproduction steps:** If reporting a bug, provide steps to reproduce it.
- **Proposed approach:** Outline your suggested solution or implementation.
- **Why this change matters:** Explain the impact or necessity of the change.
- Tag `@sanger/psd-developers` in the issue to bring it to the attention of a maintainer.
- Wait for the issue to be assigned or approved by a maintainer.

### 2. Pull Request

Once your issue is approved:

- Fork the repository and create a branch for your changes.
- Submit a PR referencing the approved issue.
- Ensure your code adheres to the project's coding standards and passes all tests.

### 3. Review

Maintainers will review your PR. Address any feedback before merging.
13 changes: 8 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,25 @@ source 'https://rubygems.org'

gemspec

platforms :ruby do
gem 'sqlite3', '1.3.10'
end

platforms :jruby do
gem 'activerecord-jdbcsqlite3-adapter'
end

version = ENV['RAILS_VERSION'] || 'default'

platforms :ruby do
gem 'pg'
gem 'mysql2'
gem 'sqlite3'
gem 'csv'
end

case version
when 'master'
gem 'railties', { git: 'https://github.com/rails/rails.git' }
gem 'arel', { git: 'https://github.com/rails/arel.git' }
when 'default'
gem 'railties', '>= 5.0'
gem 'railties', '>= 6.0'
else
gem 'railties', "~> #{version}"
end
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2014 Larry Gebhardt
Copyright (c) 2014-2021 Cerebris Corporation

MIT License

Expand Down
Loading
Loading