Closed slifty closed 6 months ago
@slifty This is a showstopping bug atm. Proposal detail pages, and proposal "side panel" pages on org pages — both of which are crucial — are currently broken.
@reefdog @slifty What are the steps to reproduce this? On local, I'm running the latest main branch for front-end and service and am seeing expected behavior!
with proposal pages
corresponding organization panel
http://localhost:3001/proposals?_page=1&_count=100&organization=1
returns
{
"entries": [
{
"id": 1,
"versions": [
{
"id": 1,
"version": 1,
"createdAt": "2024-04-15T12:13:11.851105-04:00",
"proposalId": 1,
"fieldValues": [
{
"id": 1,
"value": "test1",
"isValid": true,
"position": 0,
"createdAt": "2024-04-15T12:13:11.88021-04:00",
"proposalVersionId": 1,
"applicationFormField": {
// etc
},
"applicationFormFieldId": 1
},
//etc etc
],
"applicationFormId": 1
}
],
"createdAt": "2024-04-15T12:13:11.826575-04:00",
"createdBy": 2,
"externalId": "1",
"opportunityId": 1
}
],
"total": 3
}
while http://localhost:3001/proposals/1
returns
Download
{
"id": 1,
"versions": [
{
"id": 1,
"version": 1,
"createdAt": "2024-04-15T12:13:11.851105-04:00",
"proposalId": 1,
"fieldValues": [
{
"id": 1,
"value": "test1",
"isValid": true,
"position": 0,
"createdAt": "2024-04-15T12:13:11.88021-04:00",
"proposalVersionId": 1,
"applicationFormField": {
// etc
},
],
"createdAt": "2024-04-15T12:13:11.826575-04:00",
"createdBy": 2,
"externalId": "1",
"opportunityId": 1
}
@hminsky2002 I think the trick is you have to try to view a proposal that isn't yours, but as an admin.
@reefdog based on your response in the other thread I thought you were viewing a proposal you did own as an admin. Is that the case or no?
~@slifty 🤦 You're right. Late night Justin was… confused. So this is even more weird then.~
Okay figured it out with @slifty while pairing. In the original thread I thought I was viewing my own proposals, but wasn't. (I had user IDs confused.) So my comment above is correct — the bug was when an admin tried to view someone else's proposal details — but contradicted my original report.
Dan's on it and has a fix.
Hitting
http://localhost:3001/proposals?_page=1&_count=100&organization=10
returns:But then hitting
http://localhost:3001/proposals/114
returns:Originally posted by @reefdog in https://github.com/PhilanthropyDataCommons/service/issues/932#issuecomment-2071351538