Giter Club home page Giter Club logo

Comments (2)

linear avatar linear commented on July 20, 2024

HIG-4745 Active length of session is suspicious

from highlight.

greptile-apps avatar greptile-apps commented on July 20, 2024

To investigate the accuracy of the active length of a session, follow these steps:

  1. Backend Calculation:

    • Check the ActiveSessionSql struct in /backend/lambda-functions/digests/utils/utils.go for how ActiveLength is calculated and stored.
    • Similarly, review the InterestingSessionSql struct in /backend/lambda-functions/sessionInsights/utils/utils.go.
  2. Frontend Display:

    • Inspect the usePlayer hook in /frontend/src/pages/Player/PlayerHook/PlayerHook.tsx to understand how the active length is fetched and displayed.
  3. GraphQL Schema:

    • Review the Session type in /backend/private-graph/graph/model/models_gen.go to see how the active length is queried.
  4. Session Insights:

    • Ensure the session insights logic in /backend/lambda-functions/sessionInsights/utils/utils.go correctly processes and calculates the active length.
  5. Debugging:

    • Add logging in the relevant backend functions to trace the calculation of ActiveLength.
    • Verify the timestamps and events used to compute the active length are accurate and consistent.

By following these steps, you can pinpoint any discrepancies in the active length calculation and ensure its accuracy.

References

/backend/lambda-functions/digests/utils/utils.go
/backend/lambda-functions/sessionInsights/utils/utils.go
/backend/private-graph/graph/generated/generated.go
/backend/private-graph/graph/model/models_gen.go
/backend/private-graph/graph/schema.resolvers.go
/frontend/src/pages/Player/PlayerHook/PlayerHook.tsx

Ask Greptile

from highlight.

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.