Remove the action field and add an "extra" inclusion enum
See original GitHub issueSplitting up issues from #88
Right now it looks like we don’t look at the action field in a policy rule. By default any rule created will be treated as a reject. Here is the enums we allow right now:
ACCEPT
REJECT
REQUIRE
We need to come up with a strategy for handling these
Issue Analytics
- State:
- Created 2 years ago
- Comments:17 (17 by maintainers)
Top Results From Across the Web
Dealing with Enum Type in PostgreSQL - DEV Community
Existing data are using an enum value which should be removed now. For example, you have this enum ('PREPARING', 'WAITING_PICKUP', 'IN_DELIVERY ...
Read more >PostgreSQL: ENUM is no Silver Bullet | by Duong Nguyen
4 ways to do inclusion validations in PostgreSQL ... How easy to ADD, UPDATE, REMOVE items from the list of options.
Read more >Visual enum editor adds extra (blank) values #12277 - GitHub
I have two ideas for how to fix this. Start the form with an empty field and let the user manually add however...
Read more >Can I add and remove elements of enumeration at runtime in ...
No, enums are supposed to be a complete static enumeration. At compile time, you might want to generate your enum .java file from...
Read more >ActiveRecord::Enum - Rails API
Declare an enum attribute where the values map to integers in the database, but can be queried by name.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@iamkelllly The
action
field is being removed altogether, since onlyREJECT
was ever used, and so the assumption going forward will be that all policy rulesREJECT
.After discussing I realize that
ONLY
works if you assume it’s an accept rule (e.g. ACCEPT this system if it ONLY uses these categories), but since the rule is still going to be a REJECT we kinda need to figure out the opposite of ONLY.Here’s a decent verb for this that works with the rest, I think:
OTHER
Putting into practice…
ANY
of these categories are used:user.provided.identifiable.contact.email
,user.provided.identifiable.contact.phone_number
ALL
of these categories are used together:user.provided.identifiable.contact.email
,user.provided.identifiable.contact.phone_number
OTHER
categories are used that are not:user.provided.identifiable.contact.email
,user.provided.identifiable.contact.phone_number