GithubHelp home page GithubHelp logo

Comments (4)

tahini avatar tahini commented on August 17, 2024

Part of the participant/user split

from evolution.

tahini avatar tahini commented on August 17, 2024

Here's a proposal for this one:

  • Add a table to the database, with 4 fields: user_id, interview_id, opened_at, last_update. The last 2 fields are timestamps.
  • opened_at would be set upon activation of the interview
  • updated_at or last_update would be set at every update, to the most recent entry per user_id/interview_id
  • Those update can be done through a request middleware on the activeInterview and updateInterview express routes. That middleware would be optional (defaults to a function that simply passes through), and present only on the admin side.

We could also add a fifth column: for_validation (boolean), which would be true if the interview was opened by a user for validation, and false if for edition. PK would be user_id, interview_id, for_validation

Note The optional middleware mechanism can also be used for logging purpuses (#47), which would decouple the interview from the logic of logging, which are totally unrelated.

from evolution.

kaligrafy avatar kaligrafy commented on August 17, 2024

We should use updated_at to be consistent with other updated_at fields elsewhere in evolution and transition

from evolution.

kaligrafy avatar kaligrafy commented on August 17, 2024

maybe replace opened_at by viewed_at

from evolution.

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.