summaryrefslogtreecommitdiff
path: root/postgresqleu
AgeCommit message (Collapse)Author
2024-11-05Use select for update before creating invoice for conference registrationMagnus Hagander
Do this only for POSTs, but without that if the user clicks the confirm button twice in a row Really Fast, there's a race condition whereby two invoices can be created for the same registration, which is not supported elsewhere in the system. This probably likely exists in other places as well, but it becomes a lot more apparent when it comes to creating invoices as the generation of the PDFs take some time.
2024-11-05Don't crash when both removing and uploading PDF at the same timeMagnus Hagander
Noted by Karen Jex
2024-10-22Attept to fix timezone issue in twitter interfaceMagnus Hagander
2024-10-17Support specifying an autocancel time for reg transfer invoicesMagnus Hagander
And default it to the autocancel for the conference, but allow the admin creating the invoice to override if needed.
2024-10-11Add extra debugging on exceptions rendering badgesMagnus Hagander
2024-10-10Add "Olympic scoring" method.Vik Fearing
If there are more than two votes, then one copy each of the highest and lowest scores is removed before averaging.
2024-10-08Fix label for sentat columnMagnus Hagander
2024-10-08Don't load a list of every user in the system when creating vouchersMagnus Hagander
2024-10-08Decorate mailqueue views with @login_requiredMagnus Hagander
We did explicitly check for superuser permissions, so there was no way to get in, but without the decorator we wouldn't get the redirect to the login page.
2024-10-08Properly name North MacedoniaMagnus Hagander
The country changed name a few years ago, our registration should reflect that.
2024-09-19Set nicer label for previewbackground field in admin editorMagnus Hagander
2024-09-13Include claimid in exported sponsor claims dataMagnus Hagander
2024-09-11For failed social media posts, show time for next attemptMagnus Hagander
2024-09-11Allow unclaiming of sponsor sessions even after they're approvedMagnus Hagander
This just deletes the sessions, and also the speaker in case it had no other sessions.
2024-09-05Also make DejaVu fonts available from Django.Vik Fearing
Commit 5a07ecd9 only worked in standalone mode, and would error in Django mode. Fix that.
2024-09-04Allow multiple fonts on the command lineVik Fearing
2024-09-04Add all fonts from the DejaVu familyVik Fearing
2024-09-04Add another missing importMagnus Hagander
2024-09-04Fix two misspellings of statusMagnus Hagander
2024-09-04Add missing importMagnus Hagander
2024-09-03Fix cancellation of invoices manually flagged as paidMagnus Hagander
This is not a normal situation and has to be dealt with manually regardless, but we shouldn't crash on it prior to telling the user they have to do that...
2024-09-03Fix dumb typo in attribute nameMagnus Hagander
This caused an error in the view when setting up a new oauth client (such as a linkedin page). It happened *after* the actual configuration was completed, so one just had to reload for things to work, but it still shouldn't error like that.
2024-08-21Remove unused importMagnus Hagander
2024-08-21List which fields are available when building tweet templatesMagnus Hagander
Both for sponsor benefits and for campaign creation, list which fields are available to use in the Jinja templates, to make it easier to figure out how to use them.
2024-08-21Mark some missing unsafe attributesMagnus Hagander
2024-08-21Add function to get list of (sandbox approved) attributes from classesMagnus Hagander
2024-08-21Add some generic useful templatetags to identify typesMagnus Hagander
2024-08-21Add a widget to show a simple treeviewMagnus Hagander
2024-08-21Add a form control for previewing HTMLMagnus Hagander
This uses (partially) the pgweb code for loading previewable HTML into an iframe sandbox.
2024-08-20Remove debugging code accidentally left inMagnus Hagander
2024-08-20Indicate if a benefit has expired in the sponsor overview matrixMagnus Hagander
2024-08-20Add a template tag to access an array by indexMagnus Hagander
For some reason, django won't let us do that from a template, so we have to add our own.
2024-08-19Remove support for templtaes in attendee emailsMagnus Hagander
This was accidentally broken in 52fa57dc, and went mostly unnoticed. It was only used by signup emails which now ended up having just one link instead of two, so it seems fine for now. We'll eventually want to add more smarness to the templates around this, but that can't be done without a bigger surgery so for now just remove it.
2024-08-19Remove dependency on pgcryptoMagnus Hagander
pgcrypto was only used to set tokens in some migrations, so in practice it should not actually be UPDATEing any rows anymore (there should either be no rows, or they're all updated by now). Once the migration has completed, all new tokens are set from the python code. So update the migrations to use the build-in random() function instead, which is "good enough for this usage", and thereby dropping the dependency on pgcrypto making new installs easier.
2024-08-09django.conf.urls.url() was deprecated in Django 3.0, and was removed inDan Langille
Django 4.0
2024-08-06Use send_conference_simple_mail for conference related mailMagnus Hagander
2024-08-06Remove unusd importMagnus Hagander
2024-08-06Make confwiki send notifications using send_conference_notificationMagnus Hagander
2024-08-05Calculate, store and use etags on speaker photosMagnus Hagander
This allows us to return 304 not modified for speaker photos, as they change very infrequently. Actual etag is maintained as an md5() of the contents, by a database trigger the same way we do for util/storage fields.
2024-07-30Fix invalid option passingMagnus Hagander
2024-07-30Allow overriding how far back to fetch Wise transactionsMagnus Hagander
2024-07-23Fix query for nagios alerts on unsent social media broadcastsMagnus Hagander
As of 45b8e2e9, we update the sent column to be True while leaving unsent providers in the linked table (so we can keep track of which succeeded and which failed). The nagios check never got the memo about that one, so it didn't check the sent column, only the linked table, when in fact it's now enough to *just* check the sent column. So do that.
2024-07-22Check instance.pk, not instance.id, for members get_listMagnus Hagander
Commit f2baae524 added a guard on instance.id to all get_list calls. For Members that was technically not needed since there is currently no interface to manually add a member, but it was added for consistency and future-proofing. But since the Member object doesn't have its own primary key, it would instead cause a crash. So - change it to look at the `pk` field which does exist. Reported by Stacey Haysler, diagnosed by Christophe Pettus
2024-07-22Fix typo that caused message token refresh to never run in backgroundMagnus Hagander
2024-07-01Allow comma directly after batch number when matching adyen payoutsMagnus Hagander
2024-06-26Show social media post status per network even for single text postsMagnus Hagander
Previously we'd just show a boolean "posted" or "not posted" based on if there was more than one version of the text. But it's actually interesting to know if it's posted to only some of the networks even if the exact same text is posted to all of them, so make it show that in all cases.
2024-06-25Cache inactive messaging providers when viewing the queueMagnus Hagander
Without this, if a provider goes from active -> inactive when there are existing posts, we'd crash the view of the existing ones.
2024-06-25Make it possible to confirm sponsor benefits without triggering social mediaMagnus Hagander
For example if a sponsor needs to re-claim something because they sent the wrong data, we don't want to trigger a second post.
2024-06-25Don't render broken image tags for declined benefitsMagnus Hagander
2024-06-25Add a preview step when sponsors upload imagesMagnus Hagander
When a sponsor uploads an image, show them a preview of what they actually uploaded and require confirmation of it. In particular, render this preview on a background color if configured, same ast he admin preview.