You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Handle single-name bulk slice and write cursor without clobbering metadata
api.npmjs.org returns {downloads: N, package: name} for a single-name
request rather than {name: {downloads: N}}, so a bulk slice of length 1
was silently dropped by the hash-of-hashes parser. Route single-name
slices through the per-package path instead.
The cursor write was update_column(:metadata, merged_hash), which
overwrites the whole json value with whatever this process loaded plus
the cursor key. metadata also holds rate_limit, which is tuned live via
console, so a rate_limit change made while a batch was in flight would
be lost when the cursor landed. Registry#merge_metadata_key does the
merge in SQL via jsonb || so only the one key is written.
Also add desc lines to the two rake tasks.
0 commit comments