Closed garethrees closed 1 year ago
should the resource type/id be nil? can’t remember
This was a bit of a surprise to me but yes it appears this isn't used at all in production. I can't recall why, but it looks like we added Project::Submission#info_request_id
which stores the association to InfoRequest
to Dataset::ValueSet
via Project::Submission#resource
.
I filled out this extraction:
Submitted, and then got taken back to exactly the same request:
Here's some investigation I did:
Here’s my session data (extracted via https://makandracards.com/makandra/441195-rails-decrypt-a-session-cookie) – a few bits redacted.
The request that I just submitted an extraction for is
936954
So looking at this specific project
That request is still being picked up in the extractable call, even though I just submitted an extraction
which means we’re not falling back to sample where we call find_current in the queue https://github.com/mysociety/alaveteli/blob/develop/app/models/project/queue.rb#L47
I’m user
60565
. Last submission for project:Shows the submission was for the dudley request (936954) https://www.whatdotheyknow.com/admin/requests/936954
Let’s look up that dataset – should the resource type/id be nil? can’t remember
Keyset is mapped to the correct project:
Submitted values look good:
replicated the query in irb
this is where my brain and sql knowledge are faltering. basically, I think there’s a problem with https://github.com/mysociety/alaveteli/commit/2e9c40dd3be177fe562405a51822ea1715a837db