profile
viewpoint
Chris Riccomini criccomini WePay Sunnyvale, CA https://cnr.sh

criccomini/ezdb 60

EZDB provides a nice Java wrapper around LevelDB.

confluentinc/kafka-connect-bigquery 29

A Kafka Connect BigQuery sink connector

acrosa/voldemort-rb 26

A Ruby client for the Voldemort distributed key value store

criccomini/fig 7

Simple configuration for the JVM.

criccomini/collected-scripts 4

Scripts that load data into Collected Notes

criccomini/voldemort-rb 3

A Ruby client for the Voldemort distributed key value store

criccomini/azkaban 2

Job scheduler

criccomini/voldemort 2

An open source clone of Amazon's Dynamo.

criccomini/collectd-librato 1

Collectd Plugin for Librato Metrics

criccomini/gremlins 1

Gremlins is a python framework for fault-testing distributed systems

push eventcriccomini/cnr.sh

Chris Riccomini

commit sha 62e83e0c271142d6cbc81b763c7b0e15eab63f25

Add Software Engineering Radio podcast

view details

push time in 3 days

push eventcriccomini/cnr.sh

Chris Riccomini

commit sha 2c5be1f16f4f00ff5f8be7b7bce5eb6b5ecb41bf

Add Software Engineering Radio podcast

view details

push time in 3 days

push eventcriccomini/cnr.sh

Chris Riccomini

commit sha 81756fbabf979a74303b9b45e82c797ce8141518

Add Software Engineering Radio podcast

view details

push time in 3 days

PR merged criccomini/tmr-site

Add blog link
+6 -0

0 comment

1 changed file

criccomini

pr closed time in 5 days

push eventcriccomini/tmr-site

Chris Riccomini

commit sha 2c664882ef13970ccfea08359a776876a6d5f14f

Add blog link (#1)

view details

push time in 5 days

PR opened criccomini/tmr-site

Add blog link
+6 -0

0 comment

1 changed file

pr created time in 5 days

push eventcriccomini/tmr-site

Chris Riccomini

commit sha ef15dc85bc9d379f6891728936bb162b6f60ba26

Add blog link

view details

push time in 5 days

create barnchcriccomini/tmr-site

branch : add-blog

created branch time in 5 days

push eventcriccomini/cnr.sh

Chris Riccomini

commit sha a7b98198404fba73612fa12640af7df43d23d071

Add presentation: What Your Tech Lead Thinks You Know

view details

push time in 16 days

push eventcriccomini/cnr.sh

Chris Riccomini

commit sha b51390d0d5755b18191df67400dad992b6759a24

Add RSS

view details

push time in a month

push eventcriccomini/cnr.sh

Chris Riccomini

commit sha 16db8319ba2c716e56b7bc7409e393f8adc82f42

Add RSS

view details

push time in a month

push eventcriccomini/cnr.sh

Chris Riccomini

commit sha f52d5bb9f8d3deee5ecb19eb4a561d86657b2294

Add 'Work for Two Companies' post

view details

push time in a month

push eventcriccomini/cnr.sh

Chris Riccomini

commit sha 265917d99d9e0ffed382d5eed48d6e29d8d6d87e

Add 'Work for Two Companies' post

view details

push time in a month

push eventcriccomini/cnr.sh

Chris Riccomini

commit sha 6e90cc87fcb2369573e02177d07f2c9a1e72f396

Add 'Work for Two Companies' post

view details

push time in a month

push eventcriccomini/cnr.sh

Chris Riccomini

commit sha 90a5ad6ce5f2436042f15984bfe46c15a6b2f3e9

Add Missing README books and links

view details

push time in a month

push eventcriccomini/cnr.sh

Chris Riccomini

commit sha 4fe68bf0f4eedebac9d24c1d47ea663bf2b8515b

Add Missing README books and links

view details

push time in a month

push eventcriccomini/tmr-site

Chris Riccomini

commit sha e1f73d1c5eed08be1743d1e324ce216c208351f2

Update index.html

view details

push time in a month

push eventcriccomini/cnr.sh

Chris Riccomini

commit sha 210277904b5be5e6e1ebfcfd6308ddb4e1904ead

YAML cleanup

view details

push time in a month

push eventcriccomini/cnr.sh

Chris Riccomini

commit sha edb35fdf0e729642d96b84e8316faad9396fcb58

Add more talks

view details

push time in a month

issue openedsferik/rails_admin

rails_admin incompatible with acts_as_favoritor

I have a model that acts_as_favoritable from:

https://github.com/jonhue/acts_as_favoritor

I have caching from this Gem enabled. The caching creates fields like this:

Screen Shot 2021-10-14 at 8 48 31 AM

When I try to edit a model with these fields, I get:

Psych::DisallowedClass in RailsAdmin::MainController#edit
Tried to load unspecified class: Symbol

I think rails_admin is trying to parse these fields as YAML, and is treating the :want (the cached favorite with a scope of :want) as a Symbol.

I was able to fix this by adding this block to my model:

  rails_admin do 
    exclude_fields :favoritable_score, :favoritable_total
  end

It seems to me like rails_admin shouldn't be breaking if text DB fields have YAML-like data in them.

created time in 2 months

push eventcriccomini/cnr.sh

Chris Riccomini

commit sha 6357d75b9074cbdabe1f6880b571bc81228f827a

Temp post on Google OAuth

view details

Chris Riccomini

commit sha ce64327e0241c48d358053ef5cbee81bc533fd8e

Add 'OAuth "Sign In With Google" in a WkWebView' post

view details

push time in 2 months

push eventcriccomini/acts_as_favoritor

Chris Riccomini

commit sha 2c0aece3a44dea05d1763c4292447ebcedc11247

Fix bugs in dedup logic

view details

push time in 3 months

PR opened jonhue/acts_as_favoritor

Fix bugs in dedup logic

I noticed two bugs in my previous PR (#229).

  1. The unique constraint was incorrect.
  2. Relying on unique constraint exceptions and destroy was incorrect.

For (1), I forgot to include some scopes and types. Favorites should be unique by favoritor/favoritable + favoritor type/favoritable type + scope. I've corrected this.

For (2), it turns out that first_or_create! does not raise an exception if a row already exists; it does, however, take a do block that is only run when a new record is created. We now only increment that cache in the do block.

Sorry I didn't catch these earlier. My use case didn't detect (1), and my manual verification did not detect (2) yesterday. I've run it through several rounds of verification now and everything seems OK.

+8 -6

0 comment

2 changed files

pr created time in 3 months

push eventcriccomini/acts_as_favoritor

Chris Riccomini

commit sha 3539a72c5908b6a504f4bbd5a35a7f7912f8f6f2

Fix bugs in dedup logic

view details

push time in 3 months

push eventcriccomini/acts_as_favoritor

Chris Riccomini

commit sha c40a7fa5a543a9e28fc84063ab0ec8ca30a29fbb

Formatting and check results properly

view details

push time in 3 months

push eventcriccomini/acts_as_favoritor

Chris Riccomini

commit sha 7695f60644243ba71dbe0c93c6ef816502524bc6

Add debugging

view details

push time in 3 months

push eventcriccomini/acts_as_favoritor

Chris Riccomini

commit sha 1c0b229fef46e49f743a62af15dac02f292f51a7

Check DB results before updating cache; fix unique constraint

view details

push time in 3 months

push eventcriccomini/acts_as_favoritor

Jonas Hübotter

commit sha 63946411cf7abc7c352780a903993ef5c41e844c

Update ci.yml

view details

Chris Riccomini

commit sha 69b03612439d035ef61bf234ad40f2e30e0e2d7d

Prevent cached double counting and dupes (#229) * Prevent cached double counting and dupes * fix specs Co-authored-by: Jonas Hübotter <jonas.huebotter@gmail.com>

view details

Jonas Hübotter

commit sha b6fb0b8e261497dbf5dc936f520e256e4e3311ff

release 5.0.2 (#230)

view details

push time in 3 months

push eventcriccomini/acts_as_favoritor

Chris Riccomini

commit sha c80abb127147bbbfcfbae4f3d5dab46760aa4fe5

Prevent cached double counting and dupes

view details

push time in 3 months

PR opened jonhue/acts_as_favoritor

Prevent cached double counting and dupes

The Gem allows for duplicate favorites for a single favoritor if favorite'ing is done rapidly. This is because there is no unique constraint on the DB and the caching is done before any unique constraints might fail a duplicate (if they were to exist).

This PR adds the constraints to the DB index and re-orders caching to only count AFTER the db inserts/destroys are successful so caching is more likely to reflect reality.

+6 -5

0 comment

2 changed files

pr created time in 3 months

more