Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ concurrency:

env:
TZ: 'America/Los_Angeles'
SQRL_VERSION: '0.10.4'
SQRL_VERSION: '0.10.6'

jobs:
build-and-push:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea
*.iml
*/build
target
h2.db.mv.db
Expand Down Expand Up @@ -228,4 +229,4 @@ py-venv
##performance benchmarking
node_modules/
iceberg-data/
sqrl-iceberg-data/
sqrl-iceberg-data/
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@
{"customerId":9,"cardNo":"6771890227771464","timestamp":"2024-02-25T00:00:00Z","cardType":""}
{"customerId":9,"cardNo":"6771894392571071","timestamp":"2024-02-25T00:00:00Z","cardType":"travel"}
{"customerId":10,"cardNo":"4692437372010768","timestamp":"2024-02-25T00:00:00Z","cardType":""}
{"customerId":11,"cardNo":"0000000000000000","timestamp":"2024-06-05T00:00:00.00Z","cardType":""}
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,3 @@
{"merchantId":86,"name":"Towne, Renner and Murphy","category":"Miscellaneous","updatedTime":"2024-02-25T00:00:00Z"}
{"merchantId":18,"name":"Beier Group","category":"Clothing & Apparel","updatedTime":"2024-02-25T00:00:00Z"}
{"merchantId":76,"name":"Mann-Bahringer","category":"Housing & Utilities","updatedTime":"2024-02-25T00:00:00Z"}
{"merchantId":101,"name":"Advance Watermark","category":"","updatedTime":"2024-06-05T00:00:00.000Z"}
Original file line number Diff line number Diff line change
Expand Up @@ -465,4 +465,3 @@
{"merchantId":48,"rewardsByCard":[{"cardType":"travel","rewardPercentage":5,"startTimestamp":1717459200,"expirationTimestamp":1718496000},{"cardType":"sports","rewardPercentage":5,"startTimestamp":1717459200,"expirationTimestamp":1719100800}],"updatedTime":"2024-02-25T00:00:00Z"}
{"merchantId":34,"rewardsByCard":[{"cardType":"travel","rewardPercentage":10,"startTimestamp":1717459200,"expirationTimestamp":1719360000},{"cardType":"sports","rewardPercentage":10,"startTimestamp":1717459200,"expirationTimestamp":1719187200},{"cardType":"business","rewardPercentage":10,"startTimestamp":1717459200,"expirationTimestamp":1718582400}],"updatedTime":"2024-02-25T00:00:00Z"}
{"merchantId":78,"rewardsByCard":[{"cardType":"travel","rewardPercentage":5,"startTimestamp":1717459200,"expirationTimestamp":1719014400},{"cardType":"sports","rewardPercentage":10,"startTimestamp":1717459200,"expirationTimestamp":1719187200}],"updatedTime":"2024-02-25T00:00:00Z"}
{"merchantId":101,"rewardsByCard":[{"cardType":"travel","rewardPercentage":0,"startTimestamp":0,"expirationTimestamp":0}],"updatedTime":"2024-06-05T00:00:00.000Z"}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ NewCustomerTransaction(customerId BIGINT) := SUBSCRIBE SELECT * FROM CustomerTra
/* ==== TEST CASES ==== */

/*+test */
CustomerTransactionTest := SELECT * FROM CustomerTransaction ORDER BY `time` DESC limit 5;
CustomerTransactionTest := SELECT * FROM CustomerTransaction ORDER BY `time` DESC LIMIT 5;

/*+test */
SpendingByCategoryTest := SELECT * FROM SpendingByCategory ORDER BY customerId DESC, timeWeek DESC, category ASC limit 5;
SpendingByCategoryTest := SELECT * FROM SpendingByCategory ORDER BY customerId DESC, timeWeek DESC, category ASC LIMIT 5;
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,29 @@
"data" : {
"SpendingByCategoryTest" : [ {
"customerId" : 10,
"timeWeek" : "2024-05-30T13:59:59.999Z",
"category" : "Clothing & Apparel",
"spending" : 976.09
"timeWeek" : "2024-06-06T13:59:59.999Z",
"category" : "Childcare",
"spending" : 1374.08
}, {
"customerId" : 10,
"timeWeek" : "2024-05-30T13:59:59.999Z",
"category" : "Communication",
"spending" : 198.98
"timeWeek" : "2024-06-06T13:59:59.999Z",
"category" : "Clothing & Apparel",
"spending" : 436.45
}, {
"customerId" : 10,
"timeWeek" : "2024-05-30T13:59:59.999Z",
"category" : "Entertainment",
"spending" : 263.24
"timeWeek" : "2024-06-06T13:59:59.999Z",
"category" : "Communication",
"spending" : 389.06
}, {
"customerId" : 10,
"timeWeek" : "2024-05-30T13:59:59.999Z",
"category" : "Groceries",
"spending" : 1529.74
"timeWeek" : "2024-06-06T13:59:59.999Z",
"category" : "Education",
"spending" : 974.29
}, {
"customerId" : 10,
"timeWeek" : "2024-05-30T13:59:59.999Z",
"category" : "Health & Wellness",
"spending" : 493.13
"timeWeek" : "2024-06-06T13:59:59.999Z",
"category" : "Entertainment",
"spending" : 101.84
} ]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,29 @@
"data" : {
"SpendingByCategoryTest" : [ {
"customerId" : 10,
"timeWeek" : "2024-05-30T13:59:59.999Z",
"category" : "Clothing & Apparel",
"spending" : 976.09
"timeWeek" : "2024-06-06T13:59:59.999Z",
"category" : "Childcare",
"spending" : 1374.08
}, {
"customerId" : 10,
"timeWeek" : "2024-05-30T13:59:59.999Z",
"category" : "Communication",
"spending" : 198.98
"timeWeek" : "2024-06-06T13:59:59.999Z",
"category" : "Clothing & Apparel",
"spending" : 436.45
}, {
"customerId" : 10,
"timeWeek" : "2024-05-30T13:59:59.999Z",
"category" : "Entertainment",
"spending" : 263.24
"timeWeek" : "2024-06-06T13:59:59.999Z",
"category" : "Communication",
"spending" : 389.06
}, {
"customerId" : 10,
"timeWeek" : "2024-05-30T13:59:59.999Z",
"category" : "Groceries",
"spending" : 1529.74
"timeWeek" : "2024-06-06T13:59:59.999Z",
"category" : "Education",
"spending" : 974.29
}, {
"customerId" : 10,
"timeWeek" : "2024-05-30T13:59:59.999Z",
"category" : "Health & Wellness",
"spending" : 493.13
"timeWeek" : "2024-06-06T13:59:59.999Z",
"category" : "Entertainment",
"spending" : 101.84
} ]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@
{"customerId":9,"cardNo":"6771890227771464","timestamp":"2024-02-25T00:00:00Z","cardType":""}
{"customerId":9,"cardNo":"6771894392571071","timestamp":"2024-02-25T00:00:00Z","cardType":"travel"}
{"customerId":10,"cardNo":"4692437372010768","timestamp":"2024-02-25T00:00:00Z","cardType":""}
{"customerId":11,"cardNo":"0000000000000000","timestamp":"2024-06-05T00:00:00.00Z","cardType":""}
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,3 @@
{"merchantId":86,"name":"Towne, Renner and Murphy","category":"Miscellaneous","updatedTime":"2024-02-25T00:00:00Z"}
{"merchantId":18,"name":"Beier Group","category":"Clothing & Apparel","updatedTime":"2024-02-25T00:00:00Z"}
{"merchantId":76,"name":"Mann-Bahringer","category":"Housing & Utilities","updatedTime":"2024-02-25T00:00:00Z"}
{"merchantId":101,"name":"Advance Watermark","category":"","updatedTime":"2024-06-05T00:00:00.000Z"}
Original file line number Diff line number Diff line change
Expand Up @@ -465,4 +465,3 @@
{"merchantId":48,"rewardsByCard":[{"cardType":"travel","rewardPercentage":5,"startTimestamp":1717459200,"expirationTimestamp":1718496000},{"cardType":"sports","rewardPercentage":5,"startTimestamp":1717459200,"expirationTimestamp":1719100800}],"updatedTime":"2024-02-25T00:00:00Z"}
{"merchantId":34,"rewardsByCard":[{"cardType":"travel","rewardPercentage":10,"startTimestamp":1717459200,"expirationTimestamp":1719360000},{"cardType":"sports","rewardPercentage":10,"startTimestamp":1717459200,"expirationTimestamp":1719187200},{"cardType":"business","rewardPercentage":10,"startTimestamp":1717459200,"expirationTimestamp":1718582400}],"updatedTime":"2024-02-25T00:00:00Z"}
{"merchantId":78,"rewardsByCard":[{"cardType":"travel","rewardPercentage":5,"startTimestamp":1717459200,"expirationTimestamp":1719014400},{"cardType":"sports","rewardPercentage":10,"startTimestamp":1717459200,"expirationTimestamp":1719187200}],"updatedTime":"2024-02-25T00:00:00Z"}
{"merchantId":101,"rewardsByCard":[{"cardType":"travel","rewardPercentage":0,"startTimestamp":0,"expirationTimestamp":0}],"updatedTime":"2024-06-05T00:00:00.000Z"}
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
{
"data" : {
"CustomerRewardsTest" : [ {
"transactionId" : 8571358,
"customerId" : 2,
"cardNo" : "6771897352274545",
"cardType" : "travel",
"time" : "2024-06-05T06:42:05.106Z",
"amount" : 48.73,
"reward" : 7.3095,
"merchantName" : "Hayes Group"
}, {
"transactionId" : 8571374,
"customerId" : 9,
"cardNo" : "6771894392571071",
Expand Down Expand Up @@ -45,6 +36,15 @@
"amount" : 165.07,
"reward" : 33.014,
"merchantName" : "VonRueden, Donnelly and Gleason"
}, {
"transactionId" : 8571377,
"customerId" : 9,
"cardNo" : "6771894392571071",
"cardType" : "travel",
"time" : "2024-06-04T22:17:51.860Z",
"amount" : 221.26,
"reward" : 22.126,
"merchantName" : "Wolff Inc"
} ]
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"data" : {
"PotentialRewardsByDay" : [ {
"customerId" : 9,
"cardType" : "sports",
"timeDay" : "2024-06-05T13:59:59.999Z",
"total_reward" : 135.775
}, {
"customerId" : 9,
"cardType" : "business",
"timeDay" : "2024-06-04T13:59:59.999Z",
Expand All @@ -20,11 +25,6 @@
"cardType" : "business",
"timeDay" : "2024-06-03T13:59:59.999Z",
"total_reward" : 85.588
}, {
"customerId" : 9,
"cardType" : "sports",
"timeDay" : "2024-06-03T13:59:59.999Z",
"total_reward" : 151.689
} ]
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"data" : {
"RewardsByDay" : [ {
"customerId" : 9,
"timeDay" : "2024-06-05T13:59:59.999Z",
"total_reward" : 270.092
}, {
"customerId" : 9,
"timeDay" : "2024-06-04T13:59:59.999Z",
"total_reward" : 166.3725
Expand All @@ -16,10 +20,6 @@
"customerId" : 9,
"timeDay" : "2024-06-01T13:59:59.999Z",
"total_reward" : 594.77
}, {
"customerId" : 9,
"timeDay" : "2024-05-31T13:59:59.999Z",
"total_reward" : 10.0575
} ]
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"data" : {
"RewardsByDay" : [ {
"customerId" : 2,
"timeDay" : "2024-06-05T13:59:59.999Z",
"total_reward" : 86.121
}, {
"customerId" : 2,
"timeDay" : "2024-06-04T13:59:59.999Z",
"total_reward" : 332.3525
Expand All @@ -16,12 +20,18 @@
"customerId" : 2,
"timeDay" : "2024-05-30T13:59:59.999Z",
"total_reward" : 273.6605
}, {
"customerId" : 2,
"timeDay" : "2024-05-27T13:59:59.999Z",
"total_reward" : 111.336
} ],
"PotentialRewardsByDay" : [ {
"customerId" : 2,
"cardType" : "sports",
"timeDay" : "2024-06-05T13:59:59.999Z",
"total_reward" : 184.119
}, {
"customerId" : 2,
"cardType" : "travel",
"timeDay" : "2024-06-05T13:59:59.999Z",
"total_reward" : 205.124
}, {
"customerId" : 2,
"cardType" : "business",
"timeDay" : "2024-06-04T13:59:59.999Z",
Expand All @@ -36,16 +46,6 @@
"cardType" : "travel",
"timeDay" : "2024-06-04T13:59:59.999Z",
"total_reward" : 362.2605
}, {
"customerId" : 2,
"cardType" : "sports",
"timeDay" : "2024-06-03T13:59:59.999Z",
"total_reward" : 294.743
}, {
"customerId" : 2,
"cardType" : "travel",
"timeDay" : "2024-06-03T13:59:59.999Z",
"total_reward" : 422.233
} ],
"TotalPotentialReward" : [ {
"customerId" : 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@
{"customerId":9,"cardNo":"6771890227771464","timestamp":"2024-02-25T00:00:00Z","cardType":""}
{"customerId":9,"cardNo":"6771894392571071","timestamp":"2024-02-25T00:00:00Z","cardType":"travel"}
{"customerId":10,"cardNo":"4692437372010768","timestamp":"2024-02-25T00:00:00Z","cardType":""}
{"customerId":11,"cardNo":"0000000000000000","timestamp":"2024-06-05T00:00:00.00Z","cardType":""}
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,3 @@
{"merchantId":86,"name":"Towne, Renner and Murphy","category":"Miscellaneous","updatedTime":"2024-02-25T00:00:00Z"}
{"merchantId":18,"name":"Beier Group","category":"Clothing & Apparel","updatedTime":"2024-02-25T00:00:00Z"}
{"merchantId":76,"name":"Mann-Bahringer","category":"Housing & Utilities","updatedTime":"2024-02-25T00:00:00Z"}
{"merchantId":101,"name":"Advance Watermark","category":"","updatedTime":"2024-06-05T00:00:00.000Z"}
Original file line number Diff line number Diff line change
Expand Up @@ -465,4 +465,3 @@
{"merchantId":48,"rewardsByCard":[{"cardType":"travel","rewardPercentage":5,"startTimestamp":1717459200,"expirationTimestamp":1718496000},{"cardType":"sports","rewardPercentage":5,"startTimestamp":1717459200,"expirationTimestamp":1719100800}],"updatedTime":"2024-02-25T00:00:00Z"}
{"merchantId":34,"rewardsByCard":[{"cardType":"travel","rewardPercentage":10,"startTimestamp":1717459200,"expirationTimestamp":1719360000},{"cardType":"sports","rewardPercentage":10,"startTimestamp":1717459200,"expirationTimestamp":1719187200},{"cardType":"business","rewardPercentage":10,"startTimestamp":1717459200,"expirationTimestamp":1718582400}],"updatedTime":"2024-02-25T00:00:00Z"}
{"merchantId":78,"rewardsByCard":[{"cardType":"travel","rewardPercentage":5,"startTimestamp":1717459200,"expirationTimestamp":1719014400},{"cardType":"sports","rewardPercentage":10,"startTimestamp":1717459200,"expirationTimestamp":1719187200}],"updatedTime":"2024-02-25T00:00:00Z"}
{"merchantId":101,"rewardsByCard":[{"cardType":"travel","rewardPercentage":0,"startTimestamp":0,"expirationTimestamp":0}],"updatedTime":"2024-06-05T00:00:00.000Z"}
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,29 @@
"data" : {
"SpendingByCategoryTest" : [ {
"customerId" : 10,
"timeWeek" : "2024-05-30T06:59:59.999Z",
"timeWeek" : "2024-06-06T06:59:59.999Z",
"category" : "Housing & Utilities",
"spending" : 4767.13
"spending" : 4104.57
}, {
"customerId" : 10,
"timeWeek" : "2024-05-30T06:59:59.999Z",
"timeWeek" : "2024-06-06T06:59:59.999Z",
"category" : "Miscellaneous",
"spending" : 2431.46
"spending" : 1941.07
}, {
"customerId" : 10,
"timeWeek" : "2024-05-30T06:59:59.999Z",
"category" : "Travel & Vacations",
"spending" : 2088.6
"timeWeek" : "2024-06-06T06:59:59.999Z",
"category" : "Childcare",
"spending" : 1374.08
}, {
"customerId" : 10,
"timeWeek" : "2024-05-30T06:59:59.999Z",
"category" : "Groceries",
"spending" : 1529.74
"timeWeek" : "2024-06-06T06:59:59.999Z",
"category" : "Education",
"spending" : 974.29
}, {
"customerId" : 10,
"timeWeek" : "2024-05-30T06:59:59.999Z",
"category" : "Restaurants & Dining",
"spending" : 1478.88
"timeWeek" : "2024-06-06T06:59:59.999Z",
"category" : "Travel & Vacations",
"spending" : 438.78
} ]
}
}
8 changes: 4 additions & 4 deletions law-enforcement/snapshots/BolosWATest.snapshot
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"data" : {
"BolosWATest" : [ {
"week" : "2024-11-14T15:59:59.999Z",
"state" : "WA",
"num_bolos" : 2
}, {
"week" : "2024-11-07T15:59:59.999Z",
"state" : "WA",
"num_bolos" : 6
Expand Down Expand Up @@ -36,10 +40,6 @@
"week" : "2024-08-29T13:59:59.999Z",
"state" : "WA",
"num_bolos" : 1
}, {
"week" : "2024-08-22T13:59:59.999Z",
"state" : "WA",
"num_bolos" : 2
} ]
}
}
Loading
Loading