Code Monkey home page Code Monkey logo

Comments (3)

danmash avatar danmash commented on September 25, 2024

it happens when we try to update scores for a user. it's a case when this quiz UUID is already associated with some user. My guess was that the frontend sends multiple requests for some reason and we try to assign quiz UUID to the user twice.
We trying to update user C34EAF2F-9E88-474E-9A03-EED62B5F5A5D with the quiz uuid a8d30ffc-9964-4730-af38-36aa31fb6e3b

@rodriguesk I see that at the current moment you already have some quiz assigned to you
854EB8D6-C972-4ED7-ACAF-3A44013FC83C

I've started checking with the following query to find all @rodriguesk quizzes. Maybe you had to take another quiz. So I had to check this

select * from scores sc
join sessions se on se.session_uuid = sc.quiz_uuid
join users u on u.user_uuid = se.user_uuid
where u.user_uuid = 'C34EAF2F-9E88-474E-9A03-EED62B5F5A5D'

And have no result.
then I've checked all your sessions with

select * from sessions where user_uuid = 'C34EAF2F-9E88-474E-9A03-EED62B5F5A5D'

and have no results
then I've realized that there are not a single link to a user from the session table.

SELECT TOP 501 t.*
                    FROM [sqldb-web-test-001].dbo.sessions t
                    WHERE user_uuid is not null

All sessions are anonymous! It's a huge issue.
As a result I unable to check user's history of q quizzes

from climatemind-backend.

cyplas avatar cyplas commented on September 25, 2024

@danmash I'm not sure I understand the issue here precisely, but perhaps it has been (at least partially) solved by #363, given that that PR addresses the anonymous session issue?

from climatemind-backend.

danmash avatar danmash commented on September 25, 2024

ok, let's see if it will happen on production

from climatemind-backend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.