Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove forcedSearchQueueItem, in favor of using backlogQueueItem for single ep searches #6718

Merged
merged 16 commits into from
Sep 1, 2019

Conversation

p0psicles
Copy link
Contributor

@p0psicles p0psicles commented May 23, 2019

Forced searches are now using the BacklogQueueItem.
But the search is placed in the forced_search_queue_scheduler scheduler.
This means that a scheduled proper, backlog or daily search will not interfere with a forced search

  • PR is based on the DEVELOP branch
  • Don't send big changes all at once. Split up big PRs into multiple smaller PRs that are easier to manage and review
  • Read the contribution guide

used in #6709

Forced searches are now using the BacklogQueueItem.
But the search is placed in the forced_search_queue_scheduler scheduler.
This means that a scheduled proper, backlog or daily search will not interfere with a forced search
@ghost
Copy link

ghost commented May 23, 2019

DeepCode analyzed this pull request.
There are 3 new info reports.

Click to see more details.

@ghost
Copy link

ghost commented May 25, 2019

DeepCode analyzed this pull request.
There are 2 new info reports.

Click to see more details.

@p0psicles p0psicles mentioned this pull request May 25, 2019
34 tasks
@p0psicles p0psicles mentioned this pull request Jun 30, 2019
5 tasks
@p0psicles p0psicles marked this pull request as ready for review August 17, 2019 12:28
@p0psicles
Copy link
Contributor Author

@medariox this one is next. If you have some time?


# Set the search_type for the result.
result.search_type = SearchType.FORCED_SEARCH
search_result = search_providers(self.show, self.segment, True, True,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better to use named arguments here, especially for the Trues. It makes it much more readable.

if isinstance(self.currentItem, (ForcedSearchQueueItem, FailedQueueItem)):
"""Test of a forced search is currently running (can be backlog, manual or failed search).

it doesn't check what's in queue.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be capitalized for consistency.

@medariox medariox added this to the 0.3.5 milestone Sep 1, 2019
@medariox medariox merged commit e960ee4 into develop Sep 1, 2019
@medariox medariox deleted the feature/remove-forced-search branch September 1, 2019 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants