@Override
public boolean execute(Map<String, Object> properties, Context context) {
- return issueUpdater.setSeverity((DefaultIssue) context.issue(), severity(properties), context.issueChangeContext());
+ return issueUpdater.setManualSeverity((DefaultIssue) context.issue(), severity(properties), context.issueChangeContext());
}
private String severity(Map<String, Object> properties) {
if @period && @period != 0
date = @snapshot.period_datetime(@period)
if date
- options['createdAfter'] = date
+ options['createdAfter'] = Api::Utils.format_datetime(date)
end
end
<div class="source_tabs">
<ul class="tablinks">
-
- <% if @display_issues %>
- <li>
+ <% first=true %>
+ <% if logged_in? && @display_issues %>
+ <li class="<%= 'first' if first -%>">
<a href="<%= url_for @issues_params.merge({:controller => 'issues', :action => 'bulk_change_form', :from => 'drilldown'}) -%>"
class="bulk-change-link open-modal"><%= message('bulk_change') -%></a>
</li>
- <% end %>
-
- <%
- first=true
- if @snapshot.has_source && has_role?(:codeviewer, @snapshot)
- %>
+ <% first=false
+ end %>
+ <% if @snapshot.has_source && has_role?(:codeviewer, @snapshot) %>
<li class="<%= 'first' if first -%>">
<a href="<%= ApplicationController.root_context -%>/api/sources?resource=<%= @resource.key -%>&format=txt"><%= message('raw') -%></a>
</li>
when(context.issue()).thenReturn(issue);
action.execute(properties, context);
- verify(issueUpdater).setSeverity(eq(issue), eq(severity), any(IssueChangeContext.class));
+ verify(issueUpdater).setManualSeverity(eq(issue), eq(severity), any(IssueChangeContext.class));
}
@Test