Some authors' names and parties are not being displayed #11
Labels
No labels
Agent/Chrome-Android
Agent/Chrome-Desktop
Agent/Chrome-iOS
Agent/Firefox-Android
Agent/Firefox-Desktop
Agent/Firefox-iOS
Agent/Safari-Desktop
Agent/Safari-iOS
Code/Backend
Code/DevOps
Code/Frontend
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
Reviewed/Confirmed
Reviewed/Duplicate
Reviewed/Invalid
Reviewed/Won't Fix
Status/Abandoned
Status/Blocked
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aniram/cidadon#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The frontend assumes that a project's main author is the one indexed at 0 on
CIDAuthorswhich is itself already a falsy assumption. The backend has for some reason mixed up CIDAuthor's URLs, as we can see on the terminal's screenshot. The URL of the authors of each project actually contains the authors of the previous project.For some reason this does not seem to be affecting the author's name displayed on projects whose author's info are actually being displayed, on those projects the author's info seem correct.
On the first screenshot the second project has no author nor party.
The problem was on the frontend exactly as I described above. My suspicion that the concurrent code messed up the URLs was proven wrong. This code is getting too complicated to reason about. I gotta figure out how to write better entities considering that the API does not give me all the infos I want. My
Projectentity has properties likeURIAuthors,URLDocumentPDFandCurrentStatebut they only exist on the API when fetching for a project directly.The problem is that if you fetch projects by keywords you receive a list that has a minimal amount of info on each project and does not contain those properties.
Another pain point is the project's main author, sometimes it's a committee sometimes a collective of members. I want to know the main author of each project when iterating over projects but this property is not found on the items of the list of projects given be the API when you hit
.../proposicoes?keywords=..., instead they give you a link to.../proposicoes/.../autores. So I addedCIDMainAuthortoProjectin order to have direct access to a project's main author on theProjectentity.Does it work? Yes.
Am I happy with it? No.
Some author's name and party are not being displayedto Some authors' names and parties are not being displayed