-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #821 from wtsi-npg/devel
pull from devel to master to create release 101.1.0
- Loading branch information
Showing
21 changed files
with
559 additions
and
1,010 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
######### | ||
# Author: rmp | ||
# Created: 2008-01 | ||
# | ||
package npg::model::search; | ||
use strict; | ||
use warnings; | ||
|
@@ -77,7 +73,7 @@ sub results { | |
AND content LIKE ?), "%$term%"]; | ||
|
||
######### | ||
# search run annotations | ||
# search annotations | ||
# | ||
push @{$queries}, [q(SELECT 'run' AS type, | ||
ra.id_run AS primary_key, | ||
|
@@ -89,6 +85,16 @@ sub results { | |
AND a.comment LIKE ? | ||
ORDER BY date DESC | ||
LIMIT 100), "%$term%"]; | ||
push @{$queries}, [q(SELECT 'run_lane' AS type, | ||
rla.id_run_lane AS primary_key, | ||
'annotation' AS location, | ||
a.comment AS context | ||
FROM annotation a, | ||
run_lane_annotation rla | ||
WHERE rla.id_annotation = a.id_annotation | ||
AND a.comment LIKE ? | ||
ORDER BY date DESC | ||
LIMIT 100), "%$term%"]; | ||
|
||
######### | ||
# search instrument annotations & statuses | ||
|
@@ -492,7 +498,7 @@ Roger Pettett, E<lt>[email protected]<gt> | |
=head1 LICENSE AND COPYRIGHT | ||
Copyright (C) 2007 GRL, by Roger Pettett | ||
Copyright (C) 2007, 2013, 2014, 2017, 2024 Genome Research Ltd. | ||
This library is free software; you can redistribute it and/or modify | ||
it under the same terms as Perl itself, either Perl version 5.8.4 or, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,21 +147,6 @@ __PACKAGE__->set_primary_key("id_instrument_format"); | |
|
||
=head1 RELATIONS | ||
=head2 instrument_utilisations | ||
Type: has_many | ||
Related object: L<npg_tracking::Schema::Result::InstrumentUtilisation> | ||
=cut | ||
|
||
__PACKAGE__->has_many( | ||
"instrument_utilisations", | ||
"npg_tracking::Schema::Result::InstrumentUtilisation", | ||
{ "foreign.id_instrument_format" => "self.id_instrument_format" }, | ||
{ cascade_copy => 0, cascade_delete => 0 }, | ||
); | ||
|
||
=head2 instruments | ||
Type: has_many | ||
|
@@ -208,8 +193,8 @@ __PACKAGE__->has_many( | |
); | ||
|
||
|
||
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2023-10-23 17:02:30 | ||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:esNDL3mLvW19/fKjWfsX/g | ||
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2024-04-09 10:35:17 | ||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:elkjaVkCGUOAo8WzkpdV/A | ||
|
||
# Author: [email protected] | ||
# Created: 2010-04-08 | ||
|
Oops, something went wrong.