question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Owner selectors sometimes display full name, other times username

See original GitHub issue

The Edit Dashboard and Edit Chart modals display the user’s full name when selecting an owner from the dropdown, but display the username when simply displaying the existing owners.

The cause of this is that the /dashboard/related/owners api endpoint returns full name, while the /dashboard/:id endpoint returns only the username, so the modal is just using the information that it has available. Both endpoints return the user id, so this doesn’t lead to real bugs, just visual confusion. I think the best solution would be for the endpoints to return more information, but I’m unsure how to accomplish that within FAB. Open to other suggestions as well.

Pinging @dpgaspar for FAB expertise.

Expected results

Should use the owner’s name

Actual results

Mixed results

Screenshots

If applicable, add screenshots to help explain your problem.

How to reproduce the bug

  1. Go to a chart or a dashboard
  2. Click on “edit properties” to open the edit modal
  3. Set some owners
  4. Reload the modal, owners are now displayed by username instead of name

Checklist

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven’t found one similar.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

0reactions
suddjiancommented, Apr 23, 2020

This was fixed a while ago

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use and create CSS Selectors in Selenium ... - Tools QA
It is another way of writing a CSS selector. First, we provide the HTML tag name followed by the '#' sign (in case...
Read more >
Can I apply a CSS style to an element name? - Stack Overflow
So, I'm looking for ways I can apply styles to objects that don't have an id or class attribute. Sometimes, form items have...
Read more >
NGRX Bad Practices - InDepth.Dev
First we select all items and the cart. Then we create another selector that only selects the ids of a cart (selectors are...
Read more >
Using selectors in ProcessWire CMS
Selectors are simple strings of text that specify fields and values. These selectors are used throughout ProcessWire to find pages (and other types...
Read more >
Complete Guide For Using XPath In Selenium With Examples
XPath can be used to locate any element on a page based on its tag name, ID, CSS class, and so on. There...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found