-
Notifications
You must be signed in to change notification settings - Fork 387
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
Implement polls edit and delete. #1126
Implement polls edit and delete. #1126
Conversation
@gyakkun Im going to review this tonight when home. I do think however this whole polls system needs to be re-written from scratch which I plan to do. It was poorly designed and made. Possible refactor might suffice. Ill keep you updated. Thanks again for the contributions and look forward to your translation (i18n) pull requests. |
bef57c1
to
b46107b
Compare
b46107b
to
089fad5
Compare
Changes to be committed: new file: 2020_02_14_185120_add_foreign_key_to_options_table.php (For search: migration script.)
BTW I reckon it as a must for a private tracker to record user's ip, for auditing and cheat check. The approch we adpot on a running PT in my organization is, adding an independent ip logging table. Still, the ip logging should be configurable if the staff want the site running public. |
IP Logging is 99% inefficient. I don't think its worth logging users IP addresses to catch the few that are to stupid or don't care enough to use a VPN... |
(For search: migration migrate script.)
I feel its best to fully remove the option. You agree? |
Agree. |
What about replace it with "Result is only visible after votes?", it may be more useful. |
I think the poll system can indeed use a lot more. Your idea is good. Others like this on polls table would be neat so you can close a poll at a certain date?:
Also on voters table it might be nice to add |
I would better explain the necessity in a new open issue #1151. I think it's something more important than efficiency. |
So that can the style add to result page and make the voted option highlight according to the Now things have all been done to remove ip_checking, and #1130 can be closed. |
Now the button Edit and Delete in Staff/polls page should work.
Add necessary language items in resources/lang for zh-CN, zh-TW and en.
( Note: As I just begin writing php this week, the code may lack exception handling and so on. Serious review is needed. )