Skip to content

Instantly share code, notes, and snippets.

@fespinoza
Created October 13, 2015 07:03
Show Gist options
  • Save fespinoza/dd503a93a2ba6dbf1da8 to your computer and use it in GitHub Desktop.
Save fespinoza/dd503a93a2ba6dbf1da8 to your computer and use it in GitHub Desktop.
Log
2015-10-13T07:02:44.717320+00:00 app[web.2]: Started POST "/api/v1/stores/9991/employees.json" for 185.35.203.10 at 2015-10-13 07:02:44 +0000
2015-10-13T07:02:44.719541+00:00 app[web.2]: Parameters: {"employee"=>{"worker_id"=>124982, "address"=>"c/o Lørenveien 10", "bank_account_number"=>"[FILTERED]", "birthdate"=>nil, "city"=>"SØRUM", "country_code"=>"NO", "display_name"=>"Janic Andersson", "email_address"=>nil, "first_name"=>"Janic", "gender"=>"Male", "last_name"=>"Andersson", "phone_number"=>"41395426", "postal_code"=>"1923", "social_security_number"=>"[FILTERED]", "student"=>false, "upn"=>nil, "parental_responsibility"=>false, "single_parent"=>false, "present_in_store"=>false, "position"=>3, "temporary_employee_type"=>nil, "employment_type"=>1, "salary_type"=>1, "hours_per_week"=>30, "end_date"=>nil, "fixed_pay_premium_percent"=>0, "fixed_pay_premium_currency"=>0, "hourly_pay_premium_percent"=>0, "hourly_pay_premium_currency"=>0, "start_date"=>"2015-10-13", "age"=>nil, "hourly_pay_total"=>159.54, "_modified"=>true, "using_clocking_system"=>true, "paid_overtime"=>true, "position_valid_from"=>"2015-10-13", "employment_percent"=>80, "fixed_pay_total"=>"fixed_pay_level * ((30 / 37.5) * 100.0 / 100.0) * 1000 * (1 + (0 / 100.0)) / 1000 + 0", "hourly_pay_level"=>7, "hourly_pay_entry_date"=>"2015-10-13", "relatives"=>nil, "relatives_attributes"=>{}, "fixed_additional_wages"=>nil, "fixed_additional_wages_attributes"=>{}}, "store_id"=>"9991"}
2015-10-13T07:02:44.719327+00:00 app[web.2]: Processing by API::V1::EmployeesController#create as JSON
2015-10-13T07:02:44.720078+00:00 app[web.2]: Can't verify CSRF token authenticity
2015-10-13T07:02:44.985891+00:00 app[web.2]:
2015-10-13T07:02:44.986221+00:00 app[web.2]: GET /workers/[email protected]
2015-10-13T07:02:46.654574+00:00 app[web.2]: Time taken: 1.668250421 seconds
2015-10-13T07:02:46.654587+00:00 app[web.2]:
2015-10-13T07:02:46.665005+00:00 app[web.2]:
2015-10-13T07:02:46.665013+00:00 app[web.2]: GET /stores/lite/9991
2015-10-13T07:02:46.877257+00:00 app[web.2]: Time taken: 0.212150313 seconds
2015-10-13T07:02:46.877263+00:00 app[web.2]:
2015-10-13T07:02:46.894559+00:00 app[web.2]:
2015-10-13T07:02:46.894569+00:00 app[web.2]: GET /persons/find?ssn=54016317589
2015-10-13T07:02:47.198751+00:00 app[web.2]: Time taken: 0.304126144 seconds
2015-10-13T07:02:47.198754+00:00 app[web.2]:
2015-10-13T07:02:47.200199+00:00 app[web.2]:
2015-10-13T07:02:47.200205+00:00 app[web.2]: GET /stores/9991/workers/124982
2015-10-13T07:02:47.695160+00:00 app[web.2]:
2015-10-13T07:02:47.695170+00:00 app[web.2]: GET /persons/find?ssn=54016317589
2015-10-13T07:02:47.997213+00:00 app[web.2]: Time taken: 0.301988716 seconds
2015-10-13T07:02:47.997218+00:00 app[web.2]:
2015-10-13T07:02:47.998083+00:00 app[web.2]:
2015-10-13T07:02:48.005547+00:00 app[web.2]: GET /stores/9991/workers/124982
2015-10-13T07:02:48.469216+00:00 app[web.2]:
2015-10-13T07:02:48.469223+00:00 app[web.2]: POST /workers
2015-10-13T07:02:48.469226+00:00 app[web.2]: {"Employments":[{"PositionPercentage":80.0,"EmploymentTypeId":1,"HourlyWageValidFrom":"2015-10-13T10:00:00+01:00","HourlyWagePayGradeId":7,"HourlyWageIncreaseFixed":0.0,"HourlyWageIncreasePercentage":0.0,"PositionHourWeek":30.0,"EmploymentContractOtherConditions":"","Ot":true,"PositionValidFrom":"2015-10-13","JobTypeId":3,"SalaryTypeId":1,"EmployedFrom":"2015-10-13T10:00:00+01:00","ClientId":"1000","UseClocking":true,"EmployedTo":null,"MonthlyWage":0.0,"FixedAdditionalWages":[]}],"PersonDetails":{"BankAccountNumber":"90461219097","DisplayName":"Janic Andersson","FirstName":"Janic","Gender":"Male","LastName":"Andersson","ParentalResponsibility":false,"SingleParent":false,"SocialSecurityNumber":"54016317589","Pupil":false,"DateOfBirth":null,"Addresses":[{"AddressLine1":"c/o Lørenveien 10","City":"SØRUM","CountryCode":"NO","PostalCode":"1923"}],"Contacts":[{"ContactTypeId":1},{"ContactInformation":"41395426","ContactTypeId":2}]}}
2015-10-13T07:02:48.653438+00:00 app[web.2]: Time taken: 0.184157122 seconds
2015-10-13T07:02:48.653445+00:00 app[web.2]:
2015-10-13T07:02:48.656283+00:00 app[web.2]: Completed 422 Unprocessable Entity in 3936ms (Views: 0.4ms)
2015-10-13T07:02:48.663316+00:00 heroku[router]: at=info method=POST path="/api/v1/stores/9991/employees.json" host=rema-mine-ansatte-staging.herokuapp.com request_id=57cfaf67-78ce-49ea-a6b8-713e5e13c04c fwd="185.35.203.10" dyno=web.2 connect=0ms service=3958ms status=422 bytes=2205
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment