Content Claim type filters #135

Closed
tiger5226 wants to merge 2 commits from content_filters_mb into master
tiger5226 commented 2018-11-18 05:39:16 +01:00 (Migrated from github.com)
No description provided.
kauffj commented 2018-11-19 19:13:36 +01:00 (Migrated from github.com)

@seanyesmunt @alyssaoc some low hanging feature fruit courtesy of @tiger5226

Can you get app-side issue filed? Should be a quick-hit to add this feature

@seanyesmunt @alyssaoc some low hanging feature fruit courtesy of @tiger5226 Can you get app-side issue filed? Should be a quick-hit to add this feature
neb-b commented 2018-11-19 19:18:56 +01:00 (Migrated from github.com)
Created https://github.com/lbryio/lbry-desktop/issues/2111
tiger5226 commented 2018-11-19 23:07:03 +01:00 (Migrated from github.com)

This a duplicate of https://github.com/lbryio/lighthouse/pull/124. I was just squashing and rebasing, resolving conflict for that PR. @marcdeb1 is the author of this work :) . It is done but just needs to be tested. He was planning on doing that soon.

This a duplicate of https://github.com/lbryio/lighthouse/pull/124. I was just squashing and rebasing, resolving conflict for that PR. @marcdeb1 is the author of this work :) . It is done but just needs to be tested. He was planning on doing that soon.
neb-b (Migrated from github.com) reviewed 2018-11-29 21:55:48 +01:00
@ -266,0 +269,4 @@
const mediaTypes = ['audio', 'video', 'text', 'application', 'image'];
if (mediaTypes.includes(input.mediaType)) {
const mediaFilter = {'match_phrase_prefix': {'value.stream.source.contentType': input.mediaType + '\\/'}};
filters.push(mediaFilter);
neb-b (Migrated from github.com) commented 2018-11-29 21:55:48 +01:00

I think it would be nice if someone could pass in more than one contentType/mediaType in these queries. That would allow even more fine tuned search in the app.

search?contentType=type1,type2

I think it would be nice if someone could pass in more than one contentType/mediaType in these queries. That would allow even more fine tuned search in the app. `search?contentType=type1,type2`
marcdeb1 (Migrated from github.com) reviewed 2018-11-29 22:19:56 +01:00
@ -266,0 +269,4 @@
const mediaTypes = ['audio', 'video', 'text', 'application', 'image'];
if (mediaTypes.includes(input.mediaType)) {
const mediaFilter = {'match_phrase_prefix': {'value.stream.source.contentType': input.mediaType + '\\/'}};
filters.push(mediaFilter);
marcdeb1 (Migrated from github.com) commented 2018-11-29 22:19:56 +01:00

Indeed it's a good idea. I will add it

Indeed it's a good idea. I will add it
marcdeb1 (Migrated from github.com) reviewed 2018-12-02 11:10:58 +01:00
@ -266,0 +269,4 @@
const mediaTypes = ['audio', 'video', 'text', 'application', 'image'];
if (mediaTypes.includes(input.mediaType)) {
const mediaFilter = {'match_phrase_prefix': {'value.stream.source.contentType': input.mediaType + '\\/'}};
filters.push(mediaFilter);
marcdeb1 (Migrated from github.com) commented 2018-12-02 11:10:58 +01:00

It was added to PR #124

It was added to PR #124
tiger5226 commented 2018-12-04 01:21:44 +01:00 (Migrated from github.com)

Closing this one and I will squash and rebased the other.

Closing this one and I will squash and rebased the other.

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/lighthouse.js#135
No description provided.