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

Pagination #94

Merged
merged 39 commits into from
Dec 16, 2021
Merged

Pagination #94

merged 39 commits into from
Dec 16, 2021

Conversation

irina-pereiaslavskaia
Copy link
Contributor

Add pagination logic to controllers and unit tests for it.

@irina-pereiaslavskaia irina-pereiaslavskaia marked this pull request as draft November 3, 2021 09:58
@irina-pereiaslavskaia irina-pereiaslavskaia linked an issue Nov 3, 2021 that may be closed by this pull request
@irina-pereiaslavskaia irina-pereiaslavskaia marked this pull request as ready for review November 9, 2021 10:39
otc-zuul[bot]
otc-zuul bot previously approved these changes Dec 2, 2021
Polina-Gubina
Polina-Gubina previously approved these changes Dec 6, 2021
@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why commented?

Copy link
Contributor Author

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/load_balancer.py Show resolved Hide resolved
@@ -90,36 +93,55 @@ class PoolResponse(BasePoolType):

@classmethod
def from_data_model(cls, data_model, children=False):
LOG.debug('DATA_MODEL {}'.format(data_model))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls remove that

Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove logs

Comment on lines +54 to +55
# query_params = pagination_helper.params
# query_filter.update(query_params)
Copy link
Member

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

Copy link
Contributor Author

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.

Comment on lines +64 to +65
# query_params = pagination_helper.params
# query_filter.update(query_params)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Copy link
Contributor Author

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.

Comment on lines +71 to +73
# query_params = pagination_helper.params
# TODO: fix filtering and sorting, especially for multiple providers
query_filter.update(query_params)
# query_filter.update(query_params)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Copy link
Contributor Author

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Copy link
Contributor Author

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.

Comment on lines +68 to +69
# query_params = pagination_helper.params
# query_filter.update(query_params)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Copy link
Contributor Author

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.

Comment on lines +68 to +69
# query_params = pagination_helper.params
# query_filter.update(query_params)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Copy link
Contributor Author

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.

Comment on lines +68 to +69
# query_params = pagination_helper.params
# query_filter.update(query_params)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

Copy link
Contributor Author

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.

@anton-sidelnikov
Copy link
Member

let's merge

@otc-zuul
Copy link

otc-zuul bot commented Dec 16, 2021

Build succeeded.

✔️ otc-tox-docs SUCCESS in 3m 39s
✔️ build-otc-releasenotes SUCCESS in 3m 40s
✔️ otc-tox-pep8 SUCCESS in 3m 48s
✔️ otc-tox-py39-tips SUCCESS in 4m 40s
✔️ octavia-proxy-upload-image SUCCESS in 7m 20s
✔️ tox-functional SUCCESS in 6m 02s

@otc-zuul otc-zuul bot merged commit aa68f33 into main Dec 16, 2021
@otc-zuul otc-zuul bot deleted the pagination branch December 16, 2021 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gate Merge PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pagination
4 participants