-
Notifications
You must be signed in to change notification settings - Fork 3
Added conditional attribute requirement to Object Template #32
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
base: main
Are you sure you want to change the base?
Conversation
Wait for next Whois release before deploying (needs to be aligned with code changes) |
|
||
**The RIPE Database contains objects formatted according to the Routing Policy Specification Language (RPSL), which has a set of syntax rules you have to comply with when creating, updating or deleting objects. In addition, the RIPE NCC enforces certain business rules to ensure data integrity and registry accuracy. This document gives an overview of all current business rules.** | ||
|
||
The object template lists attributes with a conditional requirement, which will be mandatory ot optional depending on the Database business rules. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo:
will be mandatory or optional
not op
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we consider to add a reference to businessRules interface in GitHub repository?
approve with minor comments |
|
||
| **Applies To Object Type** | **On Action** | **Business Rule** | | ||
|--------------------------------------|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| **all** | Create | An object cannot be created if it already exists. The creation will fail if another object of the same type and with the same primary key is already present in the RIPE Database. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a new rule for Geofeed or prefixlen?
Saying that if the geofeed/prefixlen is already in the remark it is not allowed the creation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that they shouldn't be "conditional" because you still can create a geofeed/prefixlen with different value than the remark and still be OK
Following discussion on the Database Working Group [1], implement the conditional attribute requirement.
A conditional attribute may be mandatory or optional, depending on database business rules [2].
Related to RIPE-NCC/whois#1881
[1] https://mailman.ripe.net/archives/list/[email protected]/thread/DN3NRUOWEHHGVZUL7WLEGSEVKOIZVAV7/
[2] https://docs.db.ripe.net/Database-Support/Database-Business-Rules