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

Expose retry, timeout parameters in manual surface #221

Closed
crwilcox opened this issue Oct 9, 2020 · 1 comment · Fixed by #222
Closed

Expose retry, timeout parameters in manual surface #221

crwilcox opened this issue Oct 9, 2020 · 1 comment · Fixed by #222
Assignees
Labels
help wanted We'd love to have community involvement on this issue. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@crwilcox
Copy link
Contributor

crwilcox commented Oct 9, 2020

the generated surface surfaces retry and timeout. For many calls this would be useful for firestore customers.

def run_query(
        self,
        request: firestore.RunQueryRequest = None,
        *,
        retry: retries.Retry = gapic_v1.method.DEFAULT,
        timeout: float = None,
        metadata: Sequence[Tuple[str, str]] = (),
    ) -> Iterable[firestore.RunQueryResponse]:

Async and Sync clients should be updated to expose this.

@product-auto-label product-auto-label bot added the api: firestore Issues related to the googleapis/python-firestore API. label Oct 9, 2020
@crwilcox crwilcox added help wanted We'd love to have community involvement on this issue. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. and removed api: firestore Issues related to the googleapis/python-firestore API. labels Oct 9, 2020
@tseaver tseaver self-assigned this Oct 13, 2020
tseaver added a commit that referenced this issue Oct 13, 2020
tseaver added a commit that referenced this issue Oct 13, 2020
tseaver added a commit that referenced this issue Oct 13, 2020
tseaver added a commit that referenced this issue Oct 13, 2020
tseaver added a commit that referenced this issue Oct 13, 2020
tseaver added a commit that referenced this issue Oct 13, 2020
tseaver added a commit that referenced this issue Oct 13, 2020
tseaver added a commit that referenced this issue Oct 13, 2020
tseaver added a commit that referenced this issue Oct 13, 2020
@tseaver
Copy link
Contributor

tseaver commented Oct 13, 2020

@crwilcox API design questions:

  • How should retry and timeout options be surfaced when using Batch or Transaction as context managers?
  • Should the normally-invisible Transaction._begin and Transaction._rollback methods somehow pass through retry / timeout?
  • How should retry / timeout be exposed / plumbed through for DocumentReference.on_snapshot (likewise CollectionReference.on_snapshot and Query.on_snapshot)?

tseaver added a commit that referenced this issue Oct 13, 2020
tseaver added a commit that referenced this issue Oct 14, 2020
tseaver added a commit that referenced this issue Oct 14, 2020
Methods include:

- 'create'
- 'set'
- 'update'
- 'delete'
- 'get'
- 'collections'

Toward #221
tseaver added a commit that referenced this issue Oct 14, 2020
Methods affected:

- 'AsyncQuery.get'
- 'AsyncQuery.stream'
- 'AsyncCollectionGroup.get_partitions'

Towards #221
tseaver added a commit that referenced this issue Oct 14, 2020
Methods affected:

- 'add'
- 'get'
- 'list_documents'
- 'stream'

Towards #221
tseaver added a commit that referenced this issue Oct 14, 2020
tseaver added a commit that referenced this issue Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted We'd love to have community involvement on this issue. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants