storj/satellite
Ivan Fraixedes 0d1ba7bc08 satellite/metainfo: Return error misusing func
Return an error when misusing the endpoint method
'listSegmentsFromNumberOfSegments' because there is the method
'listSegmentsManually' for being used when the number of segments is
less or equal than 0.

If we don't return an error on `listSegmentsFromNumberOfSegments` we
would realize that we have a bug much more later than returning an error
because the clients wouldn't receive an error and would receive an empty
list, making them to wonder what they are doing wrong to receive 0
results before they realize that they could be in front of a bug.

This commit also renames the function to be plural as "numberOfSegments"
parameter and the test function which missed also the end 's'.

Change-Id: I02318685bf36aa3af26545731a1711621a5e2e39
2019-12-11 10:45:56 +00:00
..
accounting satellite/accounting: fix project limits migration (#3717) 2019-12-10 18:12:49 +02:00
attribution private: rename internal to private (#3573) 2019-11-14 21:46:15 +02:00
audit satellite/metainfo: don't leak error implementation detail (#3722) 2019-12-10 15:21:30 -05:00
console projectLimit error message changed (#3718) 2019-12-10 15:54:23 -05:00
contact satellite/nodeselection: don't select nodes that haven't checked in for a while (#3567) 2019-11-15 23:43:06 +01:00
dbcleanup private: rename internal to private (#3573) 2019-11-14 21:46:15 +02:00
gc private: rename internal to private (#3573) 2019-11-14 21:46:15 +02:00
gracefulexit satellite/gracefulexit: enable graceful exit in production 2019-12-09 17:32:34 +00:00
inspector private: rename internal to private (#3573) 2019-11-14 21:46:15 +02:00
mailservice satellite/mailservice: move logging to send rendered async to cover template parsing (#3654) 2019-11-28 12:29:48 +02:00
marketingweb private: rename internal to private (#3573) 2019-11-14 21:46:15 +02:00
metainfo satellite/metainfo: Return error misusing func 2019-12-11 10:45:56 +00:00
metrics private: rename internal to private (#3573) 2019-11-14 21:46:15 +02:00
nodestats all: use pkg/rpc instead of pkg/transport 2019-09-25 15:37:06 -06:00
orders satellite/metainfo, satellite/repair, uplink/eestream: add metric for download failed due to not enough pieces available (#3665) 2019-12-04 16:24:36 -05:00
overlay satellite/nodeselection: don't select nodes that haven't checked in for a while (#3567) 2019-11-15 23:43:06 +01:00
payments satellite/payments: coupons and coupon usage (#3648) 2019-11-26 19:58:51 +02:00
referrals satellite/referrals: set up referrals service and http endpoints (#3566) 2019-11-25 16:36:36 -05:00
repair satellite/metainfo: don't leak error implementation detail (#3722) 2019-12-10 15:21:30 -05:00
rewards satellite/satellitedb: cockroachDB compatible transaction in offersDB.Create (#3686) 2019-12-04 21:54:43 -06:00
satellitedb satellite/accounting: fix project limits migration (#3717) 2019-12-10 18:12:49 +02:00
vouchers private: rename internal to private (#3573) 2019-11-14 21:46:15 +02:00
api.go satellite/metainfo: add UserAgent support to endpoints (#3548) 2019-11-26 03:12:37 -08:00
core.go satellite/payments: coupons and coupon usage (#3648) 2019-11-26 19:58:51 +02:00
peer.go private,satellite: unite all the "temp db schema" things 2019-12-05 15:36:59 +00:00
repairer.go private: rename internal to private (#3573) 2019-11-14 21:46:15 +02:00