Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #319 from AdrianGaudebert/667028-release-channel-s…

…earch

Fixes bug 667028 - Added filter by release channels option to search.
  • Loading branch information...
commit 5242b11b507f3f096fb557b14192a3aea3f44cc8 2 parents 8437a3e + 6ee4594
@AdrianGaudebert AdrianGaudebert authored
View
1  crashstats/crashstats/forms.py
@@ -69,6 +69,7 @@ class ReportListForm(BaseForm):
range_value = forms.IntegerField(required=False)
range_unit = forms.ChoiceField(required=False)
reason = forms.CharField(required=False)
+ release_channels = forms.CharField(required=False)
build_id = forms.CharField(required=False)
range_unit = forms.ChoiceField(
required=False,
View
2  crashstats/crashstats/models.py
@@ -415,6 +415,7 @@ def get(self, **kwargs):
'end_date',
'build_ids',
'reasons',
+ 'release_channels',
'report_process',
'report_type',
'plugin_in',
@@ -560,6 +561,7 @@ def get(self, **kwargs):
'search_mode',
'build_ids',
'reasons',
+ 'release_channels',
'report_process',
'report_type',
'plugin_in',
View
5 crashstats/crashstats/templates/crashstats/query.html
@@ -81,6 +81,11 @@
</p>
<p class="advanced">
+ <label for="release_channels">Release Channel</label>
+ <input type="text" id="release_channels" name="release_channels" value="{{ params.release_channels }}" size="25">
+ </p>
+
+ <p class="advanced">
<label for="build_id">Build ID</label>
<input type="text" id="build_id" name="build_id" value="{{ params.build_id }}" size="14">
</p>
View
5 crashstats/crashstats/views.py
@@ -949,6 +949,7 @@ def report_list(request):
end_date=end_date,
build_ids=form.cleaned_data['build_id'],
reasons=form.cleaned_data['reason'],
+ release_channels=form.cleaned_data['release_channels'],
report_process=process_type,
report_type=hang_type,
plugin_in=plugin_field,
@@ -1045,6 +1046,7 @@ def report_list(request):
end_date=end_date,
build_ids=form.cleaned_data['build_id'],
reasons=form.cleaned_data['reason'],
+ release_channels=form.cleaned_data['release_channels'],
report_process=form.cleaned_data['process_type'],
report_type=form.cleaned_data['hang_type'],
plugin_in=form.cleaned_data['plugin_field'],
@@ -1261,6 +1263,7 @@ def query(request):
'date_range_value': form.cleaned_data['range_value'],
'query_type': query_type,
'reason': form.cleaned_data['reason'],
+ 'release_channels': form.cleaned_data['release_channels'],
'build_id': form.cleaned_data['build_id'],
'process_type': process_type,
'hang_type': hang_type,
@@ -1327,6 +1330,7 @@ def query(request):
end_date=params['end_date'].isoformat(),
search_mode=params['query_type'],
reasons=params['reason'],
+ release_channels=params['release_channels'],
build_ids=params['build_id'],
report_process=params['process_type'],
report_type=params['hang_type'],
@@ -1370,6 +1374,7 @@ def query(request):
'range_value': params['date_range_value'],
'range_unit': params['date_range_unit'],
'reason': params['reason'],
+ 'release_channels': params['release_channels'],
'build_id': params['build_id'],
'hang_type': params['hang_type'],
'process_type': params['process_type']
Please sign in to comment.
Something went wrong with that request. Please try again.