-
-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
It's just a concept. Not yet decided if it will be included in future.
Add nullable flags state which will means that none of the actions were performed.
To proof concept we'll look at Classic\Accept flag there could be 3 states:
is_accepted = null- Not accepted and not rejected yet.is_accepted = true- Entity was accepted.is_accepted = false- Entity was rejected.
Scopes
NULL
withNotYetAcceptedwill gettrue+nullentities.withoutNotYetAcceptedwill omit onlynullentities.onlyNotYetAcceptedwill get onlynullentities.
FALSE
withRejectedwill gettrue+falseentities.withoutRejectedwill omit onlyfalseentities.onlyRejectedwill get onlyfalseentities.
NULL + FALSE
- Some method to get
null+false+trueentities. Right nowwithRejectedmethod is removing global scope.
The main issue here that all FALSE scopes removes global scope, and entities with NULL flag will be displayed then.
// :TODO: Write test case and try to implement nullable flag
Or find another solution, like extra database table to display what entities was not accepted or rejected yet.
Metadata
Metadata
Assignees
Labels
No labels