-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix listing other users’ annotations #7563
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -553,15 +553,6 @@ export function deletePrivateLink(linkId: string): Promise<{ | |
} | ||
|
||
// ### Annotations | ||
export function getAnnotationInfos( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Am I assuming correctly, that this route does not exist anymore? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The backend still provides this route for old clients, but the frontend doesn’t use it anymore (was replaced by |
||
isFinished: boolean, | ||
pageNumber: number = 0, | ||
): Promise<Array<APIAnnotationInfo>> { | ||
return Request.receiveJSON( | ||
`/api/user/annotations?isFinished=${isFinished.toString()}&pageNumber=${pageNumber}`, | ||
); | ||
} | ||
|
||
export function getCompactAnnotationsForUser( | ||
userId: string, | ||
isFinished: boolean, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find the naming here to be too closely linked with the intent and not with what actually happens. Also surprising behavior when the function is called findAllListable and the parameter gives no hint on that the result may change. Maybe more like filterOwnedAndExplicitlyShared
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, wrote #7565 to track that