Skip to content

Dup simple flow producer properties#1555

Draft
AliouneGaye21 wants to merge 3 commits intoastarte-platform:release-1.2from
AliouneGaye21:dup_simple_flow_producer_properties
Draft

Dup simple flow producer properties#1555
AliouneGaye21 wants to merge 3 commits intoastarte-platform:release-1.2from
AliouneGaye21:dup_simple_flow_producer_properties

Conversation

@AliouneGaye21
Copy link
Contributor

@AliouneGaye21 AliouneGaye21 commented Oct 23, 2025

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?
  • Yes
  • No

Additional documentation e.g. usage docs, diagrams, etc.:


@codecov
Copy link

codecov bot commented Oct 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.47%. Comparing base (26acda8) to head (01fdf9f).

Additional details and impacted files
@@               Coverage Diff               @@
##           release-1.2    #1555      +/-   ##
===============================================
- Coverage        83.62%   83.47%   -0.15%     
===============================================
  Files              290      290              
  Lines             6949     6949              
===============================================
- Hits              5811     5801      -10     
- Misses            1138     1148      +10     
Files with missing lines Coverage Δ
.../astarte_data_updater_plant/data_updater/server.ex 79.72% <ø> (ø)

... and 2 files with indirect coverage changes

Flag Coverage Δ
astarte_data_updater_plant 84.04% <ø> (-0.52%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AliouneGaye21 AliouneGaye21 requested review from a team, eddbbt and frossq and removed request for a team October 23, 2025 16:43
page =
Xandra.execute!(conn, prepared, %{"device_id" => device_id}, uuid_format: :binary)
# Let the process handle device's last message
Process.sleep(100)
Copy link
Contributor

Choose a reason for hiding this comment

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

is this still necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, the processing of the last device message take a while.
Withot the delay, the next assertion will fail

@AliouneGaye21 AliouneGaye21 force-pushed the dup_simple_flow_producer_properties branch 3 times, most recently from 06f1e8f to f24c7a9 Compare October 29, 2025 16:56
@AliouneGaye21 AliouneGaye21 force-pushed the dup_simple_flow_producer_properties branch from f24c7a9 to 35b342e Compare October 30, 2025 11:54
@AliouneGaye21 AliouneGaye21 force-pushed the dup_simple_flow_producer_properties branch from 35b342e to 01fdf9f Compare October 30, 2025 15:05
}
end

test "Unset values from interface properties", %{
Copy link
Contributor

Choose a reason for hiding this comment

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

Wrong test name, should recall the operation of setting properties list

Comment on lines +85 to +90

assert DataUpdater.handle_delete_volatile_trigger(
realm,
encoded_device_id,
volatile_changed_trigger_id
) == :ok
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe not needed

Comment on lines +92 to +100
# DataUpdater.handle_data(
# realm,
# encoded_device_id,
# "com.test.LCDMonitor",
# "/weekSchedule/10/start",
# <<>>,
# gen_tracking_id(),
# make_timestamp("2017-10-09T15:10:32+00:00")
# )
Copy link
Contributor

Choose a reason for hiding this comment

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

Needs to be enabled. Also, make sure that the property has been set before unsetting it

@AliouneGaye21 AliouneGaye21 marked this pull request as draft January 15, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants