Skip to content

Commit

Permalink
Merge pull request metabase#5836 from metabase/fix-nqf-issues
Browse files Browse the repository at this point in the history
New question flow fixes
  • Loading branch information
attekei authored Aug 29, 2017
2 parents c22fc84 + 42893d7 commit 40b434f
Show file tree
Hide file tree
Showing 44 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion frontend/src/metabase/containers/EntitySearch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ export default class EntitySearch extends Component {

setSearchText = (searchText) => {
this.setState({ searchText }, this.applyFiltersAfterFilterChange)
this.updateUrl((currentOptions) => ({ ...currentOptions, search: searchText}))
this.updateUrl((currentOptions) => searchText !== ""
? ({ ...currentOptions, search: searchText})
: _.omit(currentOptions, 'search')
)
}

resetSearchText = () => {
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/metabase/new_query/containers/MetricSearch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export default class MetricSearch extends Component {
<LoadingAndErrorWrapper loading={isLoading}>
{() => {
const sortedActiveMetrics = _.chain(metadata.metricsList())
.filter((metric) => metric.isActive())
// Metric shouldn't be retired and it should refer to an existing table
.filter((metric) => metric.isActive() && metric.table)
.sortBy(({name}) => name.toLowerCase())
.value()

Expand Down
3 changes: 2 additions & 1 deletion frontend/src/metabase/new_query/containers/SegmentSearch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ export default class SegmentSearch extends Component {
// all segments (also retired ones) and they are missing both `is_active` and `creator` props. Currently this
// filters them out but we should definitely update the endpoints in the upcoming metadata API refactoring.
const sortedActiveSegments = _.chain(metadata.segmentsList())
.filter((segment) => segment.isActive())
// Segment shouldn't be retired and it should refer to an existing table
.filter((segment) => segment.isActive() && segment.table)
.sortBy(({name}) => name.toLowerCase())
.value()

Expand Down
Binary file modified resources/frontend_client/app/assets/img/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/frontend_client/app/assets/img/lightbulb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/frontend_client/app/assets/img/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/frontend_client/app/assets/img/metrics-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/frontend_client/app/assets/img/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/frontend_client/app/assets/img/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/frontend_client/app/assets/img/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/frontend_client/app/assets/img/segments-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/frontend_client/app/assets/img/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/frontend_client/app/assets/img/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/frontend_client/app/assets/img/welcome-modal-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/frontend_client/app/assets/img/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/frontend_client/app/assets/img/welcome-modal-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/frontend_client/app/assets/img/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/frontend_client/app/assets/img/welcome-modal-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/frontend_client/app/assets/img/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/frontend_client/app/img/dashboard_illustration.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/frontend_client/app/img/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/frontend_client/app/img/empty_dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/frontend_client/app/img/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/frontend_client/app/img/empty_question.png
Binary file modified resources/frontend_client/app/img/[email protected]
Binary file modified resources/frontend_client/app/img/list_illustration.png
Binary file modified resources/frontend_client/app/img/[email protected]
Binary file modified resources/frontend_client/app/img/metrics_illustration.png
Binary file modified resources/frontend_client/app/img/[email protected]
Binary file modified resources/frontend_client/app/img/new_metric.png
Binary file modified resources/frontend_client/app/img/[email protected]
Binary file modified resources/frontend_client/app/img/[email protected]
Binary file modified resources/frontend_client/app/img/questions_illustration.png
Binary file modified resources/frontend_client/app/img/[email protected]
Binary file modified resources/frontend_client/app/img/segments_illustration.png
Binary file modified resources/frontend_client/app/img/[email protected]
Binary file modified resources/frontend_client/app/img/sql_illustration.png
Binary file modified resources/frontend_client/app/img/[email protected]

0 comments on commit 40b434f

Please sign in to comment.