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

ui: Invoke the createTable function regardless of response #213

Merged
merged 2 commits into from Jul 5, 2017
Merged

Conversation

Ladsgroup
Copy link
Member

Bug: T149118

@codecov
Copy link

codecov bot commented Jul 3, 2017

Codecov Report

Merging #213 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #213   +/-   ##
=======================================
  Coverage   45.45%   45.45%           
=======================================
  Files           3        3           
  Lines          77       77           
=======================================
  Hits           35       35           
  Misses         42       42

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0e49aea...4c85b0b. Read the comment docs.

@@ -79,14 +79,14 @@ function getResults() {
});
models_url = models_url.slice(0, -1);
var url = "/scores/" + $('#wikiDropDownInput').attr('value') + "/?models=" + models_url + "&revids=" + revs;
$.get(url, function (data) {
$.get(url, datatype='jsonp').always(function(data) {

Choose a reason for hiding this comment

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

Why not e.g. /* datatype= */ 'jsonp' to avoid creating unused variable? 😉

Copy link
Member Author

Choose a reason for hiding this comment

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

Done :)

@halfak
Copy link
Member

halfak commented Jul 5, 2017

There's a rendering issue where it seems the error pane isn't fully removed after an error occurs and a new revid is scored. Not sure if it is related to this specific change or not.

Steps reproduce:

  1. Start up the dev server
  2. Go to http://localhost:8080/ui/
  3. Score the revid "-1" (and see error)
  4. Score the revid "1" (success, but rows of table are far away from headers)

@Ladsgroup
Copy link
Member Author

@halfak fixed. It's way cleaner now

}
$('#tableContainer').remove();
Copy link
Member

Choose a reason for hiding this comment

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

I think maybe you want to clear the children -- not remove the container.

Copy link
Member Author

Choose a reason for hiding this comment

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

hmm, Let me see what I can do about it.

This one basically cleans everything and replace new one instead
@halfak halfak merged commit 57fa94b into master Jul 5, 2017
@Ladsgroup Ladsgroup deleted the fix_gui branch July 6, 2017 22:01
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.

None yet

3 participants