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

Feature.add ability to redraft a traffic policy #1099

Conversation

caphrim007
Copy link
Contributor

Adds ability to re-draft a traffic policy

Issues:
Fixes #1098

Problem:
Policies cannot be successfully re-drafted for editing and re-publishing.

Analysis:
This patch adds a draft method that allows you to put the policy into
a draft state from where you can then edit it.

Tests:
functional

@caphrim007
Copy link
Contributor Author

drafting on a non-draft box is a harmless operation. and we dont raise errors anywhere else in the policy classes about it not being supported

This method was modeled after the publish() method. there is no _publish for it

@wojtek0806
Copy link
Contributor

i have not merged that PR that introduced publish and if i had been reviewing this i would say the same thing.

and for the error we should raise either exception or a warning

@caphrim007 caphrim007 force-pushed the feature.add-ability-to-redraft-a-traffic-policy branch from f586e7b to 230f57f Compare April 6, 2017 22:45
@wojtek0806
Copy link
Contributor

i think you missed import statement :)
fix please and you get +1 merge :)

@wojtek0806
Copy link
Contributor

btw i am ok without wrapping the method you convinced me :)

@wojtek0806 wojtek0806 self-assigned this Apr 6, 2017
@caphrim007 caphrim007 force-pushed the feature.add-ability-to-redraft-a-traffic-policy branch 2 times, most recently from ef170aa to d866077 Compare April 6, 2017 23:07
Issues:
Fixes F5Networks#1098

Problem:
Policies cannot be successfully re-drafted for editing and re-publishing.

Analysis:
This patch adds a `draft` method that allows you to put the policy into
a draft state from where you can then edit it.

Tests:
functional
@caphrim007 caphrim007 force-pushed the feature.add-ability-to-redraft-a-traffic-policy branch from d866077 to 37f8fb0 Compare April 6, 2017 23:15
@wojtek0806 wojtek0806 merged commit 4b058e6 into F5Networks:development Apr 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants