Do not display primary uri in related content. #6966

Closed
Ruk33 wants to merge 1 commit from 6434-do-not-display-primary-uri-in-related into master
Ruk33 commented 2021-08-25 21:29:36 +02:00 (Migrated from github.com)

Fixes

Issue Number: https://github.com/lbryio/lbry-desktop/issues/6434

What is the current behavior?

The primary uri (content being played) can appear as related.

What is the new behavior?

The primary uri is filter out from related.

Other information

PR Checklist

Toggle...

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting)
  • Refactoring (no functional changes)
  • Documentation changes
  • Other - Please describe:

Please check all that apply to this PR using "x":

  • I have checked that this PR is not a duplicate of an existing PR (open, closed or merged)
  • I added a line describing my change to CHANGELOG.md
  • I have checked that this PR does not introduce a breaking change
  • This PR introduces breaking changes and I have provided a detailed explanation below
## Fixes Issue Number: https://github.com/lbryio/lbry-desktop/issues/6434 <!-- Tip: - Add keywords to directly close the Issue when the PR is merged. - Skip the keyword if the Issue contains multiple items. - https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword --> ## What is the current behavior? The primary uri (content being played) can appear as related. ## What is the new behavior? The primary uri is filter out from related. ## Other information <!-- If this PR contains a breaking change, please describe the impact and solution strategy for existing applications below. --> ## PR Checklist <!-- For the checkbox formatting to work properly, make sure there are no spaces on either side of the "x" --> <details><summary>Toggle...</summary> What kind of change does this PR introduce? - [x] Bugfix - [ ] Feature - [ ] Code style update (formatting) - [ ] Refactoring (no functional changes) - [ ] Documentation changes - [ ] Other - Please describe: Please check all that apply to this PR using "x": - [x] I have checked that this PR is not a duplicate of an existing PR (open, closed or merged) - [ ] I added a line describing my change to CHANGELOG.md - [x] I have checked that this PR does not introduce a breaking change - [ ] This PR introduces breaking changes and I have provided a detailed explanation below </details>
tzarebczan commented 2021-08-25 21:43:08 +02:00 (Migrated from github.com)

@jessopb I thought we fixed this like 3 times already lol - is there a better approach outside of this?

@jessopb I thought we fixed this like 3 times already lol - is there a better approach outside of this?
infinite-persistence commented 2021-08-25 21:44:23 +02:00 (Migrated from github.com)

If not mistaken, this will break recsys as the index of each recommended item in the sidebar has meaning.
I think we'll need to filter one level up, at <RecommendedContent>, or maybe at the selector side?

makeSelectRecommendedContentForUri seems to be doing a similar thing. Maybe something broke there?

Or maybe canon vs perm URL comparison problem

If not mistaken, this will break recsys as the index of each recommended item in the sidebar has meaning. I think we'll need to filter one level up, at `<RecommendedContent>`, or maybe at the selector side? `makeSelectRecommendedContentForUri` seems to be doing a similar thing. Maybe something broke there? Or maybe canon vs perm URL comparison problem
Ruk33 commented 2021-08-27 18:07:14 +02:00 (Migrated from github.com)

This is something I mentioned to @tzarebczan , I don't know if it's useful or related but wanted to also leave it documented in here as well:

I did notice something a bit strange tho, the primary uri is lbry://trim-45B3D9CC-3BE5-494F-96F4-E15DEA67A0DD#04648d1c06a69a0f2994d62d09f299f0c019d3b3, but for the related content, it comes as lbry://@JustinCringe#7/trim.45B3D9CC-3BE5-494F-96F4-E15DEA67A0DD#0, both being the same claim but with different uris
This is something I mentioned to @tzarebczan , I don't know if it's useful or related but wanted to also leave it documented in here as well: ``` I did notice something a bit strange tho, the primary uri is lbry://trim-45B3D9CC-3BE5-494F-96F4-E15DEA67A0DD#04648d1c06a69a0f2994d62d09f299f0c019d3b3, but for the related content, it comes as lbry://@JustinCringe#7/trim.45B3D9CC-3BE5-494F-96F4-E15DEA67A0DD#0, both being the same claim but with different uris ```
jessopb commented 2021-08-27 18:50:19 +02:00 (Migrated from github.com)

I would filter it at the claimPreview level - have it choose not to display itself. That's how most other filters are working.
Possibly lighthouse should support not_claim_ids or something, but it doesn't at the moment.

I would filter it at the claimPreview level - have it choose not to display itself. That's how most other filters are working. Possibly lighthouse should support not_claim_ids or something, but it doesn't at the moment.
jessopb (Migrated from github.com) requested changes 2021-08-29 18:18:21 +02:00
jessopb (Migrated from github.com) left a comment

I think this filter is best done at the claimPreview level with the other filters, even though that component is getting out of hand.

I think this filter is best done at the claimPreview level with the other filters, even though that component is getting out of hand.
tzarebczan commented 2021-09-01 18:17:32 +02:00 (Migrated from github.com)

wanna take another stab at this?

wanna take another stab at this?
jessopb commented 2021-09-02 03:44:20 +02:00 (Migrated from github.com)

We've been talking about doing more processing and filtering in the makeSelectRecommendedForUri selector. It might be good to do this there. @saltrafael may be working in that area soon though?

We've been talking about doing more processing and filtering in the `makeSelectRecommendedForUri` selector. It might be good to do this there. @saltrafael may be working in that area soon though?
tzarebczan commented 2021-09-15 16:12:00 +02:00 (Migrated from github.com)
This will be replaced by https://github.com/lbryio/lbry-desktop/pull/7089

Pull request closed

Sign in to join this conversation.
No reviewers
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#6966
No description provided.