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

farmer|gui: Enable paginated plot loading and improved state reporting #11367

Merged
merged 2 commits into from
May 3, 2022

Conversation

xdustinface
Copy link
Contributor

@xdustinface xdustinface commented Apr 29, 2022

This PR pins the new GUI and changes the event which gets sent from the farmer to the GUI which was previously called new_plots with the payload of get_harvesters with the plots of all harvesters.

Now with this PR the event gets renamed to harvester_update and it:

  • Only sends a summary (basically one entry of get_harvester_summay) for the harvester which actually sent an update
  • Is used to notify for each loaded batch during initial loading of an harvester

There is also a new state changed event called harvester_removed which gets triggered by the farmer if the harvester was disconnected and has the payload {"node_id": <node_id of the harvester which was removed>}

Based on #11342 and required #11365

@github-actions
Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot added the merge_conflict Branch has conflicts that prevent merge to main label Apr 30, 2022
@xdustinface xdustinface force-pushed the pr-improved-farm-gui branch from e920e70 to bbcae57 Compare May 3, 2022 01:00
@github-actions github-actions bot removed the merge_conflict Branch has conflicts that prevent merge to main label May 3, 2022
@github-actions
Copy link
Contributor

github-actions bot commented May 3, 2022

Conflicts have been resolved. A maintainer will review the pull request shortly.

- Only send the data for the harvester which actually sent an update
- Notify for each loaded batch during initial loading
@xdustinface xdustinface force-pushed the pr-improved-farm-gui branch from bbcae57 to 4c03c9b Compare May 3, 2022 13:59
@xdustinface xdustinface marked this pull request as ready for review May 3, 2022 13:59
@xdustinface xdustinface requested review from altendky and mariano54 May 3, 2022 13:59
@xdustinface
Copy link
Contributor Author

70679c1 is ready for review but GUI will probably receive another update in a bit with small style changes.

altendky
altendky previously approved these changes May 3, 2022
Copy link
Contributor

@emlowe emlowe left a comment

Choose a reason for hiding this comment

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

approved

@emlowe emlowe added the ready_to_merge Submitter and reviewers think this is ready label May 3, 2022
@wjblanke wjblanke merged commit 0d5251c into Chia-Network:main May 3, 2022
xdustinface added a commit that referenced this pull request May 4, 2022
#11367)

* farmer: Adjust notifications from the farmer to the UI

- Only send the data for the harvester which actually sent an update
- Notify for each loaded batch during initial loading

* Enable improved farmer/harvester GUI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready_to_merge Submitter and reviewers think this is ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants