Commit a6ef2c09 authored by Tifenn Guillas's avatar Tifenn Guillas
Browse files

Add colibri test dataset

parent f88b5538
Pipeline #1919 passed with stages
in 4 minutes and 37 seconds
This diff is collapsed.
......@@ -96,3 +96,30 @@ curl -d '{"id":7,"name":"json_schema","table_name":"sp_cards","label":"json_sche
curl -d '{"id":8,"name":"search_kw","table_name":"sp_cards","label":"search_kw","form_label":"KWs searchable","description":null,"output_display":90,"criteria_display":90,"search_flag":null,"search_type":null,"type":"json","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":"json","display_detail":90,"selected":true,"order_by":false,"order_display":90,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":4}' -H "Content-Type: application/json" -X PUT http://localhost/dataset/sp_cards/attribute/8
curl -d '{"id":9,"name":"json_schema_uploaded","table_name":"sp_cards","label":"json_schema_uploaded","form_label":"json_schema_uploaded","description":null,"output_display":70,"criteria_display":70,"search_flag":null,"search_type":null,"type":"json","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"display_detail":70,"selected":true,"order_by":false,"order_display":70,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":null}' -H "Content-Type: application/json" -X PUT http://localhost/dataset/sp_cards/attribute/9
# Add COLIBRI dataset family and COLIBRI dataset
curl -d '{"label":"Colibri dataset family","display":30}' -H "Content-Type: application/json" -X POST http://localhost/instance/default/dataset-family
curl -d '{"name":"anis_observation","table_ref":"anis_observation","label":"COLIBRI OBS","description":"colibri observations","display":10,"count":0,"vo":true,"data_path":"/mnt/mount","selectable_row":true,"project_name":"colibri"}' -H "Content-Type: application/json" -X POST http://localhost/dataset-family/3/dataset
# Add COLIBRI anis_observation default criteria family, output families and output categories
curl -d '{"label":"Default criteria family","display":10}' -H "Content-Type: application/json" -X POST http://localhost/dataset/anis_observation/criteria-family
curl -d '{"label":"Default parameters","display":10}' -H "Content-Type: application/json" -X POST http://localhost/dataset/anis_observation/output-family
curl -d '{"label":"Astrometry","display":10}' -H "Content-Type: application/json" -X POST http://localhost/output-family/5/output-category
curl -d '{"label":"Observation","display":20}' -H "Content-Type: application/json" -X POST http://localhost/output-family/5/output-category
curl -d '{"label":"Additionnal parameters","display":20}' -H "Content-Type: application/json" -X POST http://localhost/dataset/anis_observation/output-family
curl -d '{"label":"Download","display":10}' -H "Content-Type: application/json" -X POST http://localhost/output-family/6/output-category
# Edit COLIBRI anis_observation attributes
curl -d '{"id":1,"name":"id","table_name":"anis_observation","label":"id_obs","form_label":"ID_OBS","description":"Observation Ident","output_display":10,"criteria_display":10,"search_flag":"ID","search_type":null,"type":"integer","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"display_detail":10,"selected":true,"order_by":false,"order_display":10,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":5}' -H "Content-Type: application/json" -X PUT http://localhost/dataset/anis_observation/attribute/1
curl -d '{"id":2,"name":"ra","table_name":"anis_observation","label":"ra","form_label":"Alpha J2000","description":"Alpha J2000","output_display":20,"criteria_display":20,"search_flag":"RA","search_type":null,"type":"float","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"display_detail":20,"selected":true,"order_by":false,"order_display":20,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":5}' -H "Content-Type: application/json" -X PUT http://localhost/dataset/anis_observation/attribute/2
curl -d '{"id":3,"name":"dec","table_name":"anis_observation","label":"dec","form_label":"Delta J2000","description":"Delta J2000","output_display":30,"criteria_display":30,"search_flag":"DEC","search_type":null,"type":"float","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"display_detail":30,"selected":true,"order_by":false,"order_display":30,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":5}' -H "Content-Type: application/json" -X PUT http://localhost/dataset/anis_observation/attribute/3
curl -d '{"id":4,"name":"date_time","table_name":"anis_observation","label":"date_time","form_label":"Date Time","description":"Date Time","output_display":40,"criteria_display":40,"search_flag":null,"search_type":"between-date","type":"datetime","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"display_detail":40,"selected":true,"order_by":false,"order_display":40,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":7,"id_output_category":6}' -H "Content-Type: application/json" -X PUT http://localhost/dataset/anis_observation/attribute/4
curl -d '{"id":5,"name":"exposure_time","table_name":"anis_observation","label":"exposure_time","form_label":"Exposure Time","description":"Exposure Time","output_display":50,"criteria_display":50,"search_flag":null,"search_type":"between","type":"integer","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"display_detail":50,"selected":true,"order_by":false,"order_display":50,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":7,"id_output_category":6}' -H "Content-Type: application/json" -X PUT http://localhost/dataset/anis_observation/attribute/5
curl -d '{"id":6,"name":"filter","table_name":"anis_observation","label":"filter","form_label":"Filter","description":"Filter","output_display":60,"criteria_display":60,"search_flag":null,"search_type":"select","type":"string","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"display_detail":60,"selected":true,"order_by":false,"order_display":60,"detail":false,"renderer_detail":null,"options":[{"label":"Filter 1","value":"filter1","display":10},{"label":"Filter 2","value":"filter2","display":20}],"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":7,"id_output_category":6}' -H "Content-Type: application/json" -X PUT http://localhost/dataset/anis_observation/attribute/6
curl -d '{"id":7,"name":"object_name","table_name":"anis_observation","label":"object_name","form_label":"Object name","description":"Object name","output_display":70,"criteria_display":70,"search_flag":"NAME","search_type":"field","type":"string","operator":"eq","min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":"link/detail?dataset=anis_observation&other=","renderer":"detail-btn","display_detail":70,"selected":true,"order_by":false,"order_display":70,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":7,"id_output_category":6}' -H "Content-Type: application/json" -X PUT http://localhost/dataset/anis_observation/attribute/7
curl -d '{"id":8,"name":"fits_file","table_name":"anis_observation","label":"obs_fits","form_label":"Observation (fits)","description":"Observation (fits)","output_display":80,"criteria_display":80,"search_flag":null,"search_type":null,"type":"string","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":"download","display_detail":80,"selected":true,"order_by":false,"order_display":80,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":7}' -H "Content-Type: application/json" -X PUT http://localhost/dataset/anis_observation/attribute/8
curl -d '{"id":9,"name":"png_file","table_name":"anis_observation","label":"png_file","form_label":"Observation (png)","description":"Observation (png)","output_display":90,"criteria_display":90,"search_flag":null,"search_type":null,"type":"string","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":"thumbnail","display_detail":90,"selected":true,"order_by":false,"order_display":90,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":6}' -H "Content-Type: application/json" -X PUT http://localhost/dataset/anis_observation/attribute/9
curl -d '{"id":10,"name":"observer","table_name":"anis_observation","label":"observer","form_label":"Observer","description":"Observer","output_display":100,"criteria_display":100,"search_flag":null,"search_type":null,"type":"string","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":null,"display_detail":100,"selected":true,"order_by":false,"order_display":100,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":null}' -H "Content-Type: application/json" -X PUT http://localhost/dataset/anis_observation/attribute/10
curl -d '{"id":11,"name":"pack_obs","table_name":"anis_observation","label":"pack_obs","form_label":"Observation archive (zip)","description":"Observation archive (zip)","output_display":110,"criteria_display":110,"search_flag":null,"search_type":null,"type":"string","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":"download","display_detail":110,"selected":true,"order_by":false,"order_display":110,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":7}' -H "Content-Type: application/json" -X PUT http://localhost/dataset/anis_observation/attribute/11
curl -d '{"id":12,"name":"readme_obs","table_name":"anis_observation","label":"readme_obs","form_label":"Observation Readme (zip)","description":"Observation Readme (zip)","output_display":120,"criteria_display":120,"search_flag":null,"search_type":null,"type":"string","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":"download","display_detail":120,"selected":true,"order_by":false,"order_display":120,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":7}' -H "Content-Type: application/json" -X PUT http://localhost/dataset/anis_observation/attribute/12
curl -d '{"id":13,"name":"pack_calib","table_name":"anis_observation","label":"pack_calib","form_label":"Calibration archive (zip)","description":"Calibration archive (zip)","output_display":130,"criteria_display":130,"search_flag":null,"search_type":null,"type":"string","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":"download","display_detail":130,"selected":true,"order_by":false,"order_display":130,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":7}' -H "Content-Type: application/json" -X PUT http://localhost/dataset/anis_observation/attribute/13
curl -d '{"id":14,"name":"readme_calib","table_name":"anis_observation","label":"readme_calib","form_label":"Calibration Readme (zip)","description":"Calibration Readme (zip)","output_display":140,"criteria_display":140,"search_flag":null,"search_type":null,"type":"string","operator":null,"min":null,"max":null,"placeholder_min":null,"placeholder_max":null,"uri_action":null,"renderer":"download","display_detail":140,"selected":true,"order_by":false,"order_display":140,"detail":false,"renderer_detail":null,"options":null,"vo_utype":null,"vo_ucd":null,"vo_unit":null,"vo_description":null,"vo_datatype":null,"vo_size":null,"id_criteria_family":null,"id_output_category":7}' -H "Content-Type: application/json" -X PUT http://localhost/dataset/anis_observation/attribute/14
......@@ -11,3 +11,4 @@ EOSQL
psql -v ON_ERROR_STOP=1 -f /sql/obs_cat.sql --username "anis" --dbname "anis_test"
psql -v ON_ERROR_STOP=1 -f /sql/observations_info.sql --username "anis" --dbname "anis_test"
psql -v ON_ERROR_STOP=1 -f /sql/svom_sdb_dc1.sql --username "anis" --dbname "anis_test"
psql -v ON_ERROR_STOP=1 -f /sql/colibridb.sql --username "anis" --dbname "anis_test"
......@@ -34,6 +34,7 @@ services:
- ./conf-dev/obs_cat.sql:/sql/obs_cat.sql
- ./conf-dev/observations_info.sql:/sql/observations_info.sql
- ./conf-dev/svom_sdb_dc1.sql:/sql/svom_sdb_dc1.sql
- ./conf-dev/colibridb.sql:/sql/colibridb.sql
- ./conf-dev/init-postgres.sh:/docker-entrypoint-initdb.d/init-postgres.sh
adminer:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment