Skip to content

Commit b27fef3

Browse files
authored
Cleanup : remove unused region geo location (#524)
1 parent 2cf674d commit b27fef3

File tree

3 files changed

+0
-52
lines changed

3 files changed

+0
-52
lines changed

docs/region-configuration.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ See [regions.json](/onyxia-api/src/main/resources/regions.json) for a complete e
3232
| `id` | Unique name of the region | "mycloud" |
3333
| `name` | Descriptive name for the region | "mycloud region" |
3434
| `description` | Description of the region | "This region is in an awesome cloud" |
35-
| `location` | Geographical position of the data center on which the region is supposed to run. | {lat: 48.864716, longitude: 2.349014, name: "Paris" } |
3635
| `includedGroupPattern` | Pattern of user groups considered for the user in the region. Patterns are case-sensitive. | ".*_Onyxia" |
3736
| `excludedGroupPattern` | Pattern of user groups that will not be considered for the user in the region. Patterns are case-sensitive. | ".*_BadGroup" |
3837
| `transformGroupPattern` | Indicate how to transform a group based on `includedGroupPattern` to make a project name used for a namespace or S3 bucket for example. For example with an `includedGroupPattern` of "(.*)_Onxyia" and a `transformGroupPattern` of "$1-k8s", a mygroup_Onyxia will generate a mygroup-k8s namespace. | "$1-k8s" |

onyxia-api/src/main/resources/regions.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@
6868
},
6969
"auth": {
7070
"type": "openidconnect"
71-
},
72-
"location": {
73-
"name": "Paris",
74-
"lat": 48.8453225,
75-
"long": 2.3024401
7671
}
7772
}
7873
]

onyxia-model/src/main/java/fr/insee/onyxia/model/region/Region.java

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ public class Region {
3030
@Schema(description = "")
3131
private String excludedGroupPattern;
3232

33-
@Schema(description = "")
34-
private Location location;
35-
3633
@Schema(description = "")
3734
private Services services = new Services();
3835

@@ -105,14 +102,6 @@ public void setExcludedGroupPattern(String excludedGroupPattern) {
105102
this.excludedGroupPattern = excludedGroupPattern;
106103
}
107104

108-
public Location getLocation() {
109-
return location;
110-
}
111-
112-
public void setLocation(Location location) {
113-
this.location = location;
114-
}
115-
116105
public Services getServices() {
117106
return services;
118107
}
@@ -1077,41 +1066,6 @@ public void setPypiProxyUrl(String pypiProxyUrl) {
10771066
}
10781067
}
10791068

1080-
@Schema(description = "")
1081-
public static class Location {
1082-
1083-
private double lat;
1084-
1085-
@JsonProperty("long")
1086-
private double longitude;
1087-
1088-
private String name;
1089-
1090-
public double getLat() {
1091-
return lat;
1092-
}
1093-
1094-
public void setLat(double lat) {
1095-
this.lat = lat;
1096-
}
1097-
1098-
public double getLongitude() {
1099-
return longitude;
1100-
}
1101-
1102-
public void setLongitude(double longitude) {
1103-
this.longitude = longitude;
1104-
}
1105-
1106-
public String getName() {
1107-
return name;
1108-
}
1109-
1110-
public void setName(String name) {
1111-
this.name = name;
1112-
}
1113-
}
1114-
11151069
public static class Auth {
11161070
private String token;
11171071
private String username, password;

0 commit comments

Comments
 (0)