-
Notifications
You must be signed in to change notification settings - Fork 81
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
dns.py docstrings, RO props #422
Conversation
therealsilence
commented
Sep 4, 2017
- Format tweaks for readability
- Revise / add docstrings to forms and props
- Add read only ( 'ro' ) to properties that should not be modified once created
Codecov Report
@@ Coverage Diff @@
## master #422 +/- ##
==========================================
+ Coverage 90.45% 90.47% +0.02%
==========================================
Files 127 127
Lines 14369 14373 +4
==========================================
+ Hits 12997 13004 +7
+ Misses 1372 1369 -3
Continue to review full report at Codecov.
|
('inet:dns:aaaa', {'subof': 'sepr', 'sep': '/', 'fields': 'fqdn,inet:fqdn|ipv6,inet:ipv6', | ||
'ex': 'vertex.link/2607:f8b0:4004:809::200e', | ||
'doc': 'The result of a DNS AAAA record lookup'}), | ||
('inet:dns:look', { |
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.
digging the readability breakdowns
- Format for readability - Revise / add docstrings to forms and form props - Add read only ( 'ro' ) to properties that should not be modified once created
…fter the original nodes have been created. This addresses an issue where the autoadd'd events may have required props which are not included in autoadds.
29765be
to
beacb99
Compare
('ns:zone', {'ptype': 'inet:fqdn', 'ro': 1}), | ||
('ns', {'ptype': 'inet:dns:ns', 'doc': 'The DNS NS record returned by the lookup', 'ro': 1}), | ||
('ns:zone', {'ptype': 'inet:fqdn', 'doc': 'The domain queried for its DNS NS record', 'ro': 1}), | ||
('ns:ns', {'ptype': 'inet:fqdn', 'doc': 'The domain returned in the DNS NS record', 'ro': 1}), |
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.
@therealsilence - should this be name server?
('ns:ns', {'ptype': 'inet:fqdn', 'ro': 1}), | ||
('ns:zone', {'ptype': 'inet:fqdn', 'ro': 1}), | ||
('ns', {'ptype': 'inet:dns:ns', 'doc': 'The DNS NS record returned by the lookup', 'ro': 1}), | ||
('ns:zone', {'ptype': 'inet:fqdn', 'doc': 'The domain queried for its DNS NS record', 'ro': 1}), |
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.
@therealsilence - should this be name server?
@@ -1799,6 +1800,10 @@ def addTufoEvents(self, form, propss): | |||
xact.fire('node:add', form=form, valu=valu, node=node) | |||
xact.spliced('node:add', form=form, valu=valu, props=props) | |||
|
|||
if self.autoadd: |
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.
@vEpiphyte - this "ro props" change looks good to me. If you want, we can merge this now as a separate PR.