sebasmonia / panda

Emacs package that consumes Bamboo's REST API to do useful things.
MIT License
3 stars 3 forks source link

Allow either filtering by branch or getting more items when queuing a release #14

Open sebasmonia opened 5 years ago

sebasmonia commented 5 years ago

Sometimes the release I want to push is in an older branch. If I could filter "last X on that branch" or just fetch more than last X, it would be great.

sebasmonia commented 5 years ago

Searching by name was another alternative considered but there's no easy way to add this into the API calls.

Fetching last 50 works fast enough in my setup but could be really slow in other circumstances. Would need some more testing to see how it behaves. On the other hand since "max-results" is controlled globally for builds and releases, when looking at build history (which requires one call to get the list and then a call for each build in the list) things don't look so good.

The idea of adding an extra item "(fetch more)" to the list seems alluring. It would repeat the call to the API but within a let to bind panda-latest-max-results to a bigger number. Or a multiple of the original.