-
Notifications
You must be signed in to change notification settings - Fork 569
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Find Market only shows OPEN assets #1320
Comments
Can confirm this is occurring for me using the bitshares.org web wallet, if you start typing in the 'asset name' field it will proceed with the search, however I agree that openledger's UIA shouldn't be the absolute default for the reference wallet. |
This happened to me too on Desktop Client (linux). My workaround until now was like @grctest mentioned: start write the asset's name (eg: BRIDGE, etc) to show other assets. |
Can we get this regex for the search to look for asset names:
In this particular case, I'd expect none of the OPEN.* assets to display because none match the search criteria. |
It defaults to open.x assets because when this search was added they were the only ones we had. It also populates default assets because people didn't understand they had to type something to search. The asset search api only allows searching from the start of the asset so we can't really change that. |
Working on this issue...have identified problem but will take some time to resolve. |
Open PR which resolves issue... Would love second pair of eyes to ensure another issue was not introduced. Notes regarding implementation in PR. |
I would prefer that we just remove the default assets here, making the user search for something manually. They were there for convenience back when we only had OPEN.X gateway assets, now we have many so the search shouldn't be biased. Maybe add a gateway selector instead that will trigger a search for the assets of the selected gateway provider. |
@svk31 the gateway selector is needed but I think it's a larger UX concern since we will want to allow users to group and search by gateway throughout. I've broached this with @ahdigital |
@svk31 Is there a problem with the PR? |
I think I resolved the issue in my PR as it was reported...user wanted to be able to see all assets when visiting "Find Markets". I made sure OPEN, RUDEX, and UIAs are all visible in find markets up front. That resolves the issue as reported. I also diagnosed and resolved performance issues with loading the additional market data (which was even an issue before when only showing OPEN assets). The majority of my time I spent on the performance issue (~5 hours). The original estimate was 2 hours and I increased as we have been doing when an issue takes more time than in the estimate. When I took the issue on, my expectation was that the issue had already been curated and that the desired solution was to make all of the assets appear by default, as well as making search behave as expected (as in only assets which match search criteria should appear). My PR is here: It seems as if @svk31 is changing the scope of the issue entirely rather than critiquing my solution to the reported issue:
My hope is that any issue that makes it into a sprint does not get materially changed in scope after it has been placed in the sprint, as whoever does the work essentially loses their time investment. If it's about actual work going beyond the estimate, I'm happy to first explore an issue and submit a revised estimate. My contention is simply that the desired end result from a user perspective should already be settled before the issue makes it into a sprint. Alternatively, if I can pick up on a new approach and not lose my existing hours that's great, too. |
@svk31 please review and let me know how to proceed. If there is a particular issue you have with Calvin's work, please voice it. It sounds as if Calvin dug a bit deeper and fixed some root issues. |
I don't have any issues with the work, technically it looks fine. I'm just pointing out that the original issue was just a misunderstanding: he was changing the quote currency instead of searching for an asset, and expecting the list of searched assets to change. Adding more assets to the default search doesn't fix that, and as calvin himself pointed out doing so caused performance issues. |
I was able to work around the performance issues introduced by ignoring renders, though I'll agree it is not the most ideal solution. I do think it's a reasonable user expectation that anything under "Find Markets" is a market for the given quote currency. This was not the case before and is now. So what is the plan here...simply not to show any assets by default? I am happy to make the change, just hoping to receive at least a partial payment for the work done to resolve the original issue. The original issue may have been a misunderstanding but it did make it into the sprint. |
@calvinfroedge It is definitely a problem if we try to list all assets before a user has typed anything in because of the network load. |
Placing this in 180415. Is there any reason this didn't get merged into 180401? |
I think the reason was simply that we did not come to a conclusion yet. If it matters, I would also prefer lazy loading if the user actually selects a base asset, with optional gateway selection (could also be done via settings). Exchange view is already slow enough. @calvinfroedge I don't think anyone wants to deny you the payment, but please do keep in mind that working 5h more on it does not justify per se adding 5 quality hours to it, such an adjustment always needs to be confirmed by @wmbutler (my statement is not meant as a judgement of your work, simply as explanation) |
I agree that no conclusion has been reached. Need @wmbutler and @svk31 to confirm final approach. @sschiessl-bcp I have been working on the UI since last summer and we have always added time to estimates to adjust for overage. This has not been a problem up to now so that's simply what I'm accustomed to. My point was just that if there was no consensus on what the end result should be this issue should not have been placed in a sprint. Concerns like extra server load should have been taken into account prior to putting the issue into the sprint. I think I resolved the issue (showing all assets) in the allotted time, but the performance issues made it unusable. The extra time was spent just diagnosing the performance issue. The actual fix was only a few lines of code. If you check out the branch, you'll see the UI loads the assets pretty quickly now without hanging. The only difference is no market stats show for 500-1500 ms. |
Since it appears we need to not show assets when there is no search criteria entered, let's also show some helper text in that area that says. Search assets above... This will help prompt the user to know that a search must be initiated in order to show assets. |
Ok, so...
|
Show top 20 assets matching search regex on search. I think this will work to keep the list from being sluggish. Debounce of maybe 200ms? |
Like I mentioned in another comment the asset search API is very limited, unless we have all assets cached locally which is unlikely. It's a very literal search, no regex capability, so searching There are thousands of assets now so loading them all (100 at a time) each time we load the GUI is not an option imo, nor is storing that many asset names locally a good idea. Perhaps the core team can provide a better asset search API call with regex capabilities? @abitmore @pmconrad |
When I did some work on the Asset page on the Explorer section I came across the very same issue. I then opened an issue on the core section addressing it. Elastic Search have been recommended for loading/searching assets. |
ok, let's hit ES for searching assets then. |
Since ES does not need to be enabled in the connected node, should there be a two fold way of searching? Or, should there be an option to configure separate ES connection? |
I think a fallback position is the smartest way to do it. Check for ES, if non responsive, use traditional method. |
Ok, so as ES option does not exist, this issue is on hold? Or should I just return all options on search until the ES option exists? |
There is an ES endpoint already provided for the GUI that you can use, I ll send you the URL later. |
@sschiessl-bcp Just following up with you on that ES endpoint. |
Sorry for the delay... |
How is the status on this? Could you connect to the ES? |
@sschiessl-bcp Unclaiming this, you are free to close it out |
Fixed by @startailcoon in #1677, not sure what to do about the rewards here. @wmbutler ? |
@startailcoon did you get paid fairly in #1677? If so, please remove the bounty and close this. |
@wmbutler I would say yes. Removing bounty on this issue. |
Can anyone confirm this? If I look for markets I only get open assets listed?
The text was updated successfully, but these errors were encountered: