This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Request: | |
{ | |
// Hamlin Liu (employee) | |
"dasherId": 16079532, | |
// Adak, Alaska | |
"lat": 51.8685636, | |
"lng": -176.6392757, | |
"isDasherPreferenceEnabled": true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(base) victor.d@H457W9NM4K dasher-service % ./gradlew detekt --auto-correct | |
> Task :detekt FAILED | |
/Users/victor.d/Projects/dasher-service/services/dasher-service/src/main/kotlin/com/doordash/dasherservice/supplydemand/service/RegionService.kt:1117:70: Missing spacing around "{" [SpacingAroundCurly] | |
/Users/victor.d/Projects/dasher-service/services/dasher-service/src/main/kotlin/com/doordash/dasherservice/supplydemand/service/RegionService.kt:1117:95: Missing spacing before "}" [SpacingAroundCurly] | |
/Users/victor.d/Projects/dasher-service/services/dasher-service/src/test/kotlin/com/doordash/dasherservice/supplydemand/service/RegionServiceTest.kt:3:1: Imports must be ordered in lexicographic order without any empty lines in-between with "java", "javax", "kotlin" and aliases in the end [ImportOrdering] | |
/Users/victor.d/Projects/dasher-service/services/dasher-service/src/test/kotlin/com/doordash/dasherservice/supplydemand/service/RegionServiceTest.kt:2461:8: Missing spacing around "=" [SpacingAroundOperators] | |
/User |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// "dasherId": 33478277, | |
"dasherId": 16565618, | |
// "dasherId": 21323541, | |
"startingPointIds": [ | |
453, // SF | |
96, // Daly | |
5062, // SSF | |
82, // Palo Alto | |
92, // Oakland |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// "dasherId": 33478277, | |
"dasherId": 16565618, | |
// "dasherId": 21323541, | |
"startingPointIds": [ | |
5769, // Mill valley | |
], | |
"vehicleTypeId": 1, | |
"startTime": "2023-04-22T00:00:09.000000403Z", | |
"endTime": "2025-04-22T23:59:23.000000656Z", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SPs | |
[ | |
453, | |
96, | |
5062, | |
82, | |
92, | |
5769, | |
522 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SPs | |
[ | |
5769, | |
522 | |
] | |
RESPONSE | |
[ | |
"{\"endTime_\":{\"seconds_\":1714078800,\"nanos_\":0,\"memoizedIsInitialized\":1,\"unknownFields\":{\"fields\":{}},\"memoizedSize\":-1,\"memoizedHashCode\":0},\"startTime_\":{\"seconds_\":1714069800,\"nanos_\":0,\"memoizedIsInitialized\":1,\"unknownFields\":{\"fields\":{}},\"memoizedSize\":-1,\"memoizedHashCode\":0},\"isRecommendedDash_\":false,\"startingPointId_\":5769,\"vehicleType_\":{\"id_\":1,\"name_\":\"car\",\"iconImgUrl_\":\"https://s3-us-west-2.amazonaws.com/doordash-static/img/car.png\",\"needsLicenseInfo_\":true,\"googleMapsVehicleString_\":\"driving\",\"friendlyName_\":\"Car\",\"memoizedIsInitialized\":-1,\"unknownFields\":{\"fields\":{}},\"memoizedSize\":-1,\"memoizedHashCode\":0},\"memoizedIsInitialized\":1,\"unknownFields\":{\"fields\":{}},\"memoizedSize\":-1,\"memoizedHashCode\":0}", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"objects": [ | |
{ | |
"endTime": "2024-04-26T07:00:00Z", | |
"startTime": "2024-04-25T18:30:00Z", | |
"isRecommendedDash": false, | |
"startingPointId": 82, | |
"vehicleType": { | |
"id": 1, | |
"name": "car", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"@timestamp":"2024-04-25T20:39:48.594Z","@version":"1","message":"Error handler for dx_promotion_platform.v1.DasherChallengeService/CreateChallenges returned successful response","logger_name":"com.doordash.asgard.grpc.interceptors.ExceptionInterceptor","thread_name":"blocking_worker-epoll-9-8","level":"WARN","level_value":30000,"trace_id":"dc6380559c30ae422b534dd3615cd73b","trace_flags":"00","span_id":"671635dede87d46e","tenant_id":"prod","status":{"code":"UNKNOWN","description":null,"cause":{"cause":null,"stackTrace":[{"classLoaderName":"app","moduleName":null,"moduleVersion":null,"methodName":"validateStartTimes","fileName":"DasherChallengeService.kt","lineNumber":162,"nativeMethod":false,"className":"com.doordash.dxpromotionplatform.service.DasherChallengeService"},{"classLoaderName":"app","moduleName":null,"moduleVersion":null,"methodName":"createChallenges","fileName":"DasherChallengeService.kt","lineNumber":188,"nativeMethod":false,"className":"com.doordash.dxpromotionplatform.service.DasherChallengeS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> Task :beforeTest | |
make stop && docker-compose up -d | |
docker-compose down | |
time="2024-06-06T16:34:08-07:00" level=warning msg="/Users/victor.d/Projects/dasher-service/services/dasher-service/docker-compose.yml: `version` is obsolete" | |
Container dasher-service.elasticsearch Stopping | |
Container dasher-service.crdb Stopping | |
Container dasher-service.db Stopping | |
Container dasher-service.redis Stopping | |
Container dasher-service-cassandra-init-1 Stopping | |
Container dasher-service-cassandra-init-1 Stopped |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
df = pd.read_csv("data.csv") | |
df.columns = [c.lower() for c in df.columns] | |
df = df[["period", "result", "starting_point_id", "online_hours", "undersupply_hours_pct", "oversupply_hours_pct", | |
"is_late20min", "nd", "num_delivs"]] | |
df = df.rename(columns={ | |
"result": "group", |
OlderNewer