-
Notifications
You must be signed in to change notification settings - Fork 107
[minor_change] contract subject filter direction support #306
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
[minor_change] contract subject filter direction support #306
Conversation
|
after discussion decided to reflect the GUI behaviour |
| type: str | ||
| choices: [ AF11, AF12, AF13, AF21, AF22, AF23, AF31, AF32, AF33, AF41, AF42, AF43, | ||
| CS0, CS1, CS2, CS3, CS4, CS5, CS6, CS7, EF, VA, unspecified ] | ||
| aliases: [ target ] |
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.
dscp_provider_to_consumer, dscp_consumer_to_provider -> both the parameters have same aliases: [ target ]
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.
ok. regular dscp also which I also changed
| - The contract subject name. | ||
| type: str | ||
| aliases: [ contract_subject, name, subject_name ] | ||
| direction: |
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.
Usage of variable names similar to that on UI is recomended (direction -> apply_both_direction)
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.
ok
|
I am getting the following error when running the test cases: |
anvitha-jain
left a comment
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.
LGTM
lhercot
left a comment
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.
LGTM
fixes #303
discussion still needed for completion on the following topics:
api accepts all direction types, but GUI checkmark on subject does not
when combined all directions do show in GUI
when choice is made for "both" or a "combination of provider2consumer / consumer2provider" an additional api call will be required or restructure of code
direction not saved as part of object config of subject, which is also not something that can be requested. check would then be needed on the children objects of subject.
filter_existing in exit_json() used to manipulate the current/previous output. done in aci.py because another get_existing() is done for current status there. if done in aci_contract_subject_to_filter.py manipulation of current status was not possible when aci.exit_json() is called