Page MenuHomeSoftware Heritage

Fix bitbucker lister: min_bound must be a date
ClosedPublic

Authored by douardda on Jan 14 2019, 12:13 PM.

Details

Summary

which it won't be when the lister is called for the first time (will be
None in this case).

Depends on D938

Diff Detail

Repository
rDLS Listers
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vlorentz added a subscriber: vlorentz.

Another way is to override request_uri:

def request_uri(self, identifier):
    return super().request_uri(identifier or '1970-01-01')
This revision is now accepted and ready to land.Jan 14 2019, 1:16 PM

Another way is to override request_uri:

def request_uri(self, identifier):
    return super().request_uri(identifier or '1970-01-01')

I guess this solution makes sense indeed

follow vlorentz' advice: overload the request_uri method

This revision was automatically updated to reflect the committed changes.