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

Captcha Harvesting State should Apply to new Captcha Windows #106

Closed
pr1sm opened this issue Nov 10, 2018 · 1 comment
Closed

Captcha Harvesting State should Apply to new Captcha Windows #106

pr1sm opened this issue Nov 10, 2018 · 1 comment
Assignees
Labels
area:frontend Related to Nebula's Frontend Electron app area:task-runner Related to Nebula's Task Runner package priority:high Issues that are high priority, but don't need to be solved ASAP type:bug Something isn't working

Comments

@pr1sm
Copy link
Collaborator

pr1sm commented Nov 10, 2018

Describe the bug
The captcha windows will be supported in #104.
One feature left to implement that isn't required for an MVP is tracking the state of "harvesting" vs "not harvesting" captchas. When captchas are needed, any new captcha windows that are open don't start harvesting immediately.

To Reproduce

  1. Start a task that requires a captcha
  2. Ensure that a captcha window opens and triggers a captcha test
  3. Open a new captcha window -- This window won't have a captcha test triggered when it should

Expected behavior
From the reproduction steps:

  1. Start a task that requires a captcha
  2. Ensure that a captcha window opens and triggers a captcha test
  3. Open a new captcha window -- This window should also automatically trigger a captcha test

Desktop (please complete the following information):

  • OS: MWL
  • Service: Frontend Task Runner
  • Version: alpha
@pr1sm pr1sm added type:bug Something isn't working area:frontend Related to Nebula's Frontend Electron app area:task-runner Related to Nebula's Task Runner package labels Nov 10, 2018
@pr1sm pr1sm assigned pr1sm and unassigned pr1sm Nov 17, 2018
@walmat walmat added this to the Beta 2 Release milestone Dec 29, 2018
@walmat walmat modified the milestones: Beta 3 Release, Beta 4 Release Jan 18, 2019
@walmat walmat added this to the Beta 5 Release milestone Feb 3, 2019
@pr1sm pr1sm modified the milestones: Beta 5 Release, Beta 6 Release Feb 8, 2019
@pr1sm pr1sm added the priority:high Issues that are high priority, but don't need to be solved ASAP label Feb 11, 2019
@pr1sm pr1sm self-assigned this Feb 22, 2019
pr1sm added a commit that referenced this issue Feb 22, 2019
This commit updates the Captcha Window Manager to automatically start harvesting on a new window if the rest of the windows are in the harvesting state. This allows you to open/close all captcha windows, but have new window harvest if a captcha is still required.

Issue: #106
pr1sm added a commit that referenced this issue Feb 23, 2019
* Start Refactoring CaptchaWindowManager

This commit starts the refactor for the new CaptchaWindowManager. This manager will be in charge of all captcha windows instead of having a manager instance per window.

At this time, the old captcha window manager is still in use. Once the new manage is written. the regular WindowManager will have to be adjusted to use the new CaptchaWindowManager

* Add Injectable Options for Youtube and Captcha Windows

This commit updates the create window functions for Youtube and Captcha to allow custom options and webPreferences to be injected in. This allows further customizations when creating these windows.

* More Implementation Progress

This commit adds more progress towards implementing a new CaptchaWindowManager.
- Specific functions to spawn youtube and captcha windows are added
- The end session handler is implemented.
- Adjustments to the Youtube Launch handler

* Transition to Use New Captcha Window Manager

This commit replaces the old implementation of WindowManager to use the new CaptchaWindowManager for captcha/youtube functions.

The old captcha window manager implementation is removed. There is still some code in the WindowManager that needs to be moved over to the CaptchaWindowManager. For now, these calls are just proxied so they work.

* Cleanup WindowManager

This commit adds some cleanup for the window manager.

The change theme handler has been commented out until #350 is addressed.

* Use Harvest State when Spawning New Captcha Window

This commit updates the Captcha Window Manager to automatically start harvesting on a new window if the rest of the windows are in the harvesting state. This allows you to open/close all captcha windows, but have new window harvest if a captcha is still required.

Issue: #106

* Increase Speed of Captcha Stopping

Instead of reloading the page, the captcha window now only loads the captcha methods once and resets when it stops harvesting. The captcha form is hidden to display the idle animation again. This prevents a reload cycle from happening everytime the captcha finishes harvesting

Issue: #272

* Remove Proxy on captcha window load

This commit removes the captcha server proxy when the window loads. This allows the youtube window experience to function properly.

* Fix Captcha Windows not closing on deactivate

This commit adds a call to always close the captcha windows when the main window closes. This should include both when closing and deactivating.

* Fix Captcha Window Auto Spawn

This commit fixes a bug where a captcha window would not be spawned if it was needed.

fixes #97
fixes #106
fixes #272
fixes #317
@pr1sm
Copy link
Collaborator Author

pr1sm commented Feb 23, 2019

Fixed in #355

@pr1sm pr1sm closed this as completed Feb 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:frontend Related to Nebula's Frontend Electron app area:task-runner Related to Nebula's Task Runner package priority:high Issues that are high priority, but don't need to be solved ASAP type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants