mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 12:15:51 +00:00
f9933703d1
- add widget for selecting corresponding branch(es) for testgroups - limit available subgroups based on chosen product/branch b=314938 - changed schema for test runs, allowing multiple testgroups per test run (also addresses b=337496), combining test run limiting criteria into a single table, and adding more audit/tracking info to the main test_runs table Misc: - fix nesting issue whereby first item in a list wasn't being selected properly when a default/already selected value was not found. This affected most of the management interfaces. - removed extra <br/>s in management interface filtering divs
57 lines
1.8 KiB
Perl
Executable File
57 lines
1.8 KiB
Perl
Executable File
# -*- mode: cperl; c-basic-offset: 8; indent-tabs-mode: nil; -*-
|
|
|
|
=head1 COPYRIGHT
|
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
# Version: MPL 1.1
|
|
#
|
|
# The contents of this file are subject to the Mozilla Public License
|
|
# Version 1.1 (the "License"); you may not use this file except in
|
|
# compliance with the License. You may obtain a copy of the License
|
|
# at http://www.mozilla.org/MPL/
|
|
#
|
|
# Software distributed under the License is distributed on an "AS IS"
|
|
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
|
|
# the License for the specific language governing rights and
|
|
# limitations under the License.
|
|
#
|
|
# The Original Code is Litmus.
|
|
#
|
|
# The Initial Developer of the Original Code is
|
|
# the Mozilla Corporation.
|
|
# Portions created by the Initial Developer are Copyright (C) 2006
|
|
# the Initial Developer. All Rights Reserved.
|
|
#
|
|
# Contributor(s):
|
|
# Chris Cooper <ccooper@deadsquid.com>
|
|
# Zach Lipton <zach@zachlipton.com>
|
|
#
|
|
# ***** END LICENSE BLOCK *****
|
|
|
|
=cut
|
|
|
|
package Litmus::DB::Branch;
|
|
|
|
use strict;
|
|
use base 'Litmus::DBI';
|
|
|
|
Litmus::DB::Branch->table('branches');
|
|
|
|
Litmus::DB::Branch->columns(All => qw/branch_id product_id name detect_regexp enabled/);
|
|
Litmus::DB::Branch->columns(Essential => qw/branch_id product_id name detect_regexp enabled/);
|
|
|
|
Litmus::DB::Branch->column_alias("product_id", "product");
|
|
|
|
Litmus::DB::Branch->has_many(test_results => "Litmus::DB::Testresult");
|
|
Litmus::DB::Branch->has_a(product => "Litmus::DB::Product");
|
|
|
|
__PACKAGE__->set_sql(ByTestgroup => qq{
|
|
SELECT b.*
|
|
FROM branches b, testgroup_branches tgb
|
|
WHERE tgb.testgroup_id=? AND tgb.branch_id=b.branch_id
|
|
ORDER BY b.name ASC
|
|
});
|
|
|
|
|
|
1;
|