Skip to content

Add an "isActive" field to the user model #1374

@MattPereira

Description

@MattPereira

Overview

Our stakeholder has requested that we implement a feature that allows admin users to mark other users as inactive. For this issue, we will update the database schema and add a button that toggles a user's isActive status.

Action Items

  • Add the new key/value pair to the userSchema in the user.model.js file
    • isActive: { type: Boolean, default: true }
  • Show the active status of a user on the user details page
  • Add a button on the user details page that toggles the active status between true and false
  • Notify people depot about this modification to the database schema

Details

  • The default state of a newly created user will be isActive: true
  • Allow admin users to manage the isActive status of a user via the user details page

Resources

See screenshot of user details page

image

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions