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
[AIRFLOW-4899] Fix get_dataset_list from bigquery hook to return next… #5565
Conversation
Maybe out of scope but it still won't necessarily give all datasets. |
Thanks for your comment. I added the parameter |
Travis is sad
|
Are you planning to continue working on this change? This week, I would like to deal with PR reviews related to GCP. I would be happy if you would respond to all comments |
Yes I will work on this change soon, but I have some mistakes with my docker to run unit tests locally. |
I ran unit tests locally and all succeed for tests.contrib.hooks.test_bigquery_hook.TestDatasetsOperations. |
Sorry, I found my mistake. I append an array in array. I fixed it. |
next_page_token = datasets_list_resp.get('nextPageToken', None) | ||
|
||
if next_page_token: | ||
optional_params['PageToken'] = next_page_token |
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.
What do you think about using the list_next method here? This will simplify the code.
Example:
https://github.com/apache/airflow/blob/master/airflow/contrib/hooks/gcp_transfer_hook.py#L201-L206
@benjamingrenier flake8 is sad ;_; |
ea7560e
to
06dae40
Compare
Hi. I have prepared a commit for you.
|
06dae40
to
e634388
Compare
Thanks it's done. |
e634388
to
e670a3e
Compare
Hi. I made a change in the base class - GoogleCloudBaseHook. Your PR may need to be changed. Could you do rebase? Cheers Reference: |
Ok I will do that. |
e670a3e
to
14d8e21
Compare
What rebase do you excepted ? On airflow/master ? |
Yes. Please do rebase on latest apache/master. |
Thanks, but how do you proceed to make that properly ? |
See CONTRIBUTING guide: https://github.com/apache/airflow/blob/master/CONTRIBUTING.md#pull-request-guidelines - it has the link explaining how to rebase. |
Sam here @benjamingrenier -> we want to play nice and move the operators only after we merge outstanding requests so it would be great if you can rebase this PR on top of apache/master. |
4efff72
to
91d0857
Compare
4192043
to
a8471aa
Compare
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.
Will approve after rebase.
I done the rebase on airflow/master such as you expect no?
Le sam. 7 sept. 2019 à 17:31, Jarek Potiuk <notifications@github.com> a
écrit :
… ***@***.**** requested changes on this pull request.
Will approve after rebase.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#5565?email_source=notifications&email_token=AMS27S4J2NDMKZPQOAMSUPDQIPCOLA5CNFSM4IBV3MLKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCD7XFOI#pullrequestreview-285176505>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMS27SYSEDSP3XN5TVDQKOLQIPCOLANCNFSM4IBV3MLA>
.
|
Same here @benjamingrenier :(. Rebase is needed. |
a8471aa
to
2146e77
Compare
Rebase done, but I don't understand why there are errors ? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@potiuk wasn't this mergable? the failed test was just a timeout. |
@benjamingrenier did you stop working on this PR ? seems like it was marked stale by mistake |
Yes it was a mistake I will rebases it soon.
Le mar. 10 déc. 2019 à 08:32, OmerJog <notifications@github.com> a écrit :
… @benjamingrenier <https://github.com/benjamingrenier> did you stop
working on this PR ? seems like it was marked stale by mistake
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5565?email_source=notifications&email_token=AMS27SZWNXIOXDNX5GW3Z6DQX5AZ5A5CNFSM4IBV3MLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGOIBVA#issuecomment-563904724>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMS27S75U32WX4CP6A4VDD3QX5AZ5ANCNFSM4IBV3MLA>
.
|
Done : #6780 |
Next page token used and max results parameter too. The method
get_datasets_list
can return more than 50 datasets.