Skip to content

Instantly share code, notes, and snippets.

View andrijaperovic's full-sized avatar

Andrija Perovic andrijaperovic

  • SAP
  • San Ramon, CA
View GitHub Profile
expected: 422
got: 201 (using ==) (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/api_steps.rb:34:in `/^the( nested)? response code should be (\d+)$/'
features/api/berlin/roles/admin/activity_limiting.feature:93:in `Then I should see 422 and JSON with the following:'
expected: 422
got: 201 (using ==) (RSpec::Expectations::ExpectationNotMetError)
./features/step_definitions/api_steps.rb:34:in `/^the( nested)? response code should be (\d+)$/'
features/api/berlin/roles/admin/activity_limiting.feature:119:in `Then I should see 422 and JSON with the following:'
Started GET "/cairo/v1/92f0a3bd780b6a75ca2251fa88656fb5/sites?includes=all" for 54.147.197.182 at 2015-09-09 16:17:12 -0700
Processing by Cairo::SitesController#index as JSON
Parameters: {"includes"=>"all", "api_version_number"=>"v1", "api_key"=>"92f0a3bd780b6a75ca2251fa88656fb5"}
Completed 500 Internal Server Error in 332ms
NoMethodError (undefined method `id' for nil:NilClass):
app/models/leaderboard.rb:1405:in `unit_display_label'
app/models/leaderboard.rb:1419:in `as_json_cairo'
lib/badgeville/cairo/json_format.rb:52:in `resource_payload'
lib/badgeville/cairo/json_format.rb:62:in `block in cairo_sub_collection'
@andrijaperovic
andrijaperovic / gist:ee25589b9caa1f776aaa
Created January 9, 2015 01:00
Error when uploading add-on
Problems encountered while installing client app: The app AppImpl{id=2784, internalName=TODOs, appUUID=f58cec24-43cf-4c2a-904c-4d6672ff07b5, appPath=example-todo_f58cec24-43cf-4c2a-904c-4d6672ff07b5, systemLicenseURL=http://tropic-thunder-179738.usw1.nitrousbox.com:8090/osapp/todo/app.xml, developerApp=false, gadgetHash=70584ed83126ac2f19e829e92105d296, refreshState=TIMED_OUT, extensionUUID=1cd075bb-311d-4615-ab8d-ee303da8e1c8, installType=DEFAULT, appInstallOrigin=EXTENSION} is already associated to different extension com.jivesoftware.community.app.AppInstallException: The app AppImpl{id=2784, internalName=TODOs, appUUID=f58cec24-43cf-4c2a-904c-4d6672ff07b5, appPath=example-todo_f58cec24-43cf-4c2a-904c-4d6672ff07b5, systemLicenseURL=http://tropic-thunder-179738.usw1.nitrousbox.com:8090/osapp/todo/app.xml, developerApp=false, gadgetHash=70584ed83126ac2f19e829e92105d296, refreshState=TIMED_OUT, extensionUUID=1cd075bb-311d-4615-ab8d-ee303da8e1c8, installType=DEFAULT, appInstallOrigin=EXTENSION} is already asso
stem tables...
OK
Filling help tables...
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
commit 405323f981e99423695c285402ce46eba85a4705
Merge: 08d0f30 7b3806f
Author: Artem Yankov <[email protected]>
Date: Mon Sep 22 12:57:42 2014 -0700
Merge branch '6.0' of github.com:badgeville/badgeville into 6.0
commit 08d0f30a0902fbe27699bc5348edfeaa80d77493
Author: Artem Yankov <[email protected]>
Date: Mon Sep 22 12:57:27 2014 -0700
activity = self
EventMachine.run do
operation = proc {
if activity.new_contents.any?
sc = nil
while sc.nil?
sc = SiteContent.find(activity[:scontent_ids].first) rescue nil
sleep(0.1)
end
sc
[
{
: id=>"53b5a537fd7ee2c568a31029ed5bd3cf",
: viewed=>false,
: channel=>"site_53d929882a8662d0bf000011",
: channel_type=>: site,
: subject=>{
: reward=>{
: id=>"53d929b690ecf5b975000014",
: definition=>{