Skip to content
This repository was archived by the owner on Jun 8, 2026. It is now read-only.

Refactor Company Application Status - #349

Open
Minipoloalex wants to merge 5 commits into
developfrom
312-refactor-offer-state
Open

Refactor Company Application Status#349
Minipoloalex wants to merge 5 commits into
developfrom
312-refactor-offer-state

Conversation

@Minipoloalex

@Minipoloalex Minipoloalex commented Mar 13, 2024

Copy link
Copy Markdown

Replaced the virtual state in company application with an enum.

Previously, the virtual state depended on whether the rejectedAt and approvedAt fields were defined. Now it is defined with an explicit enum instead of being a virtual field.

I also had to define a default function for the application state enum depending on those same fields. With a simple default PENDING, migrating the database would cause approved/rejected applications to be seen as pending. This function makes the default value depend on approvedAt and rejectedAt.

Also replaced the tests related with the virtual state.

Closes #312

@Minipoloalex Minipoloalex linked an issue Mar 13, 2024 that may be closed by this pull request
@render

render Bot commented Mar 13, 2024

Copy link
Copy Markdown

@codecov

codecov Bot commented Mar 13, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.35%. Comparing base (82886d0) to head (fcd1f9a).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #349      +/-   ##
===========================================
+ Coverage    90.34%   90.35%   +0.01%     
===========================================
  Files           54       54              
  Lines         1470     1473       +3     
  Branches       246      245       -1     
===========================================
+ Hits          1328     1331       +3     
  Misses         137      137              
  Partials         5        5              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Minipoloalex
Minipoloalex force-pushed the 312-refactor-offer-state branch from 29f88c7 to fcd1f9a Compare March 17, 2024 12:12
@jose-carlos-sousa
jose-carlos-sousa self-requested a review May 29, 2024 13:06

@jose-carlos-sousa jose-carlos-sousa left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work as expected :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor Offer State

2 participants