Skip to content

Conversation

@kurotych
Copy link
Member

@kurotych kurotych commented Jun 24, 2025

Previous (duplicate) PR: #907

Add migration to back fill data.
usage
./target/debug/mobile-config -c mobile-config.toml migrate-mobile-tracker file.csv

@kurotych kurotych changed the base branch from main to mobile-config-tracker-asserted_at June 24, 2025 14:34
@kurotych kurotych changed the base branch from mobile-config-tracker-asserted_at to main June 24, 2025 14:35

if self.asserted_location != radio.location {
self.asserted_location = radio.location;
self.asserted_location_changed_at = Some(radio.refreshed_at);
Copy link
Member Author

Choose a reason for hiding this comment

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

WDYT @bbalser Should we update last_changed_at here?
self.last_changed_at = radio.refreshed_at;

Copy link
Contributor

Choose a reason for hiding this comment

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

It makes sense to me since we're changing something about the radio. Unless last_changed_at is used for something other than change tracking.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, but on the other hand, we're tracking location and the time it changed separately, so that's why I'm not sure what the best option is here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

yes, I think we do

Copy link
Member Author

Choose a reason for hiding this comment

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

Added

@kurotych kurotych marked this pull request as ready for review June 24, 2025 14:56
@kurotych kurotych merged commit 3a2b89f into main Jul 2, 2025
55 checks passed
@kurotych kurotych deleted the mob-conf-location-tracking branch July 2, 2025 10:50
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.

4 participants