apidae 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/apidae/import_controller.rb +7 -2
- data/lib/apidae/version.rb +1 -1
- data/test/dummy/log/test.log +294 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53e626dd8145c8030532064c825d7170f96f18aa
|
4
|
+
data.tar.gz: 4b41767bda21a36f83402066638a5e9656e4677a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2609dced9fe025ff9e3f7d410482bd6ce67eb621d05668be49568db75cd207d0ad437bff3e1d7301b5c8add6eb0fe81ae7ec3d713285ddbc872fdf7bb77c6cf4
|
7
|
+
data.tar.gz: ff23e2f694ef53d0ab543945b9267b394f88d5c430a67cb6427f87636a4917dacf299c94d2cc14c08404d1fd5c9b1a72a6aae3eb6111d5f81317bb30b5134ccb
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require_dependency "apidae/application_controller"
|
2
|
+
require 'uri'
|
2
3
|
require 'net/http'
|
3
4
|
|
4
5
|
module Apidae
|
@@ -16,7 +17,7 @@ module Apidae
|
|
16
17
|
def callback
|
17
18
|
project_id = params[:projetId]
|
18
19
|
if project_id == Rails.application.config.apidae_project_id
|
19
|
-
export = Export.new(project_id: project_id, remote_status: params[:
|
20
|
+
export = Export.new(project_id: project_id, remote_status: params[:statut], oneshot: params[:ponctuel] == 'true',
|
20
21
|
reset: params[:reinitialisation] == 'true', file_url: params[:urlRecuperation],
|
21
22
|
confirm_url: params[:urlConfirmation], status: Export::PENDING)
|
22
23
|
if export.save
|
@@ -35,7 +36,11 @@ module Apidae
|
|
35
36
|
open(e.file_url) do |f|
|
36
37
|
begin
|
37
38
|
FileImport.import(f)
|
38
|
-
|
39
|
+
uri = URI(e.confirm_url)
|
40
|
+
req = Net::HTTP::Post.new(uri)
|
41
|
+
Net::HTTP.start(uri.hostname, uri.port) do |http|
|
42
|
+
http.request(req)
|
43
|
+
end
|
39
44
|
e.update(status: Export::COMPLETE)
|
40
45
|
rescue Exception => ex
|
41
46
|
logger.error("Failed to retrieve export file : #{ex.file_url}")
|
data/lib/apidae/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -1813,3 +1813,297 @@ Apidae::FileImportTest: test_new_object_insertion
|
|
1813
1813
|
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "apidae_objects"
|
1814
1814
|
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1[0m
|
1815
1815
|
[1m[35m (0.1ms)[0m ROLLBACK
|
1816
|
+
[1m[36mActiveRecord::SchemaMigration Load (13.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1817
|
+
[1m[35m (6.0ms)[0m BEGIN
|
1818
|
+
------------------------------------------------------------
|
1819
|
+
Apidae::SelectionsControllerTest: test_should_show_selection
|
1820
|
+
------------------------------------------------------------
|
1821
|
+
[1m[36m (12.7ms)[0m [1mROLLBACK[0m
|
1822
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1823
|
+
--------------------------------------------------------------
|
1824
|
+
Apidae::SelectionsControllerTest: test_should_create_selection
|
1825
|
+
--------------------------------------------------------------
|
1826
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1827
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1828
|
+
---------------------------------------------------------------
|
1829
|
+
Apidae::SelectionsControllerTest: test_should_destroy_selection
|
1830
|
+
---------------------------------------------------------------
|
1831
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1832
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1833
|
+
-------------------------------------------------------
|
1834
|
+
Apidae::SelectionsControllerTest: test_should_get_index
|
1835
|
+
-------------------------------------------------------
|
1836
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1837
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1838
|
+
-----------------------------------------------------
|
1839
|
+
Apidae::SelectionsControllerTest: test_should_get_new
|
1840
|
+
-----------------------------------------------------
|
1841
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1842
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1843
|
+
--------------------------------------------------------------
|
1844
|
+
Apidae::SelectionsControllerTest: test_should_update_selection
|
1845
|
+
--------------------------------------------------------------
|
1846
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1847
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1848
|
+
------------------------------------------------------
|
1849
|
+
Apidae::SelectionsControllerTest: test_should_get_edit
|
1850
|
+
------------------------------------------------------
|
1851
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1852
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1853
|
+
------------------------------------------------------
|
1854
|
+
Apidae::DashboardControllerTest: test_should_get_index
|
1855
|
+
------------------------------------------------------
|
1856
|
+
Processing by Apidae::DashboardController#index as HTML
|
1857
|
+
[1m[36m (11.4ms)[0m [1mSELECT COUNT(*) FROM "apidae_objects"[0m
|
1858
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "apidae_selections"
|
1859
|
+
[1m[36mApidae::FileImport Load (7.2ms)[0m [1mSELECT "apidae_file_imports".* FROM "apidae_file_imports" ORDER BY "apidae_file_imports"."id" DESC LIMIT 5[0m
|
1860
|
+
Rendered /Users/jbvilain/workspace/code/apidae-engine-rails/app/views/apidae/dashboard/index.html.erb within layouts/apidae/application (9.3ms)
|
1861
|
+
Completed 500 Internal Server Error in 118ms (ActiveRecord: 32.2ms)
|
1862
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1863
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1864
|
+
----------------------
|
1865
|
+
ApidaeTest: test_truth
|
1866
|
+
----------------------
|
1867
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1868
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1869
|
+
--------------------------------------------------------
|
1870
|
+
Apidae::ObjectsControllerTest: test_should_create_object
|
1871
|
+
--------------------------------------------------------
|
1872
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1873
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1874
|
+
--------------------------------------------------------
|
1875
|
+
Apidae::ObjectsControllerTest: test_should_update_object
|
1876
|
+
--------------------------------------------------------
|
1877
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1878
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1879
|
+
------------------------------------------------------
|
1880
|
+
Apidae::ObjectsControllerTest: test_should_show_object
|
1881
|
+
------------------------------------------------------
|
1882
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1883
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1884
|
+
----------------------------------------------------
|
1885
|
+
Apidae::ObjectsControllerTest: test_should_get_index
|
1886
|
+
----------------------------------------------------
|
1887
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1888
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1889
|
+
---------------------------------------------------
|
1890
|
+
Apidae::ObjectsControllerTest: test_should_get_edit
|
1891
|
+
---------------------------------------------------
|
1892
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1893
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1894
|
+
--------------------------------------------------
|
1895
|
+
Apidae::ObjectsControllerTest: test_should_get_new
|
1896
|
+
--------------------------------------------------
|
1897
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1898
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1899
|
+
---------------------------------------------------------
|
1900
|
+
Apidae::ObjectsControllerTest: test_should_destroy_object
|
1901
|
+
---------------------------------------------------------
|
1902
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1903
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
1904
|
+
--------------------------------------------------------
|
1905
|
+
Apidae::FileImportTest: test_existing_selection_deletion
|
1906
|
+
--------------------------------------------------------
|
1907
|
+
[1m[35mSQL (2.2ms)[0m DELETE FROM "apidae_objects"
|
1908
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "apidae_selections"[0m
|
1909
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1910
|
+
[1m[36mSQL (12.6ms)[0m [1mINSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["apidae_id", 49063], ["label", "Sélection 3"], ["reference", "selection-3"], ["created_at", "2017-11-02 21:50:11.413007"], ["updated_at", "2017-11-02 21:50:11.413007"]]
|
1911
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1912
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "apidae_selections"[0m
|
1913
|
+
[1m[35mApidae::Selection Load (0.3ms)[0m SELECT "apidae_selections".* FROM "apidae_selections"
|
1914
|
+
[1m[36mSQL (6.7ms)[0m [1mDELETE FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = 49063[0m
|
1915
|
+
[1m[35mApidae::Selection Load (0.4ms)[0m SELECT "apidae_selections".* FROM "apidae_selections"
|
1916
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "apidae_selections"[0m
|
1917
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
1918
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1919
|
+
------------------------------------------------------
|
1920
|
+
Apidae::FileImportTest: test_existing_selection_update
|
1921
|
+
------------------------------------------------------
|
1922
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "apidae_objects"
|
1923
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "apidae_selections"[0m
|
1924
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1925
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["apidae_id", 503], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-02 21:50:11.476373"], ["updated_at", "2017-11-02 21:50:11.476373"]]
|
1926
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1927
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1928
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-02 21:50:11.480109"], ["updated_at", "2017-11-02 21:50:11.480109"]]
|
1929
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1930
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1931
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["apidae_id", 49063], ["label", "Sélection 2"], ["reference", "selection-2"], ["created_at", "2017-11-02 21:50:11.483195"], ["updated_at", "2017-11-02 21:50:11.483195"]]
|
1932
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1933
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1934
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 36], ["object_id", 84]]
|
1935
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1936
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 36]]
|
1937
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
1938
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_selections" WHERE 1=0
|
1939
|
+
[1m[36mApidae::Selection Load (0.3ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1[0m [["apidae_id", 49063]]
|
1940
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1941
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1942
|
+
[1m[35mApidae::Object Load (0.4ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 36]]
|
1943
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
1944
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1945
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 36], ["object_id", 85]]
|
1946
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1947
|
+
[1m[36mApidae::Selection Load (0.4ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
1948
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 36]]
|
1949
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "apidae_selections"[0m
|
1950
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1951
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1952
|
+
-------------------------------------------------
|
1953
|
+
Apidae::FileImportTest: test_new_object_insertion
|
1954
|
+
-------------------------------------------------
|
1955
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "apidae_objects"
|
1956
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_selections"[0m
|
1957
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
|
1958
|
+
[1m[36mApidae::Town Load (0.5ms)[0m [1mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 30248]]
|
1959
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1960
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "type_data", "pictures_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13) RETURNING "id"[0m [["apidae_id", 504], ["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["created_at", "2017-11-02 21:50:11.548209"], ["updated_at", "2017-11-02 21:50:11.548209"]]
|
1961
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1962
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "apidae_objects"[0m
|
1963
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
|
1964
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1965
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1966
|
+
---------------------------------------------------
|
1967
|
+
Apidae::FileImportTest: test_existing_object_update
|
1968
|
+
---------------------------------------------------
|
1969
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1970
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "apidae_selections"
|
1971
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1972
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-02 21:50:11.553511"], ["updated_at", "2017-11-02 21:50:11.553511"]]
|
1973
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1974
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
|
1975
|
+
[1m[36mApidae::Town Load (0.2ms)[0m [1mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 30248]]
|
1976
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1977
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "apidae_objects" SET "apidae_type" = $1, "apidae_subtype" = $2, "title" = $3, "short_desc" = $4, "long_desc" = $5, "address" = $6, "latitude" = $7, "longitude" = $8, "type_data" = $9, "pictures_data" = $10, "updated_at" = $11 WHERE "apidae_objects"."id" = $12[0m [["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["updated_at", "2017-11-02 21:50:11.558542"], ["id", 87]]
|
1978
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1979
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "apidae_objects"[0m
|
1980
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
|
1981
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1982
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1983
|
+
------------------------------------------------
|
1984
|
+
Apidae::FileImportTest: test_full_import_process
|
1985
|
+
------------------------------------------------
|
1986
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1987
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "apidae_selections"
|
1988
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1989
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 123], ["title", "Objet à supprimer"], ["created_at", "2017-11-02 21:50:11.564630"], ["updated_at", "2017-11-02 21:50:11.564630"]]
|
1990
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1991
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1992
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["apidae_id", 4826186], ["title", "Objet à mettre à jour"], ["created_at", "2017-11-02 21:50:11.566072"], ["updated_at", "2017-11-02 21:50:11.566072"]]
|
1993
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1994
|
+
[1m[36mApidae::Object Load (0.7ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 4826137]]
|
1995
|
+
[1m[35mApidae::Town Load (0.3ms)[0m SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
|
1996
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1997
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "openings", "pictures_data", "entity_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 4826137], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "3C-Centre de Coordination en Cancerologie"], ["short_desc", "Réunion de médecins, infirmières, personnel médical. Les centres de coordination en Cancérologie sont des cellules qualités opérationnelles mises en place pour assurer la pluridisciplinarité de la prise en charge du patient. Congres privé."], ["long_desc", ""], ["address", "{\"address_fields\":[\"Rue Jean Monard\"]}"], ["latitude", 45.685888], ["longitude", 5.915215], ["openings", "{\"description\":\"Mardi 7 novembre 2017 de 7h à 19h.\",\"opening_periods\":[{\"identifiant\":13924098,\"dateDebut\":\"2017-11-07\",\"dateFin\":\"2017-11-07\",\"horaireOuverture\":\"07:00:00\",\"horaireFermeture\":\"19:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}]}"], ["pictures_data", "{\"pictures\":[]}"], ["entity_data", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nentity_id: 544515\n"], ["created_at", "2017-11-02 21:50:11.580285"], ["updated_at", "2017-11-02 21:50:11.580285"]]
|
1998
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1999
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826186]]
|
2000
|
+
[1m[36mApidae::Town Load (0.2ms)[0m [1mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 30248]]
|
2001
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
2002
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "apidae_objects" SET "apidae_type" = $1, "apidae_subtype" = $2, "title" = $3, "short_desc" = $4, "long_desc" = $5, "contact" = $6, "address" = $7, "latitude" = $8, "longitude" = $9, "openings" = $10, "type_data" = $11, "pictures_data" = $12, "entity_data" = $13, "updated_at" = $14 WHERE "apidae_objects"."id" = $15[0m [["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "A ciel ouvert -Vivre relié à l'essentiel"], ["short_desc", "Objet du forum : L’étude et la transmission des cultures et sagesses du monde pour un développement de la sagesse dans notre société moderne occidentale. Ouvert sur inscription"], ["long_desc", ""], ["contact", "{\"website\":\"https://www.acielouvert.org\"}"], ["address", "{\"address_fields\":[\"Rue Jean Monard\"]}"], ["latitude", 45.685775], ["longitude", 5.915461], ["openings", "{\"description\":\"Du samedi 11 au lundi 13 novembre 2017.\",\"opening_periods\":[{\"identifiant\":13924478,\"dateDebut\":\"2017-11-11\",\"dateFin\":\"2017-11-13\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}]}"], ["type_data", "{\"nomLieu\":\"Centre culturel et des congrès André Grosjean\",\"typesManifestation\":[{\"elementReferenceType\":\"FeteEtManifestationType\",\"id\":1966}],\"categories\":[{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2084}],\"portee\":{\"elementReferenceType\":\"FeteEtManifestationPortee\",\"id\":2350},\"nbVisiteursAttendu\":1000}"], ["pictures_data", "{\"pictures\":[]}"], ["entity_data", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nentity_id: 544515\n"], ["updated_at", "2017-11-02 21:50:11.587161"], ["id", 89]]
|
2003
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2004
|
+
[1m[36mApidae::Object Load (0.1ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 4826282]]
|
2005
|
+
[1m[35mApidae::Town Load (0.1ms)[0m SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
|
2006
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2007
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "openings", "pictures_data", "entity_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 4826282], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "Remise des diplômes POLYTECH Annecy-Chambery"], ["short_desc", "La remise des diplomes de l'ecole d'ingenieurs de l'université Savoie Mont Blanc, Polytech Annecy-Chambery, Manifestation privée"], ["long_desc", ""], ["address", "{\"address_fields\":[\"Rue Jean Monard\"]}"], ["latitude", 45.685775], ["longitude", 5.915461], ["openings", "{\"description\":\"Samedi 18 novembre 2017.\",\"opening_periods\":[{\"identifiant\":13925007,\"dateDebut\":\"2017-11-18\",\"dateFin\":\"2017-11-18\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}]}"], ["pictures_data", "{\"pictures\":[]}"], ["entity_data", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nentity_id: 544515\n"], ["created_at", "2017-11-02 21:50:11.594261"], ["updated_at", "2017-11-02 21:50:11.594261"]]
|
2008
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2009
|
+
[1m[35mApidae::Object Load (0.1ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4828422]]
|
2010
|
+
[1m[36mApidae::Town Load (0.2ms)[0m [1mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 30287]]
|
2011
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2012
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "openings", "rates", "type_data", "pictures_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id"[0m [["apidae_id", 4828422], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "Ex Anima - Théâtre équestre Zingaro"], ["short_desc", "Conception et mise en scène de Bartabas.\r\nLe cheval sera l’acteur principal et central du spectacle, il le sera dans toute sa liberté animale, sa beauté et son lien ancestral à notre culture."], ["long_desc", "On retrouvera bien sûr ses chevaux fétiches mais aussi quelque quarante chevaux magnifiques en quasi-liberté sur la piste. Une nouvelle prouesse pour Bartabas qui s’éclipse avec ses cavaliers pour laisser toute la place au cheval. Chaque spectacle de Zingaro est un événement unique, celui-ci promet déjà de marquer les mémoires !"], ["address", "{\"address_fields\":[]}"], ["latitude", 45.644668], ["longitude", 5.867981], ["openings", "{\"description\":\"Jeudi 19 avril 2018 à 20h30.\\n\\nVendredi 20 avril 2018 à 20h30.\\n\\nSamedi 21 avril 2018 à 20h30.\\n\\nDimanche 22 avril 2018 à 17h.\\n\\nMardi 24 avril 2018 à 20h30.\\n\\nMercredi 25 avril 2018 à 20h30.\\n\\nVendredi 27 avril 2018 à 20h30.\\n\\nSamedi 28 avril 2018 à 20h30.\\n\\nDimanche 29 avril 2018 à 17h.\\n\\nLundi 30 avril 2018 à 20h30.\\n\\nMercredi 2 mai 2018 à 20h30.\\n\\nJeudi 3 mai 2018 à 20h30.\\n\\nSamedi 5 mai 2018 à 20h30.\\n\\nDimanche 6 mai 2018 à 17h.\\n\\nLundi 7 mai 2018 à 20h30.\\n\\nMardi 8 mai 2018 à 19h.\\n\\nJeudi 10 mai 2018 à 19h.\\n\\nVendredi 11 mai 2018 à 20h30.\\n\\nSamedi 12 mai 2018 à 20h30.\\n\\nDimanche 13 mai 2018 à 17h.\",\"opening_periods\":[{\"identifiant\":13951267,\"dateDebut\":\"2018-04-19\",\"dateFin\":\"2018-04-19\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951269,\"dateDebut\":\"2018-04-20\",\"dateFin\":\"2018-04-20\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951275,\"dateDebut\":\"2018-04-21\",\"dateFin\":\"2018-04-21\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951278,\"dateDebut\":\"2018-04-22\",\"dateFin\":\"2018-04-22\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951279,\"dateDebut\":\"2018-04-24\",\"dateFin\":\"2018-04-24\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951282,\"dateDebut\":\"2018-04-25\",\"dateFin\":\"2018-04-25\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951286,\"dateDebut\":\"2018-04-27\",\"dateFin\":\"2018-04-27\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951289,\"dateDebut\":\"2018-04-28\",\"dateFin\":\"2018-04-28\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951291,\"dateDebut\":\"2018-04-29\",\"dateFin\":\"2018-04-29\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951292,\"dateDebut\":\"2018-04-30\",\"dateFin\":\"2018-04-30\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951297,\"dateDebut\":\"2018-05-02\",\"dateFin\":\"2018-05-02\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951298,\"dateDebut\":\"2018-05-03\",\"dateFin\":\"2018-05-03\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951300,\"dateDebut\":\"2018-05-05\",\"dateFin\":\"2018-05-05\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951303,\"dateDebut\":\"2018-05-06\",\"dateFin\":\"2018-05-06\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951307,\"dateDebut\":\"2018-05-07\",\"dateFin\":\"2018-05-07\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951309,\"dateDebut\":\"2018-05-08\",\"dateFin\":\"2018-05-08\",\"horaireOuverture\":\"19:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951311,\"dateDebut\":\"2018-05-10\",\"dateFin\":\"2018-05-10\",\"horaireOuverture\":\"19:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13968615,\"dateDebut\":\"2018-05-11\",\"dateFin\":\"2018-05-11\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13968617,\"dateDebut\":\"2018-05-12\",\"dateFin\":\"2018-05-12\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13968619,\"dateDebut\":\"2018-05-13\",\"dateFin\":\"2018-05-13\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}]}"], ["rates", "Plein tarif : 39 €, Tarif réduit : de 15 à 32 € (abonnés Espace Malraux, Bonlieu, La Traverse)."], ["type_data", "{\"nomLieu\":\"La Croix verte\",\"typesManifestation\":[{\"elementReferenceType\":\"FeteEtManifestationType\",\"id\":1958}],\"categories\":[{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2091},{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2147}],\"themes\":[{\"elementReferenceType\":\"FeteEtManifestationTheme\",\"id\":2064},{\"elementReferenceType\":\"FeteEtManifestationTheme\",\"id\":2257}],\"portee\":{\"elementReferenceType\":\"FeteEtManifestationPortee\",\"id\":2351}}"], ["pictures_data", "{\"pictures\":[]}"], ["created_at", "2017-11-02 21:50:11.600916"], ["updated_at", "2017-11-02 21:50:11.600916"]]
|
2013
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2014
|
+
[1m[36mApidae::Object Load (0.1ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 4833997]]
|
2015
|
+
[1m[35mApidae::Town Load (0.1ms)[0m SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30287]]
|
2016
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2017
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "openings", "rates", "reservation", "type_data", "pictures_data", "entity_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17) RETURNING "id" [["apidae_id", 4833997], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "Les Spécimens - Spectacle familial"], ["short_desc", "Les Spécimens ce sont quatre personnages d'un cirque à la dérive qui essayent de trouver tous les stratagèmes possibles pour renflouer la caisse.\r\nTout au long du spectacle, ils mêlent portés acrobatiques, diabolo, jonglage et dressage à un jeu clownesque."], ["long_desc", "Accompagnés de leurs animaux de compagnie, devenus animaux de cirque, ils se battent pour continuer à jouer leurs numéros.\r\n\r\nUn spectacle qui ravira petits et grands.\r\n\r\nCompagnie du Fil à retordre\r\nAvec Hugo Varret, Héloïse Rodot, Guillaume Lamour, Anouck Wroblewski"], ["address", "{\"address_fields\":[\"Avenue du Lac de Constance\",\"Savoie Technolac\"]}"], ["latitude", 45.645852], ["longitude", 5.865084], ["openings", "{\"description\":\"Samedi 4 novembre à 17h.\",\"opening_periods\":[{\"identifiant\":13969038,\"dateDebut\":\"2017-11-04\",\"dateFin\":\"2017-11-04\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true}]}"], ["rates", "Tarif unique : 5 €."], ["reservation", "[]"], ["type_data", "{\"nomLieu\":\"La Traverse\",\"typesManifestation\":[{\"elementReferenceType\":\"FeteEtManifestationType\",\"id\":1958}],\"categories\":[{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2091},{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2147}],\"portee\":{\"elementReferenceType\":\"FeteEtManifestationPortee\",\"id\":2351}}"], ["pictures_data", "{\"pictures\":[]}"], ["entity_data", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nentity_id: 80314\n"], ["created_at", "2017-11-02 21:50:11.608465"], ["updated_at", "2017-11-02 21:50:11.608465"]]
|
2018
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2019
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 123]]
|
2020
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
2021
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1 [["object_id", 88]]
|
2022
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1[0m [["id", 88]]
|
2023
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2024
|
+
[1m[36mApidae::Selection Load (0.1ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
2025
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_selections" WHERE 1=0
|
2026
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1[0m [["apidae_id", 49063]]
|
2027
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2028
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["apidae_id", 49063], ["label", "Sélection 1"], ["reference", "selection-1"], ["created_at", "2017-11-02 21:50:11.715515"], ["updated_at", "2017-11-02 21:50:11.715515"]]
|
2029
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2030
|
+
[1m[36mApidae::Object Load (0.3ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1[0m [["selection_id", 37]]
|
2031
|
+
[1m[35mApidae::Object Load (0.1ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826137]]
|
2032
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2033
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 37], ["object_id", 90]]
|
2034
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2035
|
+
[1m[35mApidae::Object Load (0.1ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826282]]
|
2036
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2037
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 37], ["object_id", 91]]
|
2038
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2039
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49073]]
|
2040
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2041
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49073], ["label", "Sélection 2"], ["reference", "selection-2"], ["created_at", "2017-11-02 21:50:11.723659"], ["updated_at", "2017-11-02 21:50:11.723659"]]
|
2042
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2043
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 38]]
|
2044
|
+
[1m[36mApidae::Object Load (0.1ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 4826186]]
|
2045
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2046
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 38], ["object_id", 89]]
|
2047
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2048
|
+
[1m[36mApidae::Object Load (0.1ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 4828422]]
|
2049
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2050
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 38], ["object_id", 92]]
|
2051
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2052
|
+
[1m[36mApidae::Object Load (0.1ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 4833997]]
|
2053
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2054
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 38], ["object_id", 93]]
|
2055
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2056
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
2057
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 37]]
|
2058
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1[0m [["selection_id", 38]]
|
2059
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "apidae_selections"
|
2060
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "apidae_objects"[0m
|
2061
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
2062
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
2063
|
+
-----------------------------------------------------
|
2064
|
+
Apidae::FileImportTest: test_existing_object_deletion
|
2065
|
+
-----------------------------------------------------
|
2066
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "apidae_objects"
|
2067
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_selections"[0m
|
2068
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2069
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-02 21:50:11.736299"], ["updated_at", "2017-11-02 21:50:11.736299"]]
|
2070
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
2071
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
2072
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2073
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1[0m [["object_id", 94]]
|
2074
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1 [["id", 94]]
|
2075
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2076
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "apidae_objects"
|
2077
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2078
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2079
|
+
----------------------------------------------------
|
2080
|
+
Apidae::FileImportTest: test_new_selection_insertion
|
2081
|
+
----------------------------------------------------
|
2082
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
2083
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "apidae_selections"
|
2084
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2085
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-02 21:50:11.743548"], ["updated_at", "2017-11-02 21:50:11.743548"]]
|
2086
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2087
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections"
|
2088
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "apidae_selections" WHERE 1=0[0m
|
2089
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
|
2090
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2091
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 1"], ["reference", "selection-1"], ["created_at", "2017-11-02 21:50:11.747897"], ["updated_at", "2017-11-02 21:50:11.747897"]]
|
2092
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2093
|
+
[1m[35mApidae::Object Load (0.3ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 39]]
|
2094
|
+
[1m[36mApidae::Object Load (0.1ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
2095
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2096
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 39], ["object_id", 95]]
|
2097
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2098
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
2099
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 39]]
|
2100
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "apidae_selections"[0m
|
2101
|
+
[1m[35mApidae::Selection Load (0.3ms)[0m SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT 1
|
2102
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
2103
|
+
[1m[35m (0.1ms)[0m BEGIN
|
2104
|
+
------------------------------------------------------
|
2105
|
+
Apidae::ImportControllerTest: test_should_get_callback
|
2106
|
+
------------------------------------------------------
|
2107
|
+
Processing by Apidae::ImportController#callback as HTML
|
2108
|
+
Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)
|
2109
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apidae
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean-Baptiste Vilain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|