Skip to content

Fix: Rename Request State Field to Status #2399

@surajmaity1

Description

@surajmaity1

Issue Description

We need to rename the state field to status in the requests collection of our backend application, which handles requests like OOO, ONBOARDING, etc. Currently, the state field tracks values like PENDING, APPROVED, and REJECTED. This change will require updates to our database schema, API endpoints, and any related code that references this field. The goal is to ensure consistency and clarity by using status instead of state.

Expected Behavior

After this change, all references to the request state field should be updated to status throughout the application. This includes:

  • Database schema
  • API endpoints and responses
  • Backend logic handling these requests
  • Any frontend code that interacts with these requests
  • Documentation and tests

The functionality should remain the same, with the only change being the field name.

Screenshots

Reproducibility

  • This issue is reproducible
  • This issue is not reproducible

Steps to Reproduce

Severity/Priority

  • Critical
  • High
  • Medium
  • Low

Checklist

  • I have read and followed the project's code of conduct.
  • I have searched for similar issues before creating this one.
  • I have provided all the necessary information to understand and reproduce the issue.
  • I am willing to contribute to the resolution of this issue.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions