-
Notifications
You must be signed in to change notification settings - Fork 21
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
Need help in adding a new module without start-time and end-time #2538
Comments
Hi @erelsgl ,
Regarding the time-limit, creating a phase without time constraints might unfortunately be more complicated as a lot of the logic in the code relies on the dates being present. A trivial workaround which doesn't require any code modifications would be to just set the end-date in the very far future, which would effectively be the same as without a time-limit. If you want to have a look into changing the code I recommend looking at adhocracy4, our library which is the base for a+ and our other projects. This is also where the phases are defined, see here. Cheers, |
Thanks for your response, @goapunk. @erelsgl and I have tried the We illustrate the need with an example. Suppose 60% of the site users are interested in health issues, and 40% are interested in education issues. So the 60% will suggest and up-vote only health issues, and the 40% will suggest and up-vote only education issues. When the ideas are sorted by "most popular", all the health issues will appear first, and the education issues will be pushed to the bottom of the list. We think this may be unfair to the minority, who may feel that their opinions are neglected. There are new algorithms that generate fair rankings - rankings that guarantee each group of users a proportional representation for the issues important to them, among the top issues. Here is a paper that presents some such algorithms: https://arxiv.org/abs/2105.08043 . We would like to implement one of these algorithms (particularly, the "Sequential Phragmen" algorithm), and allow to sort the ideas by "fair ranking" rather than just "most popular". The ranking should be dynamic: when an issue is "accepted", the people who did not vote for that issue should get a higher priority in the new ranking, so that their opinion receives the attention it deserves. Practically, we would like to add a new module similar to CollectFeedbackPhase, but with several changes:
We have a few questions:
We would greatly appreciate any information and best practices on this matter. Thank you! |
Hi @oriyalperin,
In general you could maybe also get some inspiration from meinBerlin, it's a project which is based on the same code as a+. It has a module "participatory budgeting which allows users who received a token to vote on 5 proposals/ideas with that token. So it's a bit similar, there is also only upvoting/supporting a proposal and no downvoting. Cheers, |
Hi @goapunk, We've added a new model to store the number of |
Hi @oriyalperin, |
Thank you @goapunk, |
Ah, sorry! I thought the idea list was in react already (it is in other projects) but it appears it isn't in . So instead of using the serializer you probably just need to add it in https://github.com/liqd/adhocracy-plus/blob/main/apps/ideas/templates/a4_candy_ideas/includes/idea_list_item.html. If your foreign_key has a |
Thanks! |
Hi @goapunk,
|
It depends, maybe you have to add the annotation in the |
Closing this issue since its part of #2555. |
Hi all. We want to add a new module, in which users can both add ideas and rank them at the same time, without any time-limit.
It is similar to the "idea challenge" module, except that adding and ranking occurs simultaneously, and there are no start-time and end-time.
We looked at the "idea challenge" module to get an idea what to do, but got stuck. Particularly, we did not see any reference to "start-time" or "end-time" in apps.ideas.phases.
We are new to this project, so any explanations or references to the right locations in the code are welcome.
Thanks!
The text was updated successfully, but these errors were encountered: