Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Company Application Status #349

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

Minipoloalex
Copy link

@Minipoloalex Minipoloalex commented Mar 13, 2024

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
Copy link

render bot commented Mar 13, 2024

Copy link

codecov bot commented Mar 13, 2024

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.

Copy link

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

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor Offer State
2 participants