Skip to content

Disable filter use for retrieving active help requests#7

Open
joelsiks wants to merge 2 commits into
bubify:mainfrom
joelsiks:main
Open

Disable filter use for retrieving active help requests#7
joelsiks wants to merge 2 commits into
bubify:mainfrom
joelsiks:main

Conversation

@joelsiks

Copy link
Copy Markdown

The filter used on pending help requests should be disabled because it does not compute correct values for certain boolean values of users (needsProfilePic for example). This PR disables the filter and return unfiltered pending requests instead, which is very much similar to what was done in commit 00166c0 to prevent wrong values being used.

With this change, the correct value for needsProfilePic (among others) is computed correctly and can be used in the client to determine whether to render a profile picture in certain scenarios for example.

Specifically for needsProfilePic I've also added it to the filter in case it is added back in the future.

@JonasNorlinder

Copy link
Copy Markdown
Contributor

What problem are you trying to solve with this PR? I know that the filtering is buggy, but we really would not like to hand out more data than needed. Is it a generic improvement, or has it caused a known issue?

Preferably we still would use the filtering and then maybe fix up the value manually before converting to JSON? Best would be of course not to use a broken library...

@JonasNorlinder

Copy link
Copy Markdown
Contributor

@EliasC what's your take on this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants