summaryrefslogtreecommitdiff
path: root/pgcommitfest/commitfest/views.py
AgeCommit message (Collapse)Author
2024-09-24Minor pycodestyle updatesMagnus Hagander
2024-09-24Allow searching by email Message-IDJelte Fennema-Nio
2024-09-24Redirect straight to patch if search finds only oneJelte Fennema-Nio
2024-08-05Don't crash on invalid target versionsMagnus Hagander
2024-08-05Add missing newline, breaking pycodestyleMagnus Hagander
2024-08-02Add a stable URL for a patch that redirects to latest cfJelte Fennema-Nio
Links to patches get outdated ever time we move it to new commitfest.
2024-08-02Add /current link that links to either /inprogress or /openJelte Fennema-Nio
2024-08-02Redirect /open fullyJelte Fennema-Nio
Now it forwards everything after the slash so that links like the following work: /open/new/ /open?author=-3
2021-11-25Replace django-selectable with selectizeMagnus Hagander
django-selectable is no longer maintained, and will cause issues in newer versions of django. selectize is what we use in the pgeu-system codebase today, so copy the handling over from there.
2021-10-04Properly allow moving of WoA patches to next CFMagnus Hagander
The previous commit removed the refusal, but missed adding the allwing..
2021-10-04Allow moving of Waiting On Author patches to next CFMagnus Hagander
Discussion: https://postgr.es/m/20211001173131.GA13090@ahch-to
2020-12-08Remove unused importMagnus Hagander
2020-04-01Updates for django 2.2Magnus Hagander
2019-02-06Fix activity feed queriesMagnus Hagander
These clearly had little to do with reality since they would return duplicate entries if a patch was in more than one cf..
2019-02-06Add a field to each patch for target versionMagnus Hagander
This is particularly interesting towards the end of a cycle where it can be used to flag patches that are not intended for the current version but still needs review.
2019-02-06Fix imports and exceptions for Python3Magnus Hagander
2019-02-06Fixes for pep8 compatibilityMagnus Hagander
2019-02-05Convert all spaces to tabsMagnus Hagander
2018-12-23Add "withdrawn" commitfest statusMagnus Hagander
By popular (?) request
2018-11-16Don't use hardcoded pgsql-hackers name in status messageAndreas Scherbaum
Instead use the value from the settings file, which is what's actually used to send.
2018-11-16Include DKIM/SPF instructions on commit/review formsAndreas Scherbaum
2018-10-29Also don't fail on invalid reviewers or authorsMagnus Hagander
Same fix as the previous one for status, but applies to the other two filter-by-dropdown fields.
2018-09-16Don't fail on incorrect statuses in URLMagnus Hagander
The comment said we should ignore the status if int() on it fails, but to do that we have to fail it before we actually add the WHERE clause. Thus, reorder the code to do so.
2018-05-29Bring back topic listingMagnus Hagander
Accidentally broken when query was rewritten
2018-05-29Rewrite main CF dashboard query to use SQLMagnus Hagander
We've long gone past what the django ORM can handle and got into hundreds of queries for large commitfests. And it's not really that hard to rewrite as SQL, even though we have to dynamically build the WHERE clauses. So do that.
2018-05-29Show the number of CFs a patch has been onMagnus Hagander
Per discussions at the developer meeting, show the number of CFs a patch has been on, and make it possible to sort on this value.
2018-04-15Don't crash when passing in invalid values for filtersMagnus Hagander
Previously we'd throw a 500 internal server error, and cause error logging to happen. This became evident when scripts trying to SQL-inject the site started hitting us.. Instead, just ignore any filters that pass non-integer values into integer fields completely.
2018-02-21Implement thread notification receivingMagnus Hagander
This allows the archivs server to ping the CF app to pick up updates to mailthreads quicker.
2018-02-21Replace render_to_response with renderMagnus Hagander
This is rquired as part of the move to a newer Django, and works fine on older versions too
2018-01-20Actually deliver CCed emails to patch authorsMagnus Hagander
Previously we would set the Cc header of the email, but not actually send a copy to the user. That way if the user was not subscribed to the hackers email, they'd end up not receiving the email at all, which somewhat defeats one of the original points of adding the Cc in the first place. Spotted by Peter Geoghegan
2017-03-11Fix header encoding for To and Cc as wellMagnus Hagander
Patch in 2e41b31654b80aeb3e6037fc0b31422c951040c7 only handled From and missed the ohher tields. To make this cleaner, move the escpaping code into the UserWrapper class. Reported by Dagfinn Ilmari Mannsåker, but not using his patch
2017-02-28Properly handle UTF8 in sender names in emailsMagnus Hagander
We need to treat them as structured and escape only the name, not the email part. Reported by Dagfinn Ilmari Mannsåker
2016-04-06CC authors of patches on comments and reviewsMagnus Hagander
This adds the Cc field when using the Review or the Comment function on the website, and will add a list of all listed authors of the patch to this. Should help people highlight it in their inboxes. Suggested by José Luis Tallón
2016-03-02Maintain patch status when moving to next CFMagnus Hagander
So a patch that's in "ready for committer" status remains there. When doing this, also refuse to move any patches that are not either "waiting for review" or "ready for committer". They will have to have their existing status changed first, and then be moved.
2016-02-12Implement notificationsMagnus Hagander
This makes it possible to receive notifications (via email) when a patch has been updated. It's possible to subscribe to notifications on a specific patch. It is also possible to set the user profile up so that one receives notifications for all patches where one is author, reviewer or committer on. Notifications are, of course, only sent when other people make modifications to the entry.
2016-01-06Replace on_success_commit with atomicMagnus Hagander
2016-01-06Fully qualify importsMagnus Hagander
2015-08-31Don't crash on redirect when multiple CFs are inprogress or openMagnus Hagander
This is an incorrect state, but we shouldn't crash anyway. Instead show an error message and redirect to the root page. Reported by Bruce Momjian
2015-08-27Don't raise exceptions for "normal errors"Magnus Hagander
Exceptions will not show the actual error message on the site, only send an email to the admins with it. Thus, anything that can normally happen due to a user error should not use that. Instead of that, use the messages framework so it renders on the next page.
2015-08-14Remove accidental debugging codeMagnus Hagander
2015-08-14Ensure duplicate patches aren't created when an invalid msgid is enteredMagnus Hagander
2015-04-28Rename "returned with feedback"->"move to next cf", add new "returned with ↵Magnus Hagander
feedback" Returned with Feedback will now actually close the patch and *not* move it to the next CF. Since it used to do that, all existing Returned with Feedback patches are changed to Moved to next CF which does the same thing that Returned with Feedback used to do. And of course, Moved to next CF is a new option available for each patch from now on.
2015-03-17Allow changing status of closed patches in last CFMagnus Hagander
Without this, once a patch was closed (rejected/committed etc), it was no longer possible to undo that and reopen it. We now allow this to be done in the very last commitfest a patch is on. We cannot change it on a previous commitfest, as that could end up with the patch being open in two CFs at the same time, but there is no reason it shouldn't be doable in the last one.
2015-02-07Add status summary to top of each commitfest listMagnus Hagander
Quick overview of how many patches are in each status, as exist on the old app.
2015-02-06Show full email address of pgsql-hackersMagnus Hagander
Suggested by Stefan K
2015-02-06Stop using "added self" in history entriesMagnus Hagander
Instead include the actual username. Makes it easier to work with in the history views, and is also probably more proper english.
2015-02-04Fix attaching of threads whe not logged inMagnus Hagander
This needs to redirect to the login page and back, so the user is actually logged in when attaching. This was only partially ipmlemented before, it turns out.
2015-02-04Fix sending of comment/review emailsMagnus Hagander
Without using .as_string() on a message, the default is to generate a string including the envelope header used in a unix mbox. This would of course generate completely broken messages when passed to smtp.
2015-01-22Implement support for secondary email addressesMagnus Hagander
Each user can add a secondary email (well, more than one) and then pick one of those when sending email. Addresses are validated by sending a token to the newly added address, with a link to click to confirm it. Only a fully confirmed address can actually be used.
2015-01-20Add activity log and RSS feedsMagnus Hagander
This somehow got dropped from the old site in a feature branch that was never merged...