Skip to content

DM-5387: Filter Editor #109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 24, 2016
Merged

DM-5387: Filter Editor #109

merged 2 commits into from
Jun 24, 2016

Conversation

loitly
Copy link
Contributor

@loitly loitly commented Jun 24, 2016

https://jira.lsstcorp.org/browse/DM-5387

  • display column's units and descriptions
  • add single column filter with auto-correction
  • add free-hand filters field with validation and auto-correction
  • reset, clear filters as well.
  • 'Column' is sticky... scrolling left/right will not affect it.

to test: search catalog, open table options.

 - auto-correction on the single filter fields
 - free-hand filters field validation and auto-correction
 - reset, clear filters as well.
 - 'Column' is sticky... scrolling left/right will not affect it.
@ejoliet
Copy link
Contributor

ejoliet commented Jun 24, 2016

In general everything works as expected but:

  • Validation of '>=' and '<=' is not working, probably the auto-correction is failing for some reason, have a look.
  • 'checkbox' column is transparent, don't know if we want that effect or not. Seems akward to me.
  • sticky column is nice!

Like the filter table added to the table settings: is a great idea and work just fine!
(It's very nice idea to add a guideline on how to test for reviewers!)

@ejoliet
Copy link
Contributor

ejoliet commented Jun 24, 2016

Problem found and duplicated: After sorting or filtering, text view no longer works and freeze the rest of the UI, only reloading the page give you back the UI in a stable state.
Console log shows error such as :

uncaught TypeError: Cannot read property 'componentWillReceiveProps' of null(…)
Uncaught TypeError: Cannot read property 'offsetWidth' of undefined

var tableModel = cloneDeep(origTableModel);
set(tableModel, 'request.sortInfo', sortInfoStr);
const colIdx = columns.findIndex( (col) => {return col.name === colName;} );
const col = columns[colIdx];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if 'colIdx' is -1, or it is not possible to happen?

@cwang2016
Copy link
Contributor

review is done. Looks very good to me.

 - fix '>=' parsing errors.
 - Text View not working after sorting
 - added tooltips to table toolbar buttons
@loitly loitly merged commit c73e0ce into dev Jun 24, 2016
@loitly loitly deleted the DM-5387_filter_editor branch June 24, 2016 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants