Skip to content

Instantly share code, notes, and snippets.

View klondaiker's full-sized avatar
🏠
Working from home

Alex Zavgorodnev klondaiker

🏠
Working from home
View GitHub Profile
["DataVersion",
"Date",
"DeletionMark",
"Number",
"Posted",
"Ref_Key",
"Автор",
"Автор_Type",
"АдресДоставки",
"АдресДоставкиЗначенияПолей",
require 'active_support/core_ext/object/blank'
Category = Struct.new(:id, :children)
tree = [
Category.new(
1,
[ Category.new(2, []), Category.new(3, []) ]
),
Известные фичи
feature_export_data
feature_edit_menu
feature_package
feature_coupon
feature_to_basket_in_list
feature_delivery_tracking
feature_blog
feature_lookbook
feature_notify_templates
{
"context" : -{
"employee" : -{
"meta" : -{
"href" : https://online.moysklad.ru/api/remap/1.1/context/employee,
"metadataHref" : https://online.moysklad.ru/api/remap/1.1/entity/employee/metadata,
"type" : employee,
"mediaType" : application/json
}
}
I [2019-03-20 22:17:21 +0300]: cf76219676f053d82d55c0cd0e811b82:8.5: SELECT "categories".* FROM "categories" WHERE "categories"."slug" = $1 ORDER BY "categories"."id" ASC LIMIT $2
I [2019-03-20 22:17:21 +0300]: cf76219676f053d82d55c0cd0e811b82:19.6: SELECT "category_properties".* FROM "category_properties" WHERE "category_properties"."category_id" = $1
I [2019-03-20 22:17:22 +0300]: cf76219676f053d82d55c0cd0e811b82:8.8: SELECT "properties".* FROM "properties" WHERE "properties"."id" IN (529, 787, 632, 802, 800, 796, 794, 795, 798, 790, 11, 792, 809, 808, 788, 810, 812, 25, 793, 791, 801, 803, 804, 805, 811, 797, 806, 807, 789)
I [2019-03-20 22:17:22 +0300]: cf76219676f053d82d55c0cd0e811b82:27.3: SELECT "units".* FROM "units" WHERE "units"."id" IN (11, 1, 8, 5, 60, 6, 25, 61, 16, 4)
I [2019-03-20 22:17:22 +0300]: cf76219676f053d82d55c0cd0e811b82:57.0: SELECT "unit_properties".* FROM "unit_properties" WHERE "unit_properties"."unit_id" IN (1, 60, 25, 61, 11, 6, 16, 5, 8, 4)
I [2019-03-20 22:17:22 +0300]: cf7621
I [2019-03-20 22:17:21 +0300]: cf76219676f053d82d55c0cd0e811b82:8.5: SELECT "categories".* FROM "categories" WHERE "categories"."slug" = $1 ORDER BY "categories"."id" ASC LIMIT $2
I [2019-03-20 22:17:21 +0300]: cf76219676f053d82d55c0cd0e811b82:19.6: SELECT "category_properties".* FROM "category_properties" WHERE "category_properties"."category_id" = $1
I [2019-03-20 22:17:22 +0300]: cf76219676f053d82d55c0cd0e811b82:8.8: SELECT "properties".* FROM "properties" WHERE "properties"."id" IN (529, 787, 632, 802, 800, 796, 794, 795, 798, 790, 11, 792, 809, 808, 788, 810, 812, 25, 793, 791, 801, 803, 804, 805, 811, 797, 806, 807, 789)
I [2019-03-20 22:17:22 +0300]: cf76219676f053d82d55c0cd0e811b82:27.3: SELECT "units".* FROM "units" WHERE "units"."id" IN (11, 1, 8, 5, 60, 6, 25, 61, 16, 4)
I [2019-03-20 22:17:22 +0300]: cf76219676f053d82d55c0cd0e811b82:57.0: SELECT "unit_properties".* FROM "unit_properties" WHERE "unit_properties"."unit_id" IN (1, 60, 25, 61, 11, 6, 16, 5, 8, 4)
I [2019-03-20 22:17:22 +0300]: cf7621
I [2019-03-22 14:18:26 +0300]: 6b84b02aa4d61c224839889e479ceff4:sql.active_record:12.17508316040039:SELECT "categories".*...
I [2019-03-22 14:18:26 +0300]: 6b84b02aa4d61c224839889e479ceff4:sql.active_record:3.0057430267333984:SELECT "properties".*...
I [2019-03-22 14:18:26 +0300]: 6b84b02aa4d61c224839889e479ceff4:sql.active_record:2.5153160095214844:SELECT "category_prope...
I [2019-03-22 14:18:26 +0300]: 6b84b02aa4d61c224839889e479ceff4:sql.active_record:0.0762939453125:SELECT "category_prope...
I [2019-03-22 14:18:26 +0300]: 6b84b02aa4d61c224839889e479ceff4:sql.active_record:12.945890426635742:SELECT "properties".* ...
I [2019-03-22 14:18:26 +0300]: 6b84b02aa4d61c224839889e479ceff4:sql.active_record:5.120277404785156:SELECT "units".* FROM ...
I [2019-03-22 14:18:26 +0300]: 6b84b02aa4d61c224839889e479ceff4:sql.active_record:8.231639862060547:SELECT "unit_propertie...
I [2019-03-22 14:18:26 +0300]: 6b84b02aa4d61c224839889e479ceff4:sql.active_record:6.1931610107421875:SELECT "property_grou...
I [2019-03-22
I [2019-03-26 01:17:11 +0300]: 1fe1f6ba1279d48590c15061c6df277d:sql.active_record:2.372264862060547:SELECT "categories".*...
I [2019-03-26 01:17:11 +0300]: 1fe1f6ba1279d48590c15061c6df277d:sql.active_record:3.9865970611572266:SELECT "category_prope...
I [2019-03-26 01:17:11 +0300]: 1fe1f6ba1279d48590c15061c6df277d:sql.active_record:4.6787261962890625:SELECT "categories"."i...
I [2019-03-26 01:17:11 +0300]: 1fe1f6ba1279d48590c15061c6df277d:sql.active_record:6.1779022216796875:SELECT distinct ON (pr...
I [2019-03-26 01:17:11 +0300]: 1fe1f6ba1279d48590c15061c6df277d:sql.active_record:6.312131881713867:SELECT "categories"."i...
I [2019-03-26 01:17:11 +0300]: 1fe1f6ba1279d48590c15061c6df277d:sql.active_record:5.291223526000977:SELECT "category_prope...
I [2019-03-26 01:17:11 +0300]: 1fe1f6ba1279d48590c15061c6df277d:sql.active_record:2.1026134490966797:SELECT "category_prope...
I [2019-03-26 01:17:11 +0300]: 1fe1f6ba1279d48590c15061c6df277d:sql.active_record:2.4967193603515625:SELECT "categories".*...
I [2019-03-
Faraday::TimeoutError: execution expired
from /home/wwwkiiiosk/kiiiosk.ru/shared/bundle/ruby/2.4.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:805:in `gets'
from /home/wwwkiiiosk/kiiiosk.ru/shared/bundle/ruby/2.4.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:805:in `block in parse_header'
from /home/wwwkiiiosk/.rbenv/versions/2.4.5/lib/ruby/2.4.0/timeout.rb:103:in `timeout'
from /home/wwwkiiiosk/kiiiosk.ru/shared/bundle/ruby/2.4.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:801:in `parse_header'
from /home/wwwkiiiosk/kiiiosk.ru/shared/bundle/ruby/2.4.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:784:in `read_header'
from /home/wwwkiiiosk/kiiiosk.ru/shared/bundle/ruby/2.4.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:561:in `get_header'
from /home/wwwkiiiosk/kiiiosk.ru/shared/bundle/ruby/2.4.0/gems/httpclient-2.8.3/lib/httpclient.rb:1299:in `do_get_header'
from /home/wwwkiiiosk/kiiiosk.ru/shared/bundle/ruby/2.4.0/gems/httpclien
{
"RequestId":"103401-1554452437",
"ClientId":"",
"Path":"/fr/api/v2/Complex",
"Response":{
"Error":0
},
"FiscalDocNumber":3,
"DocNumber":1,