Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
184 commits
Select commit Hold shift + click to select a range
bafe9ad
Add 'Create Plates from Tubes' functionality with associated view and…
dasunpubudumal Feb 27, 2025
9590900
Fixing the UI
dasunpubudumal Feb 27, 2025
62d5f69
Fixing the UI
dasunpubudumal Feb 27, 2025
086291f
Add 'Create Plates from Tubes' feature with new controller, views, an…
dasunpubudumal Mar 3, 2025
eb5f180
Fix plate type parameter handling in PlatesFromTubesController
dasunpubudumal Mar 3, 2025
c490e95
Refactor plate creation logic to remove unnecessary duplication of pa…
dasunpubudumal Mar 3, 2025
3cfebd1
Removing redundant duplicating of tubes
dasunpubudumal Mar 3, 2025
8b9a0f3
Removing redundant duplicating of tubes
dasunpubudumal Mar 3, 2025
7cd24bd
Remove commented-out AssetLink creation in plate creator logic
dasunpubudumal Mar 3, 2025
94fdfca
plate_creator validation added for the partial
dasunpubudumal Mar 4, 2025
ebe674e
Adding documentation for the function create plates from tubes
dasunpubudumal Mar 4, 2025
77e2d3c
Moving plate purposes into config.rb
dasunpubudumal Mar 4, 2025
f4c7b66
Adding label printing
dasunpubudumal Mar 4, 2025
7f9bc7e
Refactoring error handling
dasunpubudumal Mar 4, 2025
4e8cbcb
Adding method docs
dasunpubudumal Mar 5, 2025
44c7b62
Enhance PlatesFromTubesControllerTest with setup for plate purposes, …
dasunpubudumal Mar 5, 2025
33c9ffd
Adding a test for RNA plate creation
dasunpubudumal Mar 5, 2025
15d2893
Adding a test for both stock and RNA plate creation
dasunpubudumal Mar 5, 2025
f12a14e
Adding a test to validate the number of tubes
dasunpubudumal Mar 5, 2025
1f560fe
Adding asset groups
dasunpubudumal Mar 5, 2025
21876cd
Adding asset groups
dasunpubudumal Mar 5, 2025
1adca0f
Adding asset groups
dasunpubudumal Mar 5, 2025
eaec3c2
Merge remote-tracking branch 'origin/develop' into 4670-y25-105---cre…
dasunpubudumal Mar 5, 2025
62e4150
[skip ci] Documenting
dasunpubudumal Mar 5, 2025
d34e0b4
[skip ci] Documenting
dasunpubudumal Mar 5, 2025
e3e04d2
[skip ci] Documenting
dasunpubudumal Mar 5, 2025
373f9e4
Modifying user barcode behaviour
dasunpubudumal Mar 5, 2025
e5f33db
Adding duplicate validation for tube barcodes.
dasunpubudumal Mar 5, 2025
543d144
Adding duplicate validation for tube barcodes.
dasunpubudumal Mar 5, 2025
fe58cd6
Adding duplicate validation for tube barcodes.
dasunpubudumal Mar 5, 2025
0c13233
Adding duplicate validation for tube barcodes.
dasunpubudumal Mar 5, 2025
74e418e
Adding duplicate validation for tube barcodes.
dasunpubudumal Mar 5, 2025
baad2eb
Fixing duplicate validation for tube barcodes.
dasunpubudumal Mar 5, 2025
d3e29c2
Fixing rubocop issue
dasunpubudumal Mar 5, 2025
68084d4
Refactoring error messages in the flashes
dasunpubudumal Mar 5, 2025
dfbea7c
Refactoring error messages in the flashes
dasunpubudumal Mar 6, 2025
e72ce71
Merge remote-tracking branch 'origin/develop' into 4670-y25-105---cre…
dasunpubudumal Mar 6, 2025
a40e239
Refactoring the transfer logic
dasunpubudumal Mar 6, 2025
b5b00d3
Refactoring the transfer logic
dasunpubudumal Mar 6, 2025
5a49f5c
Refactoring the transfer logic
dasunpubudumal Mar 6, 2025
29e2a32
Refactoring plates_from_tubes_controller.rb
dasunpubudumal Mar 6, 2025
56674df
[skip ci] Adding docs to the methods
dasunpubudumal Mar 6, 2025
a3d9758
Adding a test to cover missing tubes scenario and adding the plate pu…
dasunpubudumal Mar 6, 2025
001e2e2
Refactor plate purpose configuration to use configatron for tube crea…
dasunpubudumal Mar 6, 2025
22ceed3
Update routes and views to use 'from_tubes' for plate creation
dasunpubudumal Mar 7, 2025
ee38423
Fix formatting in routes for 'from_tubes' actions
dasunpubudumal Mar 7, 2025
fd69db1
Add guard clause to prevent processing if plate is blank
dasunpubudumal Mar 7, 2025
396c714
Add guard clause to prevent further processing if plate is blank
dasunpubudumal Mar 7, 2025
6541ffa
Refactor PlatesFromTubesController to use a constant for view path an…
dasunpubudumal Mar 7, 2025
54080f8
Add documentation comments for PlatesFromTubesController actions and …
dasunpubudumal Mar 7, 2025
53933e9
Remove outdated comments from PlatesFromTubesControllerTest
dasunpubudumal Mar 7, 2025
2b53934
Add documentation comments for PlatesFromTubesController
dasunpubudumal Mar 7, 2025
f01fbfa
Add comments to clarify purpose of variables in create_plates_from_tu…
dasunpubudumal Mar 7, 2025
3dd0711
[skip ci] Add documentation comments to clarify label printing job in…
dasunpubudumal Mar 7, 2025
74d8d89
Refactor create_plates method to use ActiveRecord transaction for pla…
dasunpubudumal Mar 7, 2025
494b977
Rename validation methods to include a question mark for clarity
dasunpubudumal Mar 10, 2025
c1a118e
Rename create_plates_from_tubes method to create_plates_from_tubes! f…
dasunpubudumal Mar 10, 2025
596c14d
[skip ci] Fix comment to clarify print job creation and sending in pl…
dasunpubudumal Mar 10, 2025
4b676e8
[skip ci] Add clarification comment for bang method in plate creator
dasunpubudumal Mar 10, 2025
0d2c32b
[skip ci] Fix comment to correct spelling of 'receiver' in bang metho…
dasunpubudumal Mar 10, 2025
b59f418
[skip ci] Fix parameter type in create_plates_from_tubes! method docu…
dasunpubudumal Mar 10, 2025
0ad1c76
Add Rake task to create new plate purposes in plate_creators table
dasunpubudumal Mar 10, 2025
34aaabb
[skip ci] Add documentation for Rake task to add new plate purposes
dasunpubudumal Mar 10, 2025
248c710
[skip ci] Fix description in Rake task for adding new plate purposes
dasunpubudumal Mar 10, 2025
302df9c
[skip ci] Fix description in Rake task for adding new plate creators
dasunpubudumal Mar 10, 2025
6aabc66
Refactor Rake task to use find_or_create_by for plate creators and se…
dasunpubudumal Mar 10, 2025
02ff04b
Refactor Rake task to streamline plate creator creation with find_or_…
dasunpubudumal Mar 10, 2025
073dba9
FIx sample logistics view to correctly route to the plate creation wi…
dasunpubudumal Mar 10, 2025
8e29b16
[skip ci] Add reference comment for Formtastic in plates_from_tubes n…
dasunpubudumal Mar 10, 2025
8535b27
Refactor create action to validate user before transferring tubes to …
dasunpubudumal Mar 10, 2025
050610e
Rename configuration and variables for plate creators to improve clar…
dasunpubudumal Mar 11, 2025
b4c6c79
Merge remote-tracking branch 'origin/develop' into 4670-y25-105---cre…
dasunpubudumal Mar 11, 2025
0e86e0b
Update rake task documentation and add purpose relationship creation
dasunpubudumal Mar 11, 2025
48920ea
Wrap plate creator creation and relationship setup in a transaction f…
dasunpubudumal Mar 11, 2025
7afdd8d
Add RSpec tests for adding new plate purposes and creators
dasunpubudumal Mar 11, 2025
990a69c
Refactor RSpec task description for clarity and type specification
dasunpubudumal Mar 11, 2025
ecd3ee3
Refactor plate creator and purpose options to use Rails application c…
dasunpubudumal Mar 12, 2025
1567aa3
Update app/views/sample_logistics/lab.html.erb
dasunpubudumal Mar 13, 2025
7195f10
Update plate creator names and related configurations for consistency
dasunpubudumal Mar 13, 2025
b9d4359
Refactor tube transfer logic and improve error handling in PlatesFrom…
dasunpubudumal Mar 13, 2025
6cc8992
Add AssetLink creation for tube to plate associations in Plate::Creator
dasunpubudumal Mar 13, 2025
ffe322d
Add Stock RNA Plate configuration and remove obsolete Rake task
dasunpubudumal Mar 13, 2025
2c831bb
Trim whitespace from source tube barcodes in PlatesFromTubesController
dasunpubudumal Mar 13, 2025
d8e5cea
Add tests for creating stock plates and asset links in PlatesFromTube…
dasunpubudumal Mar 14, 2025
211b651
[skip ci] Fix comment typo in PlatesFromTubesControllerTest for asset…
dasunpubudumal Mar 14, 2025
4a16fc1
[skip ci] Remove outdated comments regarding asset link creation in P…
dasunpubudumal Mar 14, 2025
04e4eba
Clarify test context description for creating asset links and stock p…
dasunpubudumal Mar 14, 2025
81738cd
Merge remote-tracking branch 'origin/develop' into 4670-y25-105---cre…
dasunpubudumal Mar 19, 2025
0629a44
Merge remote-tracking branch 'origin/develop' into 4670-y25-105---cre…
dasunpubudumal Mar 19, 2025
cdb8890
Update rubocop-rspec_rails to version 2.31.0
depfu[bot] Mar 19, 2025
65cd4f6
style: initial rubocop
StephenHulme Mar 24, 2025
801ddbf
style: more complex rubocop
StephenHulme Mar 24, 2025
4fbe007
style: prettier
StephenHulme Mar 24, 2025
9883c53
Merge branch 'develop' into depfu/update/rubocop-rspec_rails-2.31.0
StephenHulme Mar 24, 2025
191a743
fix: escape reserved word in SQL
StephenHulme Mar 24, 2025
6e415cc
change to multiplexing config for BGE to create BGE Cap Lib Pool Norm…
andrewsparkes Mar 24, 2025
b76c5e7
Update csv to version 3.3.3
depfu[bot] Mar 24, 2025
8fa5e9e
Merge remote-tracking branch 'origin/develop' into 4670-y25-105---cre…
dasunpubudumal Mar 25, 2025
f4e313b
modified request types for BGE to allow creation of specific tubes
andrewsparkes Mar 25, 2025
d502c4e
Merge branch 'develop' into BGE-fix-request-types
andrewsparkes Mar 25, 2025
39463f6
matched to limber config
andrewsparkes Mar 25, 2025
03a737d
moved tube purposes
andrewsparkes Mar 25, 2025
f2f54c4
matched target type to limber
andrewsparkes Mar 25, 2025
d699fae
Merge remote-tracking branch 'origin/develop' into 4670-y25-105---cre…
dasunpubudumal Mar 26, 2025
c307d44
Merge branch 'develop' into depfu/update/rubocop-rspec_rails-2.31.0
StephenHulme Mar 27, 2025
e7e934e
Merge remote-tracking branch 'origin/develop' into 4670-y25-105---cre…
dasunpubudumal Mar 27, 2025
bab5ce6
Merge pull request #4760 from sanger/depfu/update/rubocop-rspec_rails…
StephenHulme Mar 27, 2025
1419ffe
Update rubocop-capybara to version 2.22.1
depfu[bot] Mar 27, 2025
e0b8af5
Merge pull request #4773 from sanger/depfu/update/csv-3.3.3
StephenHulme Mar 27, 2025
38bca63
feat: add source tubes count display in plate creation form
dasunpubudumal Mar 27, 2025
ebbc3d0
style: lint
StephenHulme Mar 27, 2025
cb07d2c
refactor: rename method
StephenHulme Mar 27, 2025
5731c39
test: add check for successful page load
StephenHulme Mar 27, 2025
20e931a
Merge pull request #4774 from sanger/depfu/update/rubocop-capybara-2.…
StephenHulme Mar 27, 2025
f67c3ce
Update rubocop-factory_bot to version 2.27.1
depfu[bot] Mar 27, 2025
f39d331
feat: add duplicate entry warning in source tubes input
dasunpubudumal Mar 27, 2025
0b2809f
revert: undo previous over-aggressive lint suggestion
StephenHulme Mar 27, 2025
2bff37c
style: lint
StephenHulme Mar 27, 2025
0b45d81
style: ignore troublesome cache file
StephenHulme Mar 27, 2025
57b0e94
fix: set all volume defaults to 13
StephenHulme Mar 27, 2025
92e7ca1
Merge pull request #4775 from sanger/depfu/update/rubocop-factory_bot…
StephenHulme Mar 27, 2025
0db340d
Update rubocop-rails to version 2.30.3
depfu[bot] Mar 27, 2025
9fa3cb9
style: initial rubocop
StephenHulme Mar 27, 2025
5e6c34b
Update rubocop-performance to version 1.24.0
depfu[bot] Mar 27, 2025
4cdc30c
style: lint
StephenHulme Mar 27, 2025
b92e858
style: disable change that would impact yard documentation
StephenHulme Mar 27, 2025
c3bbe37
Update rspec-rails to version 7.1.1
depfu[bot] Mar 27, 2025
c61a034
Merge pull request #4788 from sanger/depfu/update/rubocop-rails-2.30.3
StephenHulme Mar 27, 2025
a7e7be1
Merge branch 'develop' into depfu/update/rubocop-performance-1.24.0
StephenHulme Mar 27, 2025
af11af1
Merge pull request #4789 from sanger/depfu/update/rubocop-performance…
StephenHulme Mar 27, 2025
89db723
Merge pull request #4790 from sanger/depfu/update/rspec-rails-7.1.1
StephenHulme Mar 27, 2025
1e45ddc
Adding CodeMirror
dasunpubudumal Mar 27, 2025
4dabd10
Fixing linting issues
dasunpubudumal Mar 27, 2025
4c96bdf
Adding a border to the source tube editor
dasunpubudumal Mar 27, 2025
9955728
Prettier is sad. Trying to make it happy.
dasunpubudumal Mar 27, 2025
a7bb857
Making the source tubes textarea a little prettier.
dasunpubudumal Mar 27, 2025
05ddf31
Making the font size a bit bigger.
dasunpubudumal Mar 27, 2025
4fec010
Merge pull request #4787 from sanger/sh51/set-all-cherrypick-volume-d…
StephenHulme Mar 27, 2025
97119d7
Update rspec-github to version 3.0.0
depfu[bot] Mar 27, 2025
fe87aaa
Merge pull request #4791 from sanger/y25-405-integrating-codemirror
dasunpubudumal Mar 27, 2025
38c310b
Merge pull request #4792 from sanger/depfu/update/rspec-github-3.0.0
StephenHulme Mar 27, 2025
9210a26
Add custom CodeMirror mode for barcode highlighting and duplicate det…
dasunpubudumal Mar 27, 2025
9aa8d09
Merge pull request #4793 from sanger/y25-405-integrating-codemirror
dasunpubudumal Mar 27, 2025
db0b88f
Update bunny to version 2.24.0
depfu[bot] Mar 27, 2025
312e242
Update activerecord-import to version 2.1.0
depfu[bot] Mar 27, 2025
a5a6fc5
Update bullet to version 8.0.1
depfu[bot] Mar 27, 2025
e1b59ee
Update uuidtools to version 3.0.0
depfu[bot] Mar 27, 2025
fc6bed6
Update exception_notification to version 5.0.0
depfu[bot] Mar 27, 2025
aec017c
Update knapsack_pro to version 8.1.0
depfu[bot] Mar 27, 2025
8779988
Resolved flaky test & improved test structure
borhara Mar 28, 2025
a0eb965
Linting
borhara Mar 28, 2025
41c61a4
Update column formatting for required fields in library manifests
sabrine33 Mar 28, 2025
628ad50
Merge pull request #4778 from sanger/BGE-fix-request-types
andrewsparkes Mar 31, 2025
c480315
build: upgrade codecov action to v5.4.0
StephenHulme Mar 31, 2025
5cb0e5a
trigger codecov report?
StephenHulme Mar 31, 2025
38dfbb1
Merge pull request #4806 from sanger/sh51/fix-missing-coverage-reports
StephenHulme Mar 31, 2025
558b183
Update vite to version 5.4.16
depfu[bot] Mar 31, 2025
8db311d
Merge remote-tracking branch 'origin/develop' into 4670-y25-105---cre…
dasunpubudumal Apr 1, 2025
a4bb4b5
Merge pull request #4796 from sanger/depfu/update/bullet-8.0.1
StephenHulme Apr 2, 2025
2046b88
Merge pull request #4808 from sanger/depfu/update/yarn/vite-5.4.16
StephenHulme Apr 2, 2025
184ef59
Removed lib/tasks/support/disable_hiseq_submission_templates.rake and…
borhara Apr 2, 2025
a493447
Merge pull request #4800 from sanger/y24-447-flaky-tests
borhara Apr 2, 2025
8c22d43
Merge pull request #4801 from sanger/Y24-454-column-cond-format
sabrine33 Apr 3, 2025
17d256b
Fixing typos
dasunpubudumal Apr 3, 2025
77960b7
Merge pull request #4795 from sanger/depfu/update/activerecord-import…
StephenHulme Apr 4, 2025
1a376fd
Merge pull request #4797 from sanger/depfu/update/uuidtools-3.0.0
StephenHulme Apr 4, 2025
5ea3258
Merge pull request #4799 from sanger/depfu/update/knapsack_pro-8.1.0
StephenHulme Apr 4, 2025
44996e3
Fixing issues - v1
dasunpubudumal Apr 4, 2025
af33845
Fixing issues - v2
dasunpubudumal Apr 4, 2025
2e2e32c
Fixing prettier
dasunpubudumal Apr 4, 2025
ada6b1c
Fixing prettier
dasunpubudumal Apr 4, 2025
d33d038
Moving private modifier
dasunpubudumal Apr 4, 2025
e21beda
Adding a disabling button
dasunpubudumal Apr 4, 2025
085a3ce
Update pry-byebug to version 3.11.0
depfu[bot] Apr 4, 2025
30cec82
feat(rvig): adds rvig submission template, library type, request type…
BenTopping Mar 25, 2025
b30291b
feat(rvig): make submission name more explicit
BenTopping Mar 25, 2025
3806c71
Merge pull request #4779 from sanger/Y24-365-gslp-rvi-submission
BenTopping Apr 7, 2025
cddb5ab
Merge pull request #4798 from sanger/depfu/update/exception_notificat…
BenTopping Apr 7, 2025
9f87525
Merge pull request #4794 from sanger/depfu/update/bunny-2.24.0
BenTopping Apr 7, 2025
7374fcd
release: bump patch version
StephenHulme Apr 7, 2025
5f0247b
Merge pull request #4824 from sanger/depfu/update/pry-byebug-3.11.0
StephenHulme Apr 7, 2025
8d1c2e6
Unwipping the rna plate purpose
dasunpubudumal Apr 8, 2025
7817d2a
Merge pull request #4708 from sanger/4670-y25-105---create-stock-plat…
dasunpubudumal Apr 8, 2025
19a990b
release: bump minor version
StephenHulme Apr 8, 2025
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
8 changes: 4 additions & 4 deletions .github/workflows/ruby_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
DBPORT: ${{ job.services.mysql.ports[3306] }}
run: bundle exec rake test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.5.0
uses: codecov/codecov-action@v5.4.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
path: tmp/capybara/
retention-days: 5
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.5.0
uses: codecov/codecov-action@v5.4.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
Expand Down Expand Up @@ -228,7 +228,7 @@ jobs:
path: tmp/capybara/
retention-days: 5
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.5.0
uses: codecov/codecov-action@v5.4.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
Expand Down Expand Up @@ -301,7 +301,7 @@ jobs:
path: tmp/capybara/
retention-days: 5
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.5.0
uses: codecov/codecov-action@v5.4.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ capybara*.html
config/cucumber.yml
config/database.yml
coverage
data/avro_schema_cache/*
database_suffix
db/*.sql
db/*test.sqlite3
Expand Down
2 changes: 1 addition & 1 deletion .release-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.59.0
14.60.0
5 changes: 3 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ inherit_from:
- .rubocop_todo.yml
require:
- test_prof/rubocop
plugins:
- rubocop-capybara
- rubocop-factory_bot
- rubocop-performance
- rubocop-rails
- rubocop-rspec
- rubocop-rspec_rails
- rubocop-capybara
- rubocop-factory_bot

inherit_mode:
merge:
Expand Down
132 changes: 72 additions & 60 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ GEM
activemodel (= 7.1.5.1)
activesupport (= 7.1.5.1)
timeout (>= 0.4.0)
activerecord-import (1.7.0)
activerecord-import (2.1.0)
activerecord (>= 4.2)
activestorage (7.1.5.1)
actionpack (= 7.1.5.1)
Expand All @@ -121,8 +121,8 @@ GEM
after_commit_everywhere (1.6.0)
activerecord (>= 4.2)
activesupport
amq-protocol (2.3.2)
ast (2.4.2)
amq-protocol (2.3.3)
ast (2.4.3)
avro (1.11.3)
multi_json (~> 1.0)
backports (3.25.0)
Expand All @@ -132,13 +132,13 @@ GEM
bootsnap (1.18.4)
msgpack (~> 1.2)
builder (3.3.0)
bullet (7.2.0)
bullet (8.0.1)
activesupport (>= 3.0.0)
uniform_notifier (~> 1.11)
bunny (2.22.0)
amq-protocol (~> 2.3, >= 2.3.1)
bunny (2.24.0)
amq-protocol (~> 2.3)
sorted_set (~> 1, >= 1.0.2)
byebug (11.1.3)
byebug (12.0.0)
cancancan (3.6.1)
capybara (3.40.0)
addressable
Expand Down Expand Up @@ -168,12 +168,12 @@ GEM
coderay (1.1.3)
concurrent-ruby (1.3.5)
configatron (4.5.1)
connection_pool (2.4.1)
connection_pool (2.5.0)
crack (1.0.0)
bigdecimal
rexml
crass (1.0.6)
csv (3.3.2)
csv (3.3.3)
cucumber (9.2.1)
builder (~> 3.2)
cucumber-ci-environment (> 9, < 11)
Expand Down Expand Up @@ -217,15 +217,15 @@ GEM
delayed_job_active_record (4.1.11)
activerecord (>= 3.0, < 9.0)
delayed_job (>= 3.0, < 5)
diff-lcs (1.6.0)
diff-lcs (1.6.1)
docile (1.4.0)
domain_name (0.6.20240107)
drb (2.2.1)
dry-cli (1.2.0)
erubi (1.13.1)
exception_notification (4.5.0)
actionmailer (>= 5.2, < 8)
activesupport (>= 5.2, < 8)
exception_notification (5.0.0)
actionmailer (>= 7.1, < 9)
activesupport (>= 7.1, < 9)
factory_bot (6.5.0)
activesupport (>= 5.0.0)
factory_bot_rails (6.4.4)
Expand Down Expand Up @@ -267,20 +267,21 @@ GEM
pp (>= 0.6.0)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
json (2.7.2)
json (2.10.2)
jsonapi-resources-matchers (1.0.0)
jsonapi-resources (>= 0.9.0)
knapsack_pro (7.6.2)
knapsack_pro (8.1.0)
rake
language_server-protocol (3.17.0.3)
language_server-protocol (3.17.0.4)
launchy (3.1.1)
addressable (~> 2.8)
childprocess (~> 5.0)
logger (~> 1.6)
lint_roller (1.1.0)
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
logger (1.6.6)
logger (1.7.0)
loofah (2.24.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
Expand Down Expand Up @@ -320,31 +321,32 @@ GEM
net-protocol
net-protocol (0.2.2)
timeout
net-smtp (0.5.0)
net-smtp (0.5.1)
net-protocol
netrc (0.11.0)
nio4r (2.7.4)
nokogiri (1.18.5-arm64-darwin)
nokogiri (1.18.6-arm64-darwin)
racc (~> 1.4)
nokogiri (1.18.5-x86_64-darwin)
nokogiri (1.18.6-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.18.5-x86_64-linux-gnu)
nokogiri (1.18.6-x86_64-linux-gnu)
racc (~> 1.4)
ostruct (0.6.0)
parallel (1.26.3)
parser (3.3.5.0)
parser (3.3.7.3)
ast (~> 2.4.1)
racc
pp (0.6.2)
prettyprint
prettier_print (1.2.1)
prettyprint (0.2.0)
pry (0.14.2)
prism (1.4.0)
pry (0.15.2)
coderay (~> 1.1)
method_source (~> 1.0)
pry-byebug (3.10.1)
byebug (~> 11.0)
pry (>= 0.13, < 0.15)
pry-byebug (3.11.0)
byebug (~> 12.0)
pry (>= 0.13, < 0.16)
pry-rails (0.3.11)
pry (>= 0.13.0)
psych (3.3.4)
Expand Down Expand Up @@ -437,60 +439,68 @@ GEM
rspec-mocks (~> 3.13.0)
rspec-collection_matchers (1.2.1)
rspec-expectations (>= 2.99.0.beta1)
rspec-core (3.13.0)
rspec-core (3.13.3)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.2)
rspec-expectations (3.13.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-github (2.4.0)
rspec-github (3.0.0)
rspec-core (~> 3.0)
rspec-html-matchers (0.10.0)
nokogiri (~> 1)
rspec (>= 3.0.0.a)
rspec-json_expectations (2.2.0)
rspec-longrun (3.1.0)
rspec-core (>= 3.5.0, < 4)
rspec-mocks (3.13.1)
rspec-mocks (3.13.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-rails (6.1.4)
actionpack (>= 6.1)
activesupport (>= 6.1)
railties (>= 6.1)
rspec-rails (7.1.1)
actionpack (>= 7.0)
activesupport (>= 7.0)
railties (>= 7.0)
rspec-core (~> 3.13)
rspec-expectations (~> 3.13)
rspec-mocks (~> 3.13)
rspec-support (~> 3.13)
rspec-support (3.13.1)
rubocop (1.66.1)
rspec-support (3.13.2)
rubocop (1.75.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.4, < 3.0)
rubocop-ast (>= 1.32.2, < 2.0)
regexp_parser (>= 2.9.3, < 3.0)
rubocop-ast (>= 1.43.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.32.3)
parser (>= 3.3.1.0)
rubocop-capybara (2.21.0)
rubocop (~> 1.41)
rubocop-factory_bot (2.26.1)
rubocop (~> 1.61)
rubocop-performance (1.22.1)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rails (2.26.2)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.43.0)
parser (>= 3.3.7.2)
prism (~> 1.4)
rubocop-capybara (2.22.1)
lint_roller (~> 1.1)
rubocop (~> 1.72, >= 1.72.1)
rubocop-factory_bot (2.27.1)
lint_roller (~> 1.1)
rubocop (~> 1.72, >= 1.72.1)
rubocop-performance (1.24.0)
lint_roller (~> 1.1)
rubocop (>= 1.72.1, < 2.0)
rubocop-ast (>= 1.38.0, < 2.0)
rubocop-rails (2.30.3)
activesupport (>= 4.2.0)
lint_roller (~> 1.1)
rack (>= 1.1)
rubocop (>= 1.52.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rspec (3.0.5)
rubocop (~> 1.61)
rubocop-rspec_rails (2.30.0)
rubocop (~> 1.61)
rubocop-rspec (~> 3, >= 3.0.1)
rubocop (>= 1.72.1, < 2.0)
rubocop-ast (>= 1.38.0, < 2.0)
rubocop-rspec (3.5.0)
lint_roller (~> 1.1)
rubocop (~> 1.72, >= 1.72.1)
rubocop-rspec_rails (2.31.0)
lint_roller (~> 1.1)
rubocop (~> 1.72, >= 1.72.1)
rubocop-rspec (~> 3.5)
ruby-graphviz (1.2.5)
rexml
ruby-prof (1.7.1)
Expand All @@ -516,7 +526,7 @@ GEM
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
set (1.1.0)
set (1.1.1)
shoulda (4.0.0)
shoulda-context (~> 2.0)
shoulda-matchers (~> 4.0)
Expand Down Expand Up @@ -563,9 +573,11 @@ GEM
rails (>= 3.0.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.6.0)
unicode-display_width (3.1.4)
unicode-emoji (~> 4.0, >= 4.0.4)
unicode-emoji (4.0.4)
uniform_notifier (1.16.0)
uuidtools (2.2.0)
uuidtools (3.0.0)
vite_rails (3.0.19)
railties (>= 5.1, < 9)
vite_ruby (~> 3.0, >= 3.2.2)
Expand Down
2 changes: 1 addition & 1 deletion app/api/core/endpoint/basic_handler/actions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def check_request_io_class!(request)
raise StandardError, 'Need an I/O class for this request' if request.io.nil?
end

def does_not_require_an_io_class
def not_require_an_io_class?
singleton_class.class_eval('def check_request_io_class!(_) ; end', __FILE__, __LINE__)
end

Expand Down
2 changes: 1 addition & 1 deletion app/api/core/endpoint/basic_handler/actions/bound.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ def bound_#{name}(name, *args, &block)
end

delegate_to_bound_handler :action_guard
delegate_to_bound_handler :action_does_not_require_an_io_class, :does_not_require_an_io_class
delegate_to_bound_handler :action_not_require_an_io_class?, :not_require_an_io_class?
end
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def initialize(endpoint_helper, children = nil)
delegate :endpoint_details, to: :@endpoint

def merge(node)
super(node) do |children|
super do |children|
self.class.new(@endpoint_helper, children) # prettier-ignore
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/api/core/io/json/grammar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
end

def merge(node)
super(node) do |children|
super do |children|

Check warning on line 133 in app/api/core/io/json/grammar.rb

View check run for this annotation

Codecov / codecov/patch

app/api/core/io/json/grammar.rb#L133

Added line #L133 was not covered by tests
self.class.new(@name, children) # prettier-ignore
end
end
Expand Down
4 changes: 2 additions & 2 deletions app/api/endpoints/uuids.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class << response
'url' => request.service.api_path(uuid.external_id)
}
end
bound_action_does_not_require_an_io_class(:lookup)
bound_action_not_require_an_io_class?(:lookup)

# Handles trying to find multiple resources
bind_action(:create, to: 'bulk', as: :bulk) do |_, request, response|
Expand All @@ -135,6 +135,6 @@ class << response
}
end
end
bound_action_does_not_require_an_io_class(:bulk)
bound_action_not_require_an_io_class?(:bulk)
end
end
2 changes: 1 addition & 1 deletion app/controllers/admin/studies_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
def filter # rubocop:todo Metrics/CyclomaticComplexity
filter_conditions = { approved: false } if params[:filter][:by] == 'not approved' unless params[:filter].nil?

if params[:filter][:by] == 'not approved' || params[:filter][:by] == 'all'
if ['not approved', 'all'].include?(params[:filter][:by])

Check warning on line 39 in app/controllers/admin/studies_controller.rb

View check run for this annotation

Codecov / codecov/patch

app/controllers/admin/studies_controller.rb#L39

Added line #L39 was not covered by tests
@studies = Study.where(filter_conditions).alphabetical.select { |p| p.name.include? params[:q] }
end

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/plates_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def set_barcode_printers
end

def tube_rack_barcodes
return [] unless params.dig(:plates).dig(:source_plates)
return [] unless params.dig(:plates, :source_plates)

params[:plates][:source_plates].split(/[\s,]+/)
end
Expand Down
Loading
Loading