Skip to content
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

Solution is shown under "All Solutions" but not under "My Solutions" on kata solutions page #1884

Open
javatlacati opened this issue Jul 24, 2019 · 10 comments
Labels
issue/solution-not-shown Temporary label to view all issues about this. issues/solution-grouping For viewing issues related to solution grouping and solutions page kind/bug

Comments

@javatlacati
Copy link

javatlacati commented Jul 24, 2019

It happens to me he opposite of issue #41 .

if I go to solutions page I can see my solution

image

but if I go to My Solutions page it says that there are no solutions and even nothing is shown in the browser console

image

┆Issue is synchronized with this Clickup by Unito

@javatlacati javatlacati changed the title I can't see my solution for Pyton I can't see my solution for Pyton [bug] Jul 24, 2019
@FArekkusu
Copy link

FArekkusu commented Jul 24, 2019

Looks exactly like #41 to me - you can't see your solution in any of the tabs but Compare with your solution button works correctly.

@javatlacati
Copy link
Author

@FArekkusu please read carefullly

is visible if I click "My solutions", but not visible again when I click "All solutions"

that's exactly the opposite since

if I click "My solutions" is not visible but when I go to "All solutions" I can see it

@error256
Copy link

error256 commented Jul 24, 2019

In the screenshot I see it only in the "Compare with you solution" section, which can show even non-finally-submitted solutions. Is it in the list too?

@javatlacati
Copy link
Author

It appears on ast solutions on the trainer

image

@kazk kazk changed the title I can't see my solution for Pyton [bug] Solution is shown under "All Solutions" but not under "My Solutions" on kata solutions page Jul 25, 2019
@kazk kazk added issue/solution-not-shown Temporary label to view all issues about this. kind/bug labels Jul 25, 2019
@Blind4Basics
Copy link

@javatlacati : your solution is nowhere shown in any tab of the solutions page. The "past solutions" tab in the trainer behaves the same way than the "compare with your solution" button in the solution page.

=> Behaviors are inconsistent betwwen the different features, but there is nothing new here. You should resolve this one.

@kazk kazk added the issues/solution-grouping For viewing issues related to solution grouping and solutions page label Sep 28, 2019
@highspotjeremy
Copy link

@kazk - our clan has been running into this issue with increasing frequency (I can link to affected katas if it will help). I have seen other similar bugs reported here as well. Is the cause of this issue known? Any estimate on when it might be fixed? I even tried a Red subscription to see if that might affect things but am still seeing the same behavior.

@Blind4Basics
Copy link

@highspotjeremy: there is a known bug about this, related to the routine that is grouping solutions together. Generally, it goes one of those two ways:

  1. solution visible in "my solutions" but not in "all solutions". In that case, adding/removing an up vote on the solution is enough to make it show up in "all solutions" too.
  2. solution invisible anywhere. In that case, it might be trickier... Sometimes, the solution is grouped with another that is in a group which is itself not visible. In tat case, you cannot do anything (pretty rare, tho). Sometimes, the solution just don't show up. Nothing can be done in that case (from the user point of view), but you can post again your solution, moving some lines around or changing some var name, so that it doesn't end up in the same group than the first version.

but solution grouping is quite buggy, yes.

@highspotjeremy
Copy link

@Blind4Basics - this is definitely #2. The newer submissions are not showing up in "My Solutions," but those from a year or two ago are (this is pretty consistent when we do run into it). The same is true for "Solutions of Users I am Following." It's also definitely not a grouping issue, because it's affecting ALL newer submissions even when not similar to any other. If I had to venture a guess, I would say this looks like an indexing or query limit issue of some sort. It does seem to happen more often for katas with a large number of submitted solutions. For example, today we had no problems with one that has 3,926 solutions but did with one that has 29.855.

@Blind4Basics
Copy link

oh, yeah, there is another possible problem: some kata have too much solutions already and it's actually not possible to store the new ones, yes. It's a known problem too.

@kazk
Copy link
Member

kazk commented Mar 23, 2021

It's also definitely not a grouping issue, because it's affecting ALL newer submissions even when not similar to any other.

Unique ones are stored in a new group, so it's still part of the grouping process. These solution groups are stored terribly (#2263 (comment)) and the code is a huge mess.

Is the cause of this issue known?

There are multiple known causes and unknowns:

  1. The cache of the page was not invalidated.
  2. The solution was grouped to a hidden solution group. A solution group may be hidden for various reasons.
  3. The grouping job failed because of the size limit (Internal Server Error on solution group voting and commenting #2263 (comment)). This is one of the last major technical dept I had inherited and is the cause of so many issues.
  4. The grouping job seems to fail somewhere silently.

Any estimate on when it might be fixed?

No. I can't estimate because I don't know when I have the time to work on Codewars, espcially larger tasks like these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/solution-not-shown Temporary label to view all issues about this. issues/solution-grouping For viewing issues related to solution grouping and solutions page kind/bug
Projects
None yet
Development

No branches or pull requests

6 participants