-
Notifications
You must be signed in to change notification settings - Fork 33
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
Tan 3576/useideastatuses variant usage #10100
base: master
Are you sure you want to change the base?
Conversation
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 with the idea of making the participation method more explicit but in this case it appears you are making now two requests to get the statuses separately which is more inefficient. Is there a way to get all the statuses at once and map them as options? Or is the ordering the issue here?
Also, I see the smart group component is specifically about idea statuses. I'm sure you considered this but just to double-check that we are sure it also works well with proposals.
There was no issue if with "issue" you meant a bug. Smart group creation was the only instance left where we were not passing a I think the performance cost of two requests vs. one request here is negligible. The requests only occur in the back office when we've selected the status filter on smart group creation and the number of statuses is usually limited.
It's a list of ideation and proposal statuses combined. With the new code, we still list both ideation and proposal statuses, indeed. 🙂 |
@brentguf I see, thank you for the context and the explanation. 🙌 I agree with you the old approach is not super explicit, though. I suggest we add a third option for |
Make
participation_method
query param required foruseIdeaStatuses
.This work started because I thought there was a bug, but there wasn't. It's still an improvement worth merging, IMO. We'll have more explicit code that potentially prevents bugs (in case someone forgets to add the
participation_method
).Changelog