Skip to content

BigQuery: add UnknownJob type for redacted jobs.#5281

Merged
tswast merged 1 commit intogoogleapis:masterfrom
tswast:bq-unknown-job
May 1, 2018
Merged

BigQuery: add UnknownJob type for redacted jobs.#5281
tswast merged 1 commit intogoogleapis:masterfrom
tswast:bq-unknown-job

Conversation

@tswast
Copy link
Contributor

@tswast tswast commented May 1, 2018

Fixes #5220

/cc @shollyman

@tswast tswast requested a review from lukesneeringer as a code owner May 1, 2018 18:29
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 1, 2018
@tswast tswast requested a review from tseaver May 1, 2018 19:37
@tseaver
Copy link
Contributor

tseaver commented May 1, 2018

I can't see any benefit to the caller in getting back an instance of UnknownJob: I would certainly find it disconcerting and useless. ISTM that the caller's experience would be better if the backend should skip reporting jobs for which the caller does not access. As an alternative, Client.list_jobs() could just discard entries without any configuration.

That said, I don't see an issue with the code here, so feel free to merge if the consensus is agin' me.

@tswast
Copy link
Contributor Author

tswast commented May 1, 2018

We had a meeting with the BQ backend team this morning, and this was the conclusion / compromise. My opinion is the backend should return a 403 on permissions errors rather than redacting, but that's still an ongoing conversation.

@tswast tswast merged commit 59829c7 into googleapis:master May 1, 2018
@tswast tswast deleted the bq-unknown-job branch May 1, 2018 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants