Skip to content

Commit

Permalink
Merge branch 'release/2.13.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
vmalloc committed May 21, 2018
2 parents 44e293e + 9cd873e commit 806a5a3
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 20 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## Version 2.13.3

* Fixed display issues with child sessions
* Fixed quick search bar width

## Version 2.13.2

* Fixed `!~` search being broken
Expand Down
2 changes: 1 addition & 1 deletion deps/app.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Flask-Migrate>=1.3.0
Flask-SQLAlchemy>=2.2
sqlalchemy>=1.1.0
munch
pendulum
pendulum>=2.0.1
pyparsing
raven[flask]
URLObject
Expand Down
2 changes: 1 addition & 1 deletion flask_app/blueprints/api/quick_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def quick_search(term: str):
((select name as key, name, 'subject' as type from subject) UNION
(select email as key, CASE WHEN first_name is NULL THEN email
ELSE (first_name || ' ' || last_name || ' (' || email || ')') END as name, 'user' as type from "user")) u
ELSE (first_name || ' ' || last_name || ' (' || email || ')') END as name, 'user' as type from "user" where exists(select * from session where user_id = "user".id))) u
where u.name ilike :term
ORDER BY name asc
limit :num_hits
Expand Down
1 change: 1 addition & 0 deletions tests/test_quick_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def test_quick_search_subject(client, subjects, use_spaces):

@pytest.mark.parametrize('use_spaces', [True, False])
def test_quick_search_user(client, testuser_email, use_spaces):
client.report_session_start() # quick search only searches users with existing sessions
term = testuser_email.split('@')[0][-3:]
if use_spaces:
term = ' {} '.format(term)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_timespan.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_timespan(session_or_test, get_real_object):
assert span_start is not None
assert timespan.upper is None

assert abs(timespan.lower - pendulum.fromtimestamp(obj.start_time).astimezone()) < _MIN_THRESHOLD
assert abs(timespan.lower - pendulum.from_timestamp(obj.start_time).astimezone()) < _MIN_THRESHOLD

duration = 10

Expand Down
4 changes: 2 additions & 2 deletions webapp/app/components/keyboard-shortcuts/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ export default Component.extend(KeyboardShortcuts, {

self.get("store").queryRecord("test", filters).then(function(test) {
if (test) {
self.router.transitionTo(
return self.router.transitionTo(
current_path,
session.get("display_id"),
test.get("session_display_id"),
test.get("display_id")
);
}
Expand Down
2 changes: 1 addition & 1 deletion webapp/app/components/keyboard-shortcuts/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
targetAttachment="center"
translucentOverlay=true}}
<div class="input-group">
<input type="text" class="form-control" id="goto-input" placeholder="Quick jump to...">
<input type="text" class="form-control quick-search-input" id="goto-input" placeholder="Quick jump to..." style="min-width: 50em">
</div>
{{/modal-dialog}}
{{/if}}
Expand Down
13 changes: 7 additions & 6 deletions webapp/app/session/index/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,13 @@ export default Route.extend(
// isExiting would be false if only the route's model was changing
controller.set("search", "");
controller.set("entered_search", "");
let query_params = this.get("queryParams");
for (let key in query_params) {
if (key.startsWith("show_")) {
controller.set(key, true);
}
}
controller.setProperties({
show_successful: true,
show_unsuccessful: true,
show_abandoned: true,
show_skipped: true,
show_planned: false,
});
}
},
}
Expand Down
1 change: 0 additions & 1 deletion webapp/app/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,4 @@ body {
@import "ember-modal-dialog/ember-modal-appearance";

@import 'components/users/user-avatar.scss';
@import 'components/quick-jump.scss';
@import 'typeahead.scss';
7 changes: 0 additions & 7 deletions webapp/app/styles/components/quick-jump.scss

This file was deleted.

0 comments on commit 806a5a3

Please sign in to comment.