Total items incorrect in channel search results tile #659

Closed
opened 2017-10-10 22:28:32 +02:00 by tzarebczan · 5 comments
tzarebczan commented 2017-10-10 22:28:32 +02:00 (Migrated from github.com)

The Issue

Looks like there is a bug in search results and showing how many claims are in the channel. For example, a channel with 1 claim shows: "This is a channel with over 10 items inside of it."

It stems from: https://github.com/lbryio/lbry-app/blob/master/ui/js/selectors/content.js#L40 / https://github.com/lbryio/lbry-app/blob/master/ui/js/component/channelTile/view.jsx#L38 which tries to take the number of pages in the channel and multiply it by 10 - which is incorrect. Need it to get the total number of claims in a channel. It should be able to show the exact amount, no need to say "over x items". Unless this was meant to be a quick approximation without going deep into the channel details, not sure.

Steps to reproduce

  1. search wqwqwqwq
  2. check channel results - lbry://@wqwqwqwqwqwqwq#a4c06b2c73362a3120a99c0fa9a36886109284e5
    only has 1 item in it but the results show 10

Expected behaviour

Show correct # of claims in channel

Actual behaviour

Shows incorrect # of claims

System Configuration

  • LBRY Daemon version: 0.17rc3
  • LBRY App version: 0.17RC1
  • LBRY Installation ID:
  • Operating system:

Anything Else

Screenshots

<!-- Thanks for reporting an issue to LBRY and helping us improve! To make it possible for us to help you, please fill out below information carefully. Before reporting any issues, please make sure that you're using the latest version. - App releases: https://github.com/lbryio/lbry-app/releases - Standalone daemon: https://github.com/lbryio/lbry/releases We are also available on Slack at https://slack.lbry.io --> ## The Issue Looks like there is a bug in search results and showing how many claims are in the channel. For example, a channel with 1 claim shows: "This is a channel with over 10 items inside of it." It stems from: https://github.com/lbryio/lbry-app/blob/master/ui/js/selectors/content.js#L40 / https://github.com/lbryio/lbry-app/blob/master/ui/js/component/channelTile/view.jsx#L38 which tries to take the number of pages in the channel and multiply it by 10 - which is incorrect. Need it to get the total number of claims in a channel. It should be able to show the exact amount, no need to say "over x items". Unless this was meant to be a quick approximation without going deep into the channel details, not sure. ### Steps to reproduce 1. search wqwqwqwq 2. check channel results - lbry://@wqwqwqwqwqwqwq#a4c06b2c73362a3120a99c0fa9a36886109284e5 only has 1 item in it but the results show 10 ### Expected behaviour Show correct # of claims in channel ### Actual behaviour Shows incorrect # of claims ## System Configuration <!-- For the app, this info is in the About section at the bottom of the Help page. You can include a screenshot instead of typing it out --> <!-- For the daemon, run: curl 'http://localhost:5279' --data '{"method":"version"}' and include the full output --> - LBRY Daemon version: 0.17rc3 - LBRY App version: 0.17RC1 - LBRY Installation ID: - Operating system: ## Anything Else <!-- Include anything else that does not fit into the above sections --> ## Screenshots <!-- If a screenshot would help explain the bug, please include one or two here -->
btzr-io commented 2017-10-11 06:51:19 +02:00 (Migrated from github.com)

Would be nice if this kind on info comes directly from the channel_claim ( along with subscriptions count once is implemented) instead of resolving channel again, it's slow and don't show relevant data 😛

Would be nice if this kind on info comes directly from the `channel_claim` ( along with subscriptions count once is implemented) instead of resolving channel again, it's slow and don't show relevant data :stuck_out_tongue:
tzarebczan commented 2017-10-11 15:13:34 +02:00 (Migrated from github.com)

@btzr-io - claims_in_channel is returned during the resolve of the channel. Is that what you are referring to with channel_claim, or something else?

@btzr-io - claims_in_channel is returned during the resolve of the channel. Is that what you are referring to with channel_claim, or something else?
kauffj commented 2017-10-12 01:21:02 +02:00 (Migrated from github.com)

This will be fixed in next RC.

This will be fixed in next RC.
kauffj commented 2017-10-12 01:21:10 +02:00 (Migrated from github.com)

And yes, the way it was done originally was dumb.

And yes, the way it was done originally was dumb.
kauffj commented 2017-10-12 15:38:17 +02:00 (Migrated from github.com)

Fixed in 0.17.0rc2, to be made public shortly.

Fixed in 0.17.0rc2, to be made public shortly.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#659
No description provided.