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

dns.py docstrings, RO props #422

Merged
merged 2 commits into from
Sep 12, 2017
Merged

dns.py docstrings, RO props #422

merged 2 commits into from
Sep 12, 2017

Conversation

therealsilence
Copy link
Contributor

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

codecov bot commented Sep 5, 2017

Codecov Report

Merging #422 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
synapse/models/dns.py 100% <ø> (ø) ⬆️
synapse/cores/common.py 94.01% <100%> (+0.01%) ⬆️
synapse/lib/socket.py 85.26% <0%> (+0.56%) ⬆️
synapse/links/common.py 89.7% <0%> (+1.47%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6c0d736...beacb99. Read the comment docs.

invisig0th
invisig0th previously approved these changes Sep 8, 2017
('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', {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

digging the readability breakdowns

therealsilence and others added 2 commits September 12, 2017 14:18
- 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.
('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}),
Copy link
Contributor

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}),
Copy link
Contributor

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

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.

@therealsilence therealsilence merged commit 3e25433 into master Sep 12, 2017
@therealsilence therealsilence deleted the thesilence_dns branch September 12, 2017 21:23
@vEpiphyte vEpiphyte added this to the v0.0.24 milestone Sep 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants