Skip to content

get both gearset devices from ER, so we can compare them with the inc…#28

Merged
chrisj-er merged 9 commits intomainfrom
release-2026-02-05
Mar 20, 2026
Merged

get both gearset devices from ER, so we can compare them with the inc…#28
chrisj-er merged 9 commits intomainfrom
release-2026-02-05

Conversation

@chrisj-er
Copy link
Copy Markdown

…oming edgetech gearset updates.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the EdgeTech processing flow so that, during update operations for two‑unit lines, the processor can include the end‑unit device details from EarthRanger (ER) when the end unit is not present in the current EdgeTech sync window—enabling proper comparison/updates against incoming EdgeTech gearset updates.

Changes:

  • Extend _create_gear_payload to optionally build the secondary device from an ER BuoyDevice when the end unit buoy isn’t available from EdgeTech.
  • Update the update-path logic in process() to fall back to ER’s end-unit device instead of skipping the update.
  • Add/adjust tests to cover the “end unit not in sync window” update behavior and related formatting/cleanup.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
app/actions/edgetech/processor.py Adds ER end-unit fallback for two-unit updates and threads the ER device into payload generation.
app/actions/tests/test_edgetech_processor.py Adds a targeted regression test for the ER end-unit fallback and applies minor cleanup/formatting.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…e end device, we get what's currently stored in ER.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

… minute, consider this a new deployment of the serialNumber. And conclude we never received the haul for that serial number.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

… now look through the change logs to find that and update Buoy appropriately
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chrisj-er chrisj-er merged commit 0f5e3fc into main Mar 20, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants