Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
ae2696b
Create migration test
macpie Oct 3, 2025
98f8b4f
Update tracker
macpie Oct 6, 2025
029dd39
Fix gateway DB calls
macpie Oct 6, 2025
6240c9d
Fix Clippy
macpie Oct 6, 2025
eb1498f
PR comments
macpie Oct 7, 2025
e0531af
Add some print to debug
macpie Oct 7, 2025
497e0e4
Fix timestamp check
macpie Oct 7, 2025
ca0c79f
Added new API for retrieving historical gateway info
connormck333 Oct 17, 2025
4dfc96c
Add v1 to historical gateway info protobuf
connormck333 Oct 17, 2025
e7def30
Refactored gateway service reducing code dupe
connormck333 Oct 17, 2025
bb64843
Changed proto branch
connormck333 Oct 22, 2025
bda0b40
Fixed formatting errors
connormck333 Oct 22, 2025
968b6be
Gateway historical info test assertions updated
connormck333 Oct 22, 2025
507a18d
Fixed formatting errors
connormck333 Oct 22, 2025
8c8f374
Fixed formatting errors
connormck333 Oct 22, 2025
9cdf3af
Increased sleep in historical info test
connormck333 Oct 22, 2025
7f6003d
Tests cleanup, removed println, changed assert! to assert_eq
connormck333 Oct 23, 2025
01376f0
Removed sleep from test
connormck333 Oct 23, 2025
5c7eb38
Updated gateway tracker test name & reduced test size
connormck333 Oct 23, 2025
7556b56
Removed println in tests
connormck333 Oct 23, 2025
f7bec6a
Add info_historical command to mobile_config_cli
connormck333 Oct 24, 2025
53078d0
Changed historical info to info_at_timestamp
connormck333 Oct 24, 2025
e83d7b8
Update mobile verifiers to use new info_at_timestamp API
connormck333 Oct 28, 2025
924d2d4
Revert "Update mobile verifiers to use new info_at_timestamp API"
connormck333 Oct 28, 2025
37e586f
Merge branch 'main' into macpie/historical
connormck333 Oct 29, 2025
9fcf30b
Merge branch 'main' into macpie/historical
connormck333 Nov 3, 2025
215cf93
Updated metric name
connormck333 Nov 14, 2025
bd4c153
Reverted proto branch to master
connormck333 Nov 14, 2025
1baeb2f
Resolved conflicts
connormck333 Nov 14, 2025
8263ea8
Update Cargo.lock
connormck333 Nov 14, 2025
e0fa60a
Revert "Update Cargo.lock"
connormck333 Nov 14, 2025
06925c5
Update helium-proto Cargo.lock
connormck333 Nov 14, 2025
c883981
Attempt to cleanup runner
bbalser Nov 14, 2025
aabfe56
another attempt
bbalser Nov 14, 2025
bc5041b
attempt free disk space action
bbalser Nov 14, 2025
fc9eb72
Remove cleanup jobs
bbalser Nov 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 33 additions & 32 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions file_store_oracles/src/traits/msg_verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ impl_msg_verify!(mobile_config::GatewayInfoStreamResV3, signature);
impl_msg_verify!(mobile_config::BoostedHexInfoStreamReqV1, signature);
impl_msg_verify!(mobile_config::BoostedHexModifiedInfoStreamReqV1, signature);
impl_msg_verify!(mobile_config::BoostedHexInfoStreamResV1, signature);
impl_msg_verify!(mobile_config::GatewayInfoAtTimestampReqV1, signature);
impl_msg_verify!(sub_dao::SubDaoEpochRewardInfoReqV1, signature);
impl_msg_verify!(sub_dao::SubDaoEpochRewardInfoResV1, signature);
impl_msg_verify!(poc_mobile::SubscriberVerifiedMappingEventReqV1, signature);
Expand Down
1 change: 1 addition & 0 deletions mobile_config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@ tls-init = { path = "../tls_init" }
[dev-dependencies]
rand = { workspace = true }
tokio-stream = { workspace = true, features = ["net"] }
tempfile = "3"
28 changes: 28 additions & 0 deletions mobile_config/migrations/20251003000000_gateways_historical.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-- 1. Drop the primary key constraint on address
ALTER TABLE
gateways DROP CONSTRAINT IF EXISTS gateways_pkey;

-- 2. Rename column updated_at -> inserted_at
ALTER TABLE
gateways RENAME COLUMN updated_at TO inserted_at;

-- 3. Backfill inserted_at with created_at values
UPDATE
gateways
SET
inserted_at = created_at;

-- 4. Ensure inserted_at is NOT NULL and has a default value of now()
ALTER TABLE
gateways
ALTER COLUMN inserted_at SET DEFAULT now(),
ALTER COLUMN inserted_at SET NOT NULL;

-- 5. Create an index on (address, inserted_at DESC)
CREATE INDEX IF NOT EXISTS gateways_address_inserted_idx ON gateways (address, inserted_at DESC);

-- 6. Create an PK on (address, inserted_at DESC)
ALTER TABLE
gateways
ADD
CONSTRAINT gateways_pkey PRIMARY KEY (address, inserted_at);
Loading