-
Notifications
You must be signed in to change notification settings - Fork 0
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
Pagination #94
Pagination #94
Conversation
…y into pagination � Conflicts: � octavia_proxy/api/v2/controllers/load_balancer.py
@@ -90,7 +92,7 @@ def from_data_model(cls, data_model, children=False): | |||
listener_model(id=i['id']) for i in listeners] | |||
result.pools = [ | |||
pool_model(id=i['id']) for i in pools] | |||
result.admin_state_up = data_model.is_admin_state_up | |||
# result.admin_state_up = data_model.is_admin_state_up |
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.
why commented?
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.
Fix
octavia_proxy/api/v2/types/pool.py
Outdated
@@ -90,36 +93,55 @@ class PoolResponse(BasePoolType): | |||
|
|||
@classmethod | |||
def from_data_model(cls, data_model, children=False): | |||
LOG.debug('DATA_MODEL {}'.format(data_model)) |
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.
pls remove that
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.
or add in all methods
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.
Remove logs
# query_params = pagination_helper.params | ||
# query_filter.update(query_params) |
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.
query_filter used in driver_invocation, need to think how to pass query params\filter to driver with excluded pagination params
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 will try to do this in another PR.
# query_params = pagination_helper.params | ||
# query_filter.update(query_params) |
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 as above
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 will try to do this in another PR.
# query_params = pagination_helper.params | ||
# TODO: fix filtering and sorting, especially for multiple providers | ||
query_filter.update(query_params) | ||
# query_filter.update(query_params) |
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 as above
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 will try to do this in another PR.
|
||
# TODO: fix filtering and sorting, especially for multiple providers | ||
if 'vip_port_id' in query_params: | ||
query_filter['vip_port_id'] = query_params['vip_port_id'] | ||
query_filter.update(query_params) | ||
# query_filter.update(query_params) |
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 as above
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 will try to do this in another PR.
# query_params = pagination_helper.params | ||
# query_filter.update(query_params) |
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 as above
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 will try to do this in another PR.
# query_params = pagination_helper.params | ||
# query_filter.update(query_params) |
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 as above
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 will try to do this in another PR.
# query_params = pagination_helper.params | ||
# query_filter.update(query_params) |
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 as above
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 will try to do this in another PR.
9ae3d67
let's merge |
Build succeeded. ✔️ otc-tox-docs SUCCESS in 3m 39s |
Add pagination logic to controllers and unit tests for it.