infinitered / infinitered/authority_ecto

Store locking information on User Schema

Open
#30 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Elixir
Stars
12
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Devise tracks this information using two columns:

  • failed_attempts (integer)
  • locked_at (datetime)

I'm curious why the attempts and locks tables are necessary, especially because it results in performing an extra query on every single request.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the User Schema and the attempts and locks tables, then trace the extra query performed on each request. Determine whether failed_attempts and locked_at can replace the existing tables without changing locking behavior; the issue does not name files or tests, so the relevant entry points and completion checks must first be established.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
authentication, database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.