Skip to content

Commit

Permalink
add org.com@
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvaingaudan committed Nov 21, 2024
1 parent 1d87440 commit bfc6fa2
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 33 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ or as admin:
- username: `[email protected]`
- password: `admin`

IMPORTANT: when using IAM, users can create collections only on indices prefixed with their organisation's name followed by `@`. For instance, a user in the organisation `gisaia.com`, who creates an index containing car gps data can name the index `gisaia.com@car_gps_locations`.

# ARLAS AIAS deployment

The AIAS (ARLAS Item and Asset Services) deployment has:
Expand Down
2 changes: 1 addition & 1 deletion conf/aias.env
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ AIRS_STORAGE_DIRECTORY=arlas-data-minio
AIRS_S3_ENDPOINT_URL=http://minio:9000

#AIRS_HOST=
#AIRS_INDEX_COLLECTION_PREFIX=
AIRS_INDEX_COLLECTION_PREFIX=org.com@
#AIRS_MAPPING_URL=
#AIRS_PORT=
#AIRS_PREFIX=
Expand Down
58 changes: 29 additions & 29 deletions sample/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
"contributors": [
{
"type": "map",
"identifier": "courses",
"identifier": "org.com@courses",
"name": "Map courses",
"collection": "courses",
"collection": "org.com@courses",
"geo_query_op": "Intersects",
"geo_query_field": "track.location",
"icon": "check_box_outline_blank",
"layers_sources": [
{
"id": "arlas_id:Tracks:1724158164373",
"name": "Tracks",
"source": "cluster-departure.location-Finest-tile-centroid-courses",
"source": "cluster-departure.location-Finest-tile-centroid-org.com@courses",
"minzoom": 0,
"maxzoom": 23,
"include_fields": [],
Expand All @@ -38,7 +38,7 @@
{
"id": "arlas_id:Trails:1724158240395",
"name": "Trails",
"source": "feature-track.trail-wide-courses",
"source": "feature-track.trail-wide-org.com@courses",
"minzoom": 0,
"maxzoom": 23,
"include_fields": [],
Expand All @@ -56,7 +56,7 @@
{
"type": "chipssearch",
"identifier": "chipssearch",
"collection": "courses",
"collection": "org.com@courses",
"search_field": "internal.fulltext",
"name": "Search...",
"icon": "search",
Expand All @@ -66,7 +66,7 @@
{
"type": "histogram",
"identifier": "timeline",
"collection": "courses",
"collection": "org.com@courses",
"name": "Timeline",
"icon": "watch_later",
"isOneDimension": false,
Expand All @@ -83,7 +83,7 @@
{
"type": "detailedhistogram",
"identifier": "detailedTimeline",
"collection": "courses",
"collection": "org.com@courses",
"name": "Timeline",
"icon": "watch_later",
"isOneDimension": false,
Expand All @@ -100,10 +100,10 @@
"additionalCollections": []
},
{
"identifier": "courses-object.mmsi-10-Count-desc-count",
"identifier": "org.com@courses-object.mmsi-10-Count-desc-count",
"name": "MMSI",
"title": "MMSI",
"collection": "courses",
"collection": "org.com@courses",
"icon": "directions_boat_filled",
"type": "tree",
"jsonpath": "$.count",
Expand All @@ -120,10 +120,10 @@
"allowOperatorChange": true
},
{
"identifier": "courses-object.ship_type-10-",
"identifier": "org.com@courses-object.ship_type-10-",
"name": "Type",
"title": "Type",
"collection": "courses",
"collection": "org.com@courses",
"icon": "directions_boat_filled",
"type": "tree",
"aggregationmodels": [
Expand Down Expand Up @@ -230,7 +230,7 @@
{
"id": "arlas_id:Tracks:1724158164373",
"type": "circle",
"source": "cluster-departure.location-Finest-tile-centroid-courses",
"source": "cluster-departure.location-Finest-tile-centroid-org.com@courses",
"minzoom": 0,
"maxzoom": 23,
"layout": {
Expand Down Expand Up @@ -337,8 +337,8 @@
"circle-blur": 1
},
"metadata": {
"collection": "courses",
"collectionDisplayName": "courses",
"collection": "org.com@courses",
"collectionDisplayName": "org.com@courses",
"hiddenProps": {
"geomType": "circle-heatmap"
}
Expand All @@ -353,7 +353,7 @@
{
"id": "arlas_id:Trails:1724158240395",
"type": "line",
"source": "feature-track.trail-wide-courses",
"source": "feature-track.trail-wide-org.com@courses",
"minzoom": 0,
"maxzoom": 23,
"layout": {
Expand All @@ -367,8 +367,8 @@
"line-width": 2
},
"metadata": {
"collection": "courses",
"collectionDisplayName": "courses",
"collection": "org.com@courses",
"collectionDisplayName": "org.com@courses",
"isScrollableLayer": false
},
"filter": [
Expand All @@ -381,7 +381,7 @@
{
"id": "arlas-select-arlas_id:Trails:1724158240395",
"type": "line",
"source": "feature-track.trail-wide-courses",
"source": "feature-track.trail-wide-org.com@courses",
"minzoom": 0,
"maxzoom": 23,
"layout": {
Expand All @@ -393,8 +393,8 @@
"line-width": 14
},
"metadata": {
"collection": "courses",
"collectionDisplayName": "courses",
"collection": "org.com@courses",
"collectionDisplayName": "org.com@courses",
"isScrollableLayer": false
},
"filter": [
Expand All @@ -407,7 +407,7 @@
{
"id": "arlas-hover-arlas_id:Trails:1724158240395",
"type": "line",
"source": "feature-track.trail-wide-courses",
"source": "feature-track.trail-wide-org.com@courses",
"minzoom": 0,
"maxzoom": 23,
"layout": {
Expand All @@ -419,8 +419,8 @@
"line-width": 14
},
"metadata": {
"collection": "courses",
"collectionDisplayName": "courses",
"collection": "org.com@courses",
"collectionDisplayName": "org.com@courses",
"isScrollableLayer": false
},
"filter": [
Expand Down Expand Up @@ -532,22 +532,22 @@
"unit": "",
"chartWidth": 217
},
"contributorId": "courses-object.mmsi-10-Count-desc-count",
"contributorId": "org.com@courses-object.mmsi-10-Count-desc-count",
"uuid": "b63abbdd-764d-4994-81a8-b9396efe9d73",
"usage": "analytics"
},
{
"componentType": "donut",
"showExportCsv": "",
"input": {
"id": "courses-object.ship_type-10-",
"id": "org.com@courses-object.ship_type-10-",
"customizedCssClass": "arlas-donuts-analytics",
"diameter": 170,
"containerWidth": 223,
"multiselectable": true,
"opacity": 0.4
},
"contributorId": "courses-object.ship_type-10-",
"contributorId": "org.com@courses-object.ship_type-10-",
"uuid": "5d490a4d-a6d7-4431-abd1-9cbdf8f7472e",
"usage": "analytics"
}
Expand Down Expand Up @@ -627,7 +627,7 @@
"url": "${ARLAS_SERVER_URL}/arlas",
"max_age_cache": 120,
"collection": {
"name": "courses"
"name": "org.com@courses"
}
}
},
Expand All @@ -643,8 +643,8 @@
"name": "ARLAS",
"units": [
{
"collection": "courses",
"unit": "courses",
"collection": "org.com@courses",
"unit": "org.com@courses",
"ignored": false
}
]
Expand Down
6 changes: 3 additions & 3 deletions scripts/init_stack_with_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ fi
echo "Fetch sample data"
curl https://raw.githubusercontent.com/gisaia/arlas_cli/master/tests/sample.json -o sample/sample.json
echo "Create mapping for courses"
arlas_cli --config-file /tmp/arlas-cli.yaml indices --config ${CONF} mapping sample/sample.json --nb-lines 200 --field-mapping track.timestamps.center:date-epoch_second --field-mapping track.timestamps.start:date-epoch_second --field-mapping track.timestamps.end:date-epoch_second --no-fulltext cargo_type --push-on courses
arlas_cli --config-file /tmp/arlas-cli.yaml indices --config ${USER_CONF} mapping sample/sample.json --nb-lines 200 --field-mapping track.timestamps.center:date-epoch_second --field-mapping track.timestamps.start:date-epoch_second --field-mapping track.timestamps.end:date-epoch_second --no-fulltext cargo_type --push-on org.com@courses
echo "Index courses"
arlas_cli --config-file /tmp/arlas-cli.yaml indices --config ${CONF} data courses sample/sample.json
arlas_cli --config-file /tmp/arlas-cli.yaml indices --config ${USER_CONF} data courses sample/sample.json
echo "Create courses collection"
arlas_cli --config-file /tmp/arlas-cli.yaml collections --config ${CONF} create courses --index courses --display-name courses --id-path track.id --centroid-path track.location --geometry-path track.trail --date-path track.timestamps.center --no-public --owner org.com --orgs org.com
arlas_cli --config-file /tmp/arlas-cli.yaml collections --config ${USER_CONF} create courses --index org.com@courses --display-name courses --id-path track.id --centroid-path track.location --geometry-path track.trail --date-path track.timestamps.center --no-public --owner org.com --orgs org.com
echo "Create dashboard"

envsubst '$ARLAS_SERVER_URL' < sample/dashboard.json > sample/dashboard.generated.json
Expand Down

0 comments on commit bfc6fa2

Please sign in to comment.