Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix the failing domain deletion task #4891
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
Fix the failing domain deletion task #4891
Changes from 4 commits
3700ee0
450fd0f
ba068c5
8441a0c
7bb4574
d2980f4
01cf49f
5a1b327
2d719d3
205e53b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Same note able annotating variable name with type.
domain
is probably best, asdomain_pk
doesn't make sense here anymore. Is there a strong reason to change this call either way? Why not change the call tosym.remove_symlink_cname(domain.domain)
instead? We have calls from our commercial hosting fork that might break because of the signature change.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.
@agjohnson
I think we can't call like this
sym.remove_symlink_cname(domain.domain)
because as mentioned in the issue ( #4789 ).So it needs to depend only on the string
domain.domain
, which is being passed as argument from the 'delete
andsave
method of the 'Domain' class.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.
Would it be worth it to make a similar function for the deletion?
And not touching this function.
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 don't know if that is necessary, seems like the current methods are all we need.
domain_str
can bedomain
either way however, no need for type annotation on variable names.