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
Error in listings #13054
Comments
Thanks for the issue, we will take it into consideration! Our team of engineers is busy working on many types of features, please give us time to get back to you. Feature requests that require more discussion may be closed. Read more about our feature request process on forem.dev. To our amazing contributors: issues labeled To claim an issue to work on, please leave a comment. If you've claimed the issue and need help, please ping @forem/oss. The OSS Community Manager or the engineers on OSS rotation will follow up. For full info on how to contribute, please check out our contributors guide. |
Thanks for letting us know! I use listings a lot so this is good information. I'll let our engineers know and see if we can add some user feedback once the bump listing button is clicked. |
Here is a video of what you see when you hit the bump button. Right not there is no indication at all the the button was hit or that it has bumped your listing. Screen.Recording.2021-04-08.at.11.41.52.AM.mov |
I was trying to figure out how this was working and then I discovered, it's a form submit, but with no navigation away from the page, i.e. an HTTP 204. I was confused as it looked like a regular form submit, but it appeared to have AJAX enabled. We'll need to change that up to provide feedback to the user whether or not the bump was successful. I looked up how a response in rails sends back an HTTP 204. Apparently you use |
@nickytonline unfortunately it's a weird corner case bug with some code that's hard to decipher I found it perusing the logs after clicking on "Bump", that 204 is not intentional:
Usually one redirects or renders something after a successful operation, that's what the normal "update" operation does: if you change something in the form and click "update listing" you'll end up in the index page, see
forem/app/controllers/listings_controller.rb Lines 125 to 139 in 90da635
Unfortunately though, the
forem/app/controllers/concerns/listings_toolkit.rb Lines 160 to 170 in 90da635
I think we should not make |
Describe the bug
Two problems with listings. The second is caused by the first. Their not really bugs, just problems with the UX / UI.
When I bump my listing, nothing say me that it works, so I end thinking that it doesn't work. Then, especially because the user doesn't receive feedback, he can be tempted to click another time the bump button (as I did...). And he lost another credit for every click, even if he gains nothing from that additional bump.
To Reproduce
Go to "listings"
Create a listing
Go on "edit" (the listing)
Bump
--> Click the bump button - It does not update instantly
--> Click two or more time the bump button - You lose credits for nothing
Expected behavior
An alert / small message that says: "Your request has been approved, your list will be bumped in the following minutes" or something like that next to the bump button should be good. Then, especially because the user doesn't receive feedback, he can be tempted to click another time the bump button (as I did...). So I think it's important to add a limit for bumping, maybe one every 15 minutes. Although for security / best user experience reasons (for the whole community) it would be better to limit the creation of list/bumping of lists to 24 hours.
Screenshots
Desktop (please complete the following information):
OS, version: Microsoft, Windows 10
Browser, version: Chrome, latest (88.0.4324.190)
Smartphone (please complete the following information):
Not specific to smartphones.
Additional context
I discovered the bug and just don't want others to have the same problem.
Regards
The text was updated successfully, but these errors were encountered: