Skip to content
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

Filter out undefined filters to resolve a robot page exception #1764

Merged
merged 3 commits into from
Oct 6, 2022

Conversation

tongyu-microsoft
Copy link
Contributor

@tongyu-microsoft tongyu-microsoft commented Oct 5, 2022

There is a robot page exception due to TypeError: Cannot read properties of undefined (reading 'column') at t.setFilterLabel (https://ml.azure.com/static/js/79.5338ded6.chunk.js:2:1874569) at https://ml.azure.com/static/js/79.5338ded6.chunk.js:2:1874007 at Array.map (<anonymous>)
This PR filters out cohort filters if the filter is undefined so we can make sure user won't hit robot page exception for this issue.

Description

For this.props.filters
Before: [filterA, filterB, undefined]

After: [filterA, filterB]

Checklist

  • I have added screenshots above for all UI changes.
  • I have added e2e tests for all UI changes.
  • Documentation was updated if it was needed.

@gaugup
Copy link
Contributor

gaugup commented Oct 5, 2022

Can we add a unit test for this change?

@tongyu-microsoft
Copy link
Contributor Author

Can we add a unit test for this change?

Tests are added

@codecov-commenter
Copy link

codecov-commenter commented Oct 5, 2022

Codecov Report

Merging #1764 (628e90a) into main (4316b2d) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1764   +/-   ##
=======================================
  Coverage   88.30%   88.30%           
=======================================
  Files          89       89           
  Lines        5250     5250           
=======================================
  Hits         4636     4636           
  Misses        614      614           
Flag Coverage Δ
unittests 88.30% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

1 similar comment
@tongyu-microsoft tongyu-microsoft enabled auto-merge (squash) October 5, 2022 23:45
@tongyu-microsoft tongyu-microsoft merged commit c044957 into main Oct 6, 2022
@tongyu-microsoft tongyu-microsoft deleted the tongy/filterUndefinedFilters branch October 6, 2022 00:26
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.

4 participants