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

inet model bugfixes (SYN-4552, SYN-4561) #2982

Merged
merged 6 commits into from
Jan 16, 2023
Merged

inet model bugfixes (SYN-4552, SYN-4561) #2982

merged 6 commits into from
Jan 16, 2023

Conversation

vEpiphyte
Copy link
Contributor

  • inet:dns:soa properties are now writable.
  • inet:email norm now catches a python ValueError during splitting and raises a BadTypeValu directly when that happens.

@vEpiphyte vEpiphyte added the bug label Jan 13, 2023
@vEpiphyte vEpiphyte added this to the v2.12x.x milestone Jan 13, 2023
@codecov
Copy link

codecov bot commented Jan 13, 2023

Codecov Report

Base: 97.20% // Head: 97.09% // Decreases project coverage by -0.11% ⚠️

Coverage data is based on head (54341ca) compared to base (d351dde).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2982      +/-   ##
==========================================
- Coverage   97.20%   97.09%   -0.12%     
==========================================
  Files         217      217              
  Lines       43003    42992      -11     
==========================================
- Hits        41801    41742      -59     
- Misses       1202     1250      +48     
Flag Coverage Δ
linux 97.09% <100.00%> (-0.01%) ⬇️
linux_replay ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
synapse/models/dns.py 100.00% <ø> (ø)
synapse/tests/utils.py 94.46% <ø> (-1.89%) ⬇️
synapse/models/inet.py 99.53% <100.00%> (+<0.01%) ⬆️
synapse/cortex.py 96.55% <0.00%> (-0.57%) ⬇️
synapse/lib/hiveauth.py 96.01% <0.00%> (-0.48%) ⬇️
synapse/lib/oauth.py 98.68% <0.00%> (-0.44%) ⬇️
synapse/lib/trigger.py 95.01% <0.00%> (-0.39%) ⬇️
synapse/lib/view.py 97.01% <0.00%> (-0.34%) ⬇️
synapse/cmds/cron.py 97.56% <0.00%> (-0.25%) ⬇️
... and 14 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Cisphyx
Cisphyx previously approved these changes Jan 13, 2023
@@ -198,7 +198,11 @@ def _normPyStr(self, valu):

try:
user, fqdn = valu.split('@', 1)
except ValueError:
mesg = f'Cannot split the email user and fqdn for "{valu}"'
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe something about the missing @ sign? Something like Email address expected in <user>@<fqdn> format: {valu} or something?

@invisig0th invisig0th merged commit 60fa513 into master Jan 16, 2023
@invisig0th invisig0th deleted the bug_inet_model branch January 16, 2023 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants