-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Merged
ericholscher
merged 10 commits into
readthedocs:master
from
dojutsu-user:fix-domain-deletion-task-sym
Jan 22, 2019
Merged
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
3700ee0
Fix the failing domain deletion task
dojutsu-user 450fd0f
Move import to the top of the file
dojutsu-user ba068c5
move the imports back
dojutsu-user 8441a0c
Change genertor expression to list comprehension
dojutsu-user 7bb4574
remove list comprehension
dojutsu-user d2980f4
Revert back the argument name
dojutsu-user 01cf49f
Merge branch 'master' into fix-domain-deletion-task-sym
dojutsu-user 5a1b327
remove dom.domain
dojutsu-user 2d719d3
Merge branch 'master' into fix-domain-deletion-task-sym
dojutsu-user 205e53b
add improvements
dojutsu-user File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.