Skip to content

Commit

Permalink
Correct work with relative urls in clics API
Browse files Browse the repository at this point in the history
  • Loading branch information
kunyavskiy committed Sep 8, 2023
1 parent 09979cc commit 3dcffb2
Show file tree
Hide file tree
Showing 36 changed files with 379 additions and 305 deletions.
24 changes: 24 additions & 0 deletions .run/nwerc-2018.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="nwerc-2018" type="GradleRunConfiguration" factoryName="Gradle">
<ExternalSystemSettings>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="-Plive.dev.contest=icpc-nwerc/2018/native" />
<option name="taskDescriptions">
<list />
</option>
<option name="taskNames">
<list>
<option value="backend:run" />
</list>
</option>
<option name="vmOptions" />
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<RunAsTest>false</RunAsTest>
<method v="2" />
</configuration>
</component>
3 changes: 2 additions & 1 deletion config/_examples/_domjudge_test1/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
{
"login":"live",
"password":"$creds.cds_password_pretest_dhaka",
"url":"https://cds.storm.vu/api/contests/pretest_dhaka"
"url":"https://cds.storm.vu/api",
"contestId": "pretest_dhaka"
}
]
}
2 changes: 2 additions & 0 deletions config/_examples/_pc2/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"feeds": [
{
"url": "_examples/_pc2",
"contestId": "",
"eventFeedPath": "",
"feedVersion": "2020_03"
}
],
Expand Down
3 changes: 2 additions & 1 deletion config/icpc-bapc/2022/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
{
"login": "$creds.login",
"password": "$creds.password",
"url": "https://cds.gehack.nl/api/contests/bapc2022"
"url": "https://cds.gehack.nl/api",
"contestId": "bapc2022"
}
]
}
3 changes: 2 additions & 1 deletion config/icpc-nac/2022/practice4/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"type": "clics",
"feeds": [
{
"url": "https://open.kattis.com/clics-api/contests/nac22practice4",
"url": "https://open.kattis.com/clics-api",
"contestId": "nac22practice4",
"feedVersion": "2020_03",
"login":"$creds.kattis_login",
"password":"$creds.kattis_token"
Expand Down
6 changes: 3 additions & 3 deletions config/icpc-nac/2023/contest/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
{
"login": "$creds.cds_login",
"password": "$creds.cds_password",
"url": "https://10.3.3.207/api/contests/NAC-2023-real"
"url": "https://10.3.3.207/api",
"contestId": "NAC-2023-real"
}
],
"useTeamNames": false,
"mediaBaseUrl": "http://10.3.3.207/api"
"useTeamNames": false
}
6 changes: 3 additions & 3 deletions config/icpc-nac/2023/dr/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
{
"login": "$creds.cds_login",
"password": "$creds.cds_password",
"url": "https://10.3.3.207/api/contests/NAC-2023-dress"
"url": "https://10.3.3.207/api",
"contestId": "NAC-2023-dress"
}
],
"useTeamNames": false,
"mediaBaseUrl": "http://10.3.3.207/api"
"useTeamNames": false
}

6 changes: 3 additions & 3 deletions config/icpc-nac/2023/test1/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
{
"login": "$creds.cds_login",
"password": "$creds.cds_password",
"url": "https://10.3.3.207/api/contests/NAC-2023-test1"
"url": "https://10.3.3.207/api",
"contestId": "NAC-2023-test1"
}
],
"useTeamNames": false,
"mediaBaseUrl": "http://10.3.3.207/api"
"useTeamNames": false
}
8 changes: 4 additions & 4 deletions config/icpc-nac/2023/test2/settings.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"type":"clics",
"type": "clics",
"feeds": [
{
"login": "$creds.cds_login",
"password": "$creds.cds_password",
"url": "https://10.3.3.207/api/contests/NAC-2023-test2"
"url": "https://10.3.3.207/api",
"contestId": "NAC-2023-test2"
}
],
"useTeamNames":false,
"mediaBaseUrl":"http://10.3.3.207/api"
"useTeamNames": false
}

3 changes: 2 additions & 1 deletion config/icpc-nwerc/2018/cds/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
{
"login": "$creds.nwerc18_login_cds",
"password": "$creds.nwerc18_password_cds",
"url": "https://cds.gehack.nl/api/contests/nwerc18"
"url": "https://cds.gehack.nl/api",
"contestId": "nwerc18"
}
]
}
3 changes: 2 additions & 1 deletion config/icpc-nwerc/2018/native/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
{
"login": "$creds.nwerc18_login",
"password": "$creds.nwerc18_password",
"url": "https://www.domjudge.org/demoweb/api/contests/nwerc18"
"url": "https://www.domjudge.org/demoweb/api",
"contestId": "nwerc18"
}
]
}
3 changes: 2 additions & 1 deletion config/icpc-nwerc/2019/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
{
"login": "live",
"password": "monger-lawless-hymn-inhaler",
"url": "https://judge.gehack.nl:8443/api/contests/3"
"url": "https://judge.gehack.nl:8443/api",
"contestId": "3"
}
]
}
6 changes: 3 additions & 3 deletions config/icpc-nwerc/2022/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
{
"login": "$creds.login",
"password": "$creds.password",
"url": "https://cds.chipcie.ch.tudelft.nl/api/contests/nwerc2022"
"url": "https://cds.chipcie.ch.tudelft.nl/api",
"contestId": "nwerc2022"
}
],
"mediaBaseUrl":"https://cds.chipcie.ch.tudelft.nl/api"
]
}
3 changes: 2 additions & 1 deletion config/icpc-rmc/2021/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
{
"login": "$creds.kattis_login",
"password": "$creds.kattis_token",
"url": "https://open.kattis.com/clics-api/contests/rmc21",
"url": "https://open.kattis.com/clics-api",
"contestId": "rmc21",
"feedVersion": "2020_03"
}
],
Expand Down
3 changes: 2 additions & 1 deletion config/icpc-swerc/2021/contest/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
{
"login": "live",
"password": "secret",
"url": "https://cds.swerc.eu/api/contests/swerc2021"
"url": "https://cds.swerc.eu/api",
"contestId": "swerc2021"
}
]
}
3 changes: 2 additions & 1 deletion config/icpc-swerc/2021/dress/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
{
"login": "live",
"password": "SECRET",
"url": "https://cds.swerc.eu/api/contests/demo",
"url": "https://cds.swerc.eu/api",
"contestId": "demo",
"feedVersion": "2020_03"
}
]
Expand Down
3 changes: 2 additions & 1 deletion config/icpc-swerc/2022/contest/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
{
"login": "live",
"password": "$creds.swerc22",
"url": "https://cds.swerc.eu/api/contests/swerc2022"
"url": "https://cds.swerc.eu/api",
"contestId": "swerc2022"
}
]
}
3 changes: 2 additions & 1 deletion config/icpc-swerc/2022/practice/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
{
"login": "live",
"password": "$creds.swerc22",
"url": "https://cds.swerc.eu/api/contests/practice"
"url": "https://cds.swerc.eu/api",
"contestId": "practice"
}
]
}
2 changes: 2 additions & 0 deletions config/icpc-wf/2020/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"feeds": [
{
"url": "icpc-wf/2020",
"contestId": "",
"eventFeedPath": "",
"feedVersion": "2020_03"
}
],
Expand Down
2 changes: 2 additions & 0 deletions config/icpc-wf/2021/dress/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"feeds": [
{
"url": "2021/dress",
"contestId": "",
"eventFeedPath": "",
"login": "live",
"password": "landed-wafer-state-diner"
}
Expand Down
10 changes: 5 additions & 5 deletions config/icpc-wf/2021/finals/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
{
"url": "icpc-wf/2021/finals",
"login": "live",
"contestId": "",
"eventFeedPath": "",
"password": "landed-wafer-state-diner"
},
{
"url": "icpc-wf/2021/finals",
"eventFeedName": "commentary-messages",
"contestId": "",
"eventFeedPath": "",
"feedVersion": "2020_03"
}
],
"useTeamNames": false,
"emulation": {
"startTime": "now",
"speed": 5
}
"useTeamNames": false
}
5 changes: 4 additions & 1 deletion config/icpc-wf/2021/mock/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"type": "clics",
"feeds": [
{"url": "https://172.29.1.207:8443/api/contests/mock"}
{
"url": "https://172.29.1.207:8443/api",
"contestId": "mock"
}
],
"useTeamNames": false
}
5 changes: 3 additions & 2 deletions config/icpc-wf/2021/pretest/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
"type": "clics",
"feeds": [
{
"url": "https://cds.storm.vu/api/contests/pretest_dhaka",
"url": "https://cds.storm.vu/api",
"password": "$creds.pretest_dhaka_pass",
"login": "live"
"login": "live",
"contestId": "pretest_dhaka"
}
],
"useTeamNames": false
Expand Down
4 changes: 3 additions & 1 deletion config/icpc-wf/2021/systest1/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"type": "clics",
"feeds": [
{
"url": "2021/systest1"
"url": "2021/systest1",
"contestId": "",
"eventFeedPath": ""
}
]
}
4 changes: 3 additions & 1 deletion config/icpc-wf/2021/systest2/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"type": "clics",
"feeds": [
{
"url": "2021/systest2"
"url": "2021/systest2",
"contestId": "",
"eventFeedPath": ""
}
],
"useTeamNames": false
Expand Down
4 changes: 3 additions & 1 deletion config/icpc-wf/2021/test0/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"type": "clics",
"feeds": [
{
"url": "2021/test0"
"url": "2021/test0",
"contestId": "",
"eventFeedPath": ""
}
],
"useTeamNames": false
Expand Down
4 changes: 3 additions & 1 deletion config/icpc-wf/2021/test0_1/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"type": "clics",
"feeds": [
{
"url": "https://172.29.1.207:8443/api/contests/test0"
"url": "https://172.29.1.207:8443/api/contests/test0",
"contestId": "",
"eventFeedPath": ""
}
],
"useTeamNames": false
Expand Down
9 changes: 8 additions & 1 deletion schemas/settings.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@
"url": {
"type": "string"
},
"contestId": {
"type": "string"
},
"login": {
"type": "string"
},
Expand All @@ -199,6 +202,9 @@
"eventFeedName": {
"type": "string"
},
"eventFeedPath": {
"type": "string"
},
"feedVersion": {
"enum": [
"2020_03",
Expand All @@ -208,7 +214,8 @@
},
"additionalProperties": false,
"required": [
"url"
"url",
"contestId"
]
}
},
Expand Down
Loading

0 comments on commit 3dcffb2

Please sign in to comment.