Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content

Resolve "get_last does not work with Endpoint object"

guijar_m requested to merge 236-get_last-does-not-work-with-endpoint-object into master

Description

This MR adds get_last as a valid operation for stream entrypoints, and adds the validate_entrypoint decorator on get_last method to ensure passed topic will be an Entrypoint object or a string. The validate_entrypoint object is a decorator, that has the same funtionality as check_topic combined with _validate_entrypoint.

Passing anything else than a string or an Entrypoint object to a method expecting an entry point will raise a TypeError.

Closes #236 (closed)

Edited by guijar_m

Merge request reports