Comments (5)
Hi, Can you describe in detail how you operate to get this issue? I can't reproduce the issue on my server
from black_candy.
I'm seeing this issue as well, here's how to reproduce:
- Start playing a song so that it's added to the Current list
- Attempt to add that same song to a playlist.
- Error message displays instead of the song being added to the playlist
from black_candy.
It's wired, after follow the step I still can't reproduce the issue. This error only raised when the playlist already have the song in it.
from black_candy.
I've spotted the source of this issue - it's due to caching, which is why it's present in production and not in development.
The collection of playlist partials is cached, but the dialog/playlists/_playlist
partial contains a dynamic params[:song_id]
value, so the partial will cache the song_id in the partial and always submit the same value after the first submit.
The easiest solution would be to not cache that list of playlist partials, but perhaps a better one would be to wrap them in a form containing the dynamic song_id value and have each playlist partial contain a button that only submits the playlist_id and not the song_id.
I'm out of time tonight, so I can implement this another night, or you can go for it.
from black_candy.
OK, I will take time on this issue, thanks
from black_candy.
Related Issues (20)
- Player timer is frozen after switching to another page
- Add playlists in search results
- Option to move playlist to the Albums, Artist, etc. bar HOT 2
- Collapsible sidebar player
- Song requests returning 403
- When delete the last song from current playlist, page will redirect to blank page
- The db:seed task will run every time when has restarted the docker container
- Responsive issue in grid shelf view on tablet
- Deprecated warning in GitHub Actions
- Raise error when use PostgreSQL as database HOT 1
- Can not play song on Safari HOT 1
- Button text becomes invisible when hover on primary button
- Migrate images from DockerHub to GitHub Container Registry
- Push to multi-registries in GitHub Actions
- Can not login with [email protected] and foobar HOT 3
- Requirements for how audio library is stored HOT 2
- Render empty view when add song to the empty current playlist in mobile app
- Unify all dialog views under dialog route path
- Make operation of add song to current playlist behave consistently
- Organize page title
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from black_candy.