-
-
Notifications
You must be signed in to change notification settings - Fork 361
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
fix: duplicate items in itemsGrid #6855
Conversation
WARNING @stephenjason89 PR for issue #6677 which isn't assigned to you. Please be warned that this PR may get rejected if there's another assignee for issue #6677 |
✅ Deploy Preview for koda-canary ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
AI-Generated Summary: This pull request includes a patch for the |
will plan to do release shortly if someone check this one, seems quite important for production 👀 |
cc @Jarsen136, @prury thanks ❤️ |
The bug is still there after testing. https://deploy-preview-6855--koda-canary.netlify.app/ksm/explore/items |
@Jarsen136, I'm sorry there was a typo. Everything is working perfectly now. Please check @Jarsen136 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a bad case for this solutioin.
If you visit this collection page and then turn on 'buy now', it would not work any more.
https://deploy-preview-6855--koda-canary.netlify.app/ksm/collection/eecde2ad072011334d-DOTPEPE
I have found a solution that could solve this issue. I will open a PR later. #6860 |
@Jarsen136 please check #6730 (comment) It was already discussed. This is the perfect example of the 1st scenario. I thought despite the setbacks of this implementation will make this as a quick fix. |
I'm ok with a quick fix to be merged. However, I would choose a better solution if it introduces a new bug. |
I completely agree. Though, it would have been really nice if you could have pointed me in the right direction for the fix as I've been debugging to find the bug and discussing potential solutions on the matter. Instead of opening a new PR. Anyway, thank you and i appreciate your efforts on checking the PR |
@Jarsen136 I have left a comment on your PR #6860 Please check if everything is working here now. I have revised the implementation and taken inspiration from your PR. Thank you |
I'm glad to see you continue to improve your commit. I patiently waited for you to provide a suitable fix until I repeatedly reviewed the code and found that the bug still happens. This bug fix should not take around one week. I'm sorry that I'm not going to review this PR. |
@Jarsen136, I apologize for any inconvenience this might have caused. I've been actively following up on the PR, but unfortunately, I received no assistance for a week. The issue was awaiting review, and my comments went unanswered. I was waiting with patience, so the delay wasn't from my side. I hope you can appreciate that. The conversation progressed when @yangwao tagged @vikiival. I completely understand that everyone has commitments, and I don't wish to chase trivial matters. My questions were genuine, and without clearer guidance on your expectations for the solution, I'm working somewhat in the dark. Maybe @prury can assist in reviewing this PR? It's a valid fix and addresses the current problem. |
Hello @JustLuuuu, included a fix for your issue #6865 here. Thank you for reporting it. |
Hey, @stephenjason89, it's another bug that comes from some recent merging. I merged the main branch into it so that you could reproduce it. |
Thank you so much. I managed to fix the issue. |
Code Climate has analyzed commit 59e2ae0 and detected 0 issues on this pull request. View more on Code Climate. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Hello @Jarsen136 & @preschian, Thank you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's go, as it's been stuck for too long.
pay 30 usd |
😍 Perfect, I’ve sent the payout 🪅 Let’s grab another issue and get rewarded! |
PR Type
Context
Issue was caused by
together with
Upon navigating to explore items, the query runs already to fetch page 1 but at the same time, breadCrumbsFilter onMounted event sets
listed=true
Thus making the watcher to run the query again for page 1 which causes the duplicates.
The fix was to have a separate watcher for listed and only run if listed was already set by BreadCrumbsFilter.
This will avoid the re-querying of data which causes the duplicates.
Closes Same item twice in explore feed #6677
Requires deployment <snek/rubick/worker>
Before submitting pull request, please make sure:
Optional
Did your issue had any of the "$" label on it?
Community participation
Screenshot 📸
Copilot Summary
🤖 Generated by Copilot at 769abca
Refactored the code for opening the shopping cart modal from the navbar. Moved the logic and configuration from
ShoppingCartModalConfig.ts
andShoppingCartButton.vue
toNavbar.vue
to improve code organization and performance.🤖 Generated by Copilot at 769abca