⚠️ Breaking change: PostgreSQL 18 (PostGIS 3.6)
This release upgrades PostgreSQL to version 18 with PostGIS 3.6 (kobotoolbox/kobo-docker#389).
Self-hosters: this is a breaking change. You must follow the upgrade instructions before updating.
Back up your database before you start.
What's changed
Features (43)
-
SelectQuestion: support text questions in NLP header selector (#7560)
The question selector in Data processing now also lists text questions,
not just audio, so their responses can be translated and analyzed the
same way. -
accounts: support custom signup fields on headless API (#7578)
Adds the two signup fields allauth doesn't know about,
newsletter_subscriptionandterms_of_service, to its headless signup
endpoint so the SPA registration screen can collectRegistration collects two things beyond
username/email/password
that have to be recorded when the account is created:
newsletter_subscriptionandterms_of_service. Both were declared
only on the form used by the Django HTML page
(ACCOUNT_FORMS['signup']), which allauth's headless API does not use.POST /api/v2/allauth/browser/v1/auth/signuptherefore accepted only
three fields, and because Django forms ignore unknown keys, anything
else was silently discarded with a success response. The SPA
registration screen needs both fields, and consent in particular cannot
be deferred until after signup.This PR moves those two declarations to
ACCOUNT_SIGNUP_FORM_CLASS, the
hook allauth provides for this: it injects the class as a base of every
signup form, so the HTML page, the SSO page and the headless API all get
the fields. allauth's own schema generator reads the same class, so they
land in the OpenAPI schema and the generated orval types with no manual
schema work.The rest of the profile metadata (
name,organization,sector,
country,gender) is deliberately left off the API. As agreed with
the frontend team, the SPA collects it after login throughPATCH /me/,
which already validates required fields againstUSER_METADATA_FIELDS.
That also covers SSO users, who never see a signup form at all, so both
kinds of user end up completing their profile in the same place. Those
fields stay onKoboSignupMixin, which only the HTML and SSO forms use,
so the Django registration page is unchanged and keeps collecting
everything until future work removes it.The new class lives in
signup_fields.pyrather thanforms.pybecause
allauth resolves the setting whileallauth.account.formsis still
importing; pointing it atforms.pyis a circular import and the app
will not boot.KoboSignupMixinstays above allauth's classes on the
two form classes it is mixed into, which is what lets its
clean_email()and organization skip-logic keep overriding allauth's
behaviour exactly as before. -
accounts: send a distinct email when an activation link is resent (#7605)
Adds a third confirmation email so a resent activation link no longer
arrives as an address-verification email, and moves the choice between
all three intoAccountAdapter.allauthships two confirmation templates and picks between them with a
singlesignupflag, so anyone re-requesting an activation link
received "KoboToolbox account email address verification" - the wrong
email for someone activating a new account.
AccountAdapter.send_confirmation_mail()now selects between three,
using the state of the account rather than the trigger:Template signup email_confirmation_signupno verified address yet email_confirmation_resend(new)already has a verified address email_confirmationThe rule is account state because the #7532 resend endpoint serves both
kinds of user which endpoint fired cannot decide it. That endpoint
previously made the same decision itself and passed it throughsignup;
it now passessignup=Falseand defers, so the rule lives in one place.Copy in the new template (
email_confirmation_resend) is interim.
replaces it and adds HTML bodies for
all three; the.txtfiles (email_confirmation_resend_message.txtand
email_confirmation_resend_subject.txt) remain as the plain-text
alternative. -
accounts: expose
validated_passwordon the session endpoint (#7649)Adds
has_validated_passwordto the allauth session endpoint so the
frontend can read the invalidated-password signal there instead of
/me.An administrator can invalidate a user's password from the admin, which
locks them out of KPI until they reset it. The SPA shows a blocker for
this, and today it reads the flag from/me, which is why/meis
exempt from the permission
class that enforces it.We settled that
/meis a profile endpoint and the session endpoint
owns authentication state. This flag was the one thing still breaking
that rule.This PR adds
data.user.has_validated_passwordtoGET /api/v2/allauth/browser/v1/auth/session, via aHeadlessAdapterwired
up through allauth's documentedHEADLESS_ADAPTERsetting. Declaring it
on the
user dataclass (rather than overridingserialize_user()) is what
allauth's docs prescribe, and it means the field lands in the OpenAPI
schema and the generated orval types automatically.Nothing about how the flag is set or enforced changes.
/mekeeps
returningvalidated_passwordfor API back-compat. -
admin: add bulk action to mark users active (#7692)
Superusers can now reactivate several user accounts at once from the
Django admin, just as they can already deactivate them.On the Django admin users page, the "Action" dropdown had "Mark selected
users inactive" but no way to undo it in bulk. Each account had to be
opened and reactivated one by one. A new action, "Mark selected users
active", now reactivates all selected accounts in one go.The dropdown also adapts to the "By active" filter. When you're looking
at inactive users, it offers only "Mark selected users active". When
you're looking at active users, it offers only "Mark selected users
inactive".Accounts that are in the trash bin, or have already been removed, are
never reactivated by this action. The admin gets a warning saying how
many were skipped, with a link to the trash bin, where they can be
restored properly. -
audioPlayer: add tooltips to play and pause buttons in audio players (#7705)
Audio play and pause buttons now show a tooltip on hover, both in the
Data Table and in the audio player used in "View details" and other
submission views. -
auth: update SSO copy (#7564)
-
auth: shared building blocks for the auth screens (#7568)
On instances with a custom login background, the photo is now there as
the page opens instead of appearing a moment after Kobo's own
background. -
auth: add the ResendVerificationLink component (#7570)
The account creation and activation screens can now send you a fresh
confirmation email, with the address filled in already when they know
it. -
auth: username and email registration screen (#7571)
A redesigned account creation screen: username, email and password,
whichever extra profile details the instance asks for, and a "check your
inbox" step once the account exists. -
auth: confirm email address screen (#7572)
The link in your sign-up email opens a redesigned screen that confirms
your address and then takes you straight into Kobo, or to the login form
if your instance asks you to sign in again. -
auth: request a new link when activation fails (#7573)
An expired or already used activation link can now be swapped for a new
one from the screen that turned it down, instead of starting the sign-up
over. -
auth: update activation email copy (#7653)
Updates copy in activation email to draw attention to our free
KoboToolbox essentials course. -
auth: login form (#7630)
New sign-in screen. Hidden behind the
authRedesignEnabledfeature
flag. -
auth: reset password form (#7636)
The redesigned sign-in screens can now recover a forgotten password: ask
for a reset link by email, then pick a new password from the link in
that email. -
auth: allow switching accounts via headless login (#7682)
Logging in through the headless API while already signed in now switches
to the new account, instead of being rejected. A failed attempt keeps
the current user signed in.allauth's headless
auth/loginanswers409whenever a session already
exists. The SPA would have had to log out first, which signs the user
out even when the new credentials turn out to be wrong. The templated
/accounts/login/page already lets you switch accounts, and product
asked to keep that behaviour.HeadlessLoginViewreplaces allauth's login endpoint for each
configured headless client (browserandapp). allauth checks the
credentials beforepost()runs, so:Already signed in, then… Response Current session valid credentials for another user 200, new user logged out wrong password 400 kept own credentials again 200 kept valid credentials for a user with 2FA 401, pending mfa_authenticatelogged out -
auth: mfa form (#7640)
Accounts with two-factor authentication can now finish signing in on the
redesigned login screen. Hidden behind feature flag. -
auth: allauth views in router (#7644)
-
auth: handling SSO registration flow (#7647)
You can now sign up with a single sign-on provider from the new login
screen, filling in only the details your provider didn't already give
us. -
auth: watch every allauth response for status (#7672)
-
auth: handle 401 from all sources (#7687)
An expired or ended session is now noticed right away, instead of the
app acting signed-in for up to a minute longer. -
auth: update email flow (#7694)
Changing your account email address gives better feedback: the buttons
stay busy while a change is in flight, and a refusal from the server is
shown instead of being swallowed. -
auth: update sso management flow (#7695)
Connecting and disconnecting SSO in Account Settings → Security now runs
through the new authentication system, and explains itself when a
connection attempt fails.The section looks the same, but two things improve. A failed attempt —
cancelled at the provider, or the provider account already belongs to
somebody else's KoboToolbox account — now shows a specific message
instead of silently returning you to an unchanged page. And if your
provider is configured as non-public, the section names it ("Connected
to Example Org") rather than stating that something, somewhere, is
connected. -
auth: TOS signup checkbox (#7702)
Behind feature flag! Fixed account creation being impossible on servers
that require agreeing to TOS but don't publish a link to them — the
agreement checkbox was missing, so every submission was rejected. -
csrf: allow distinct origin config (#7574)
-
designSystem: convert single processing view tabs to mantine (#7356)
Part of series of changes to convert older components to new stylized
components. This one affects the tabs in the single processing view -
frontend: mantine spacing and label adjustments (#7566)
Labels above form fields now scale with the size of the field they
belong to, instead of always being the smallest size. -
frontend: rename data related labels (#7583)
Renamed the labels that used to talk about "data columns" and "XML
values" so they now say question, group, and choice names — in
Formbuilder, the data table settings, the single submission modal, and
the downloads form. -
frontend: improve error handling (#7561)
Error messages no longer dump raw server output: you either get the
message the server actually wrote, or a plain "An error occurred". -
frontend: profile details route blocker (#7615)
Required blank profile details cause a whole UI to be blocked until they
are filled in immediately after log in. -
frontend: auth status tracking (#7656)
Signing in now returns you to the page you were trying to reach, and the
app notices when your session changes in another tab. Hidden behind
feature flag. -
openapiValidator: add OpenAPI request/response validation middleware (#7314)
The API and its published documentation are now checked against each
other automatically, so the API documentation stays accurate.KoboToolbox publishes a description of its API that integrations and
third-party tools rely on. Until now nothing verified that the API
really matches it, so the two could drift apart unnoticed. Requests and
responses are now compared against that description automatically and
any difference is reported to the team, so it gets fixed instead of
reaching the documentation. Nothing changes in how the product behaves
today. -
organizations: make sso column available to all (#7562)
Every team now sees the
SSOcolumn in the Members table, showing which
members sign in through single sign-on. -
pagination: add limited-count pagination class (#7703)
Prepares faster lists on very large accounts: the server can now stop
counting results past a set limit. Nothing changes for users yet.Some lists count every matching item before showing a page, which gets
slow on very large accounts. This adds the piece that lets a list stop
counting at a limit and report "many" instead of an exact number, or
"unknown" if counting takes too long.It ships switched off. The limit is set so high that every list behaves
exactly as it does today. Lists will start using it, and the limit will
come down, in later changes once the interface is ready. The server
settings endpoint (/api/v2/environment/) now reports the limit, so
apps and integrations can show labels like "4999+". -
processing: hide Transcript tab for text questions (#7512)
The Processing view now only shows the "Transcript" tab for questions
that actually have something to transcribe. -
processing: add auto_accept option to bulk transcription and translation jobs (#7662)
Bulk transcription and translation jobs can now approve their results
automatically, so there is no need to open and save each transcript or
translation one by one.When starting a bulk transcription or translation, the request can ask
for the generated results to be approved as soon as they are ready.
Approved results appear directly in the data table and in exports,
without the extra "Review" step. The option is off by default; the
matching checkbox in the interface comes in a separate change. -
processing: enable NLP actions for text questions by removing feature flag (#7693)
Text questions can now be translated and analyzed in qualitative
processing for everyone. They were previously available only behind a
feature flag. -
projectViews: add extra fields for superusers to the project view asset list (#7803)
Superusers can get the sharing status and the versions of every project
from the project view list, so that integrations no longer need to load
each project.The project view list API accepts a new
extra_fields=onparameter, for
superusers only. It adds the sharing status, the summary (with the
number of questions), the latest version and its content hash, the
deployed version and the number of versions of each project. An
integration can compare the latest version with the one it already has,
and download a form only when it changed. The parameter is ignored for
other users. -
qual: enable AI answer feature for text questions (#7643)
The "Generate with AI" button is now available in the Analysis tab for
text questions. -
sidebar: add text submission widget for processing view (#7524)
Added a widget to view the full original response for text questions in
the submission processing view. -
singleSubmissionView: add Translate & analyze action for text responses (#7575)
Text responses in the Single Submission Modal now have a "..." menu with
a "Translate & analyze" action, opening Processing for that response —
same as audio already offers. -
supportTools: record form versions in submissions that spanned several versions (#7710)
Support can now repair the form version history of submissions that were
edited or sent after a new form version was deployed.Each submission now records every form version it went through, so that
its answers can be read against the questions of each of those versions.
Submissions that were edited under a newer version, or collected offline
with an older one, before that release carry no such history. Support
can now rebuild it for a whole project, from the edit history of each
submission and the dates each version was deployed. A run only reports
what it would change unless it is told to write, and it can be followed
by the attachment restore, which then finds files stored under a
question only an intermediate version had.A submission collected offline with an older form version and sent after
a newer one was deployed now records only the version it was collected
with. Very old submissions, which name their form version in older
fields, keep it when they are edited, and exports no longer leave out
the ones whose version was merged into another one.👷 Description for instance maintainers
- New management command
restore_formversions_in_submissions --asset-uid <uid>. It is a dry run unless--no-dry-runis passed.
--no-resumestarts over instead of resuming an interrupted run, and
--restore-attachmentsrunsrestore_soft_deleted_attachmentson the
same project once every submission is walked.-v 2logs each batch,
-v 3how each submission history is rebuilt. - New Django admin page "Form versions restore", next to "Attachment
restore", so support can launch and follow a run without shell access.
The run goes tokpi_low_priority_queue, writes its log and counts back
on the row, and re-queues itself when it hits the soft time limit.
⚠️ breaking changes:
--emailis removed from
restore_soft_deleted_attachments: launching it from the admin, where
the log is kept on the job row, replaces it. - New management command
-
feat(theme): add 24px xl spacing and per-size input label sizes
Mantine's spacing scale jumps from 20px to 32px, so there was no 24px rung
for the new auth designs.xlnow fills it andxxlkeeps the 32px that
used to bexl, which is why the existingxlcall sites move toxxl.
Input labels also stop being a fixed 12px: InputWrapper derives the size
from the field's own size prop, so one theme entry covers TextInput,
Select, Textarea and the rest.
Co-Authored-By: Claude Opus 5 noreply@anthropic.com (3c1b004)
Bug Fixes (34)
-
CI: add concurrency handling for storybook deploys (#7633)
Add concurrency management to the Storybook deploy workflow.
Without this, two runs racing to deploy GitHub Pages could fail with
"deployment request failed due to in progress deployment." Using
cancel-in-progress: falsequeues the second run rather than canceling
it to avoid interrupting an ongoing Pages deployment.See original error
here. -
ProjectSettings: disable outside click to close (#7595)
Improve the UX to remove the ability to close the create new project
modal by clicking outside the modal. -
accounts: stop resending confirmation emails at headless login (#7624)
Signing in with an unverified account through the new authentication API
no longer sends another activation email automatically. A new link is
only sent when it is explicitly asked for.Until now, every attempt to log in with an account whose email address
had not been confirmed quietly triggered a fresh activation email. Users
who tried a few times ended up with several near-identical messages in
their inbox and no clue which link was the live one.The redesigned sign-in screen (React SPA +
allauthheadless) replaces
that with a button for requesting a new link,
so the automatic send is no longer needed and has been removed. Creating
an account still sends the activation email as before, and the current
sign-in page is unchanged; it keeps sending a fresh link on login until
it is retired.AccountAdapter.should_send_confirmation_mail()now returnsFalsefor
headless requests unless the send is part of a signup. -
api: correct extra_details schema on
/me(#7655)Adds the missing gender field to the documented
extra_detailsshape on
/meand typesnewsletter_subscriptionas the boolean it actually is.extra_detailson/meis a free-form JSON blob, so drf-spectacular
cannot inspect it and its shape is written out by hand in
ExtraDetailField. That hand-written description had drifted from the
fields it describes:genderwas missing entirely, though it is a supported metadata fieldnewsletter_subscriptionwas documented as a string, but it is
declaredforms.BooleanFieldand the API returnstrue/false
This PR corrects both properties and regenerates the schema and orval
output. -
assets: do not allow extra fields in data sharing (#7631)
Return an error if a request to update the asset contains invalid fields
in thedata_sharingparameter -
attachments: keep background audio files whose question was renamed (#7900)
Background audio recordings no longer disappear from submissions made
with Enketo when the background audio question has a custom name. -
backend: return git version number (#7597)
Superusers and instances that enable
EXPOSE_GIT_REVcan see the
server's git revision in the API again.The
git_revblock in the/me/response came back as allfalseon
servers even with the setting turned on. It now contains the actual
commit hashes, branch and tag. -
countries: update the country names list (#7883)
The country list now uses current country names, such as Eswatini,
Czechia, North Macedonia and Türkiye.The list of countries offered in account settings, project settings and
the project filters was an old snapshot. It is now in line with the
current UN/LOCODE country table, with Kosovo kept as before. 22 names
changed, and two entries that are no longer in the table were removed:
Netherlands Antilles and Bouvet Island. -
dataTable: make audio accessible after question rename (#7521)
Media files (images, audio, video) attached to a question that was later
renamed now show up in the data table and submission modal again, and
audio among them can be opened in the processing view. -
frontend: drop audit column and place start-geopoint with metadata (#7603)
The
auditmetadata question is no longer a column in Data Table nor a
row in a single submission, and the start geopoint column now sits with
the rest of the metadata at the end of the table. -
frontend: Always show project name in browser tab title (#7606)
Fix browser tab titles on project pages so they consistently include the
project name and current section, making tabs easier to identify across
project views.This change updates the browser tab titles for project-related routes so
they consistently include the project name and the relevant section,
instead of showing generic or incomplete titles. -
frontend: improve media and nlp reading from submission (#7642)
Answers, files and transcripts collected before a question was renamed
or moved in the form are now shown with the question they were actually
given to.We already show these older answers. It finds them by matching question
names and file names, and those matches can land on the wrong question:
two questions in different groups can share a name, and two answers can
name the same file. The front end now goes by the question path stored
with each submission, so an old answer is shown in the right place or
not at all. -
frontend: cleanup account fields related code (#7611)
Fixed the spacing between profile fields in Account Settings on narrow
screens. -
frontend: keep asset up to date in PermProtectedRoute (#7664)
Fixed sorting and column visibility in the data table not applying until
the page was reloaded. -
frontend: Prevent duplicate alerts and network requests within share form (#7621)
If a username is entered multiple times within the share form, and they
do not exist, the form now does not perform additional checks to see if
they exist, since we already discovered that during the initial time
they were entered. -
frontend: long text breaking ellipsis in safari (#7668)
Long transcripts no longer show an empty cell with just
…in the data
table when using Safari. -
library: avoid null legacy router crash in library stores (#7673)
-
modals: close modals when navigating away (#7786)
Fixes a bug that allowed most modals to stay open even after navigating
away from source view. -
openapi: allow null in asset summary languages (#7641)
The API documentation now shows that a project's language list can
include an unnamed language.If a form mixes named translations (like "English (en)") with labels
that have no language, the project's language list has an empty entry
for the unnamed one. The API already returns that entry, but the
documentation said every entry was text. Now the two match. -
organizations: make sso orderable, align labels (#7665)
The SSO column in the Members table can now be sorted, and its header
matches the rest of the row. -
processing: disable access to processing for repeat group answers (#7661)
Answers inside repeat groups can no longer be opened in qualitative
processing, which doesn't support them yet. The data table and the
single submission view now show a disabled button that explains why. -
processing: stop deleted transcripts reappearing in data table (#7684)
Deleting a transcript now removes it from the data table and exports for
good.When a question had been transcribed both automatically and manually,
deleting the transcript could make an older automatic version reappear
in the data table and in exports. The deleted transcript now stays
deleted everywhere. The same fix applies to translations. -
processing: require the source language to translate text responses (#7917)
When translating a text response, users now pick the language the
response is written in, so translations no longer fail or use the wrong
source language.Translating a text response used the form's language as the source. That
failed when the response was already in the target language, and gave
wrong results when respondents answered in a different language than the
form's.Now the translation step for a text question asks for the language of
the response above the target language. The manual and automatic buttons
stay disabled until both are picked, and the automatic one also checks
that Google can translate from the source language. The source starts
with the language picked for the latest translation of the same
response, or else with the form's default language. Neither language can
be picked as the other. The wording for text questions no longer
mentions "transcript".Text translations created before this change have no source language.
Editing one saves it with the best guess that isn't the translation's
own language: the source of the response's other translations, the
form's language, or else English.👷 Description for instance maintainers
The data supplement API now accepts
source_languagein
manual_translationandautomatic_google_translationpayloads for
text questions. It's required, must differ fromlanguage, is stored
with the translation and is sent to Google as the source. Other question
types reject it. Accepting or deleting a translation doesn't need it.
These requests now get a specific error message instead of a generic
"Invalid payload" or "No source language found". The OpenAPI schema and
the generated frontend client are updated. -
projectSettings: resolve import rename from older release (#7783)
-
projectTopTabs: Project top tabs accurately underlines the current (#7669)
The top tabs in the form summary/data/settings/media tabs' underline now
follows the correct page -
queryParser: reserve every Django field lookup in list queries (#7589)
Searching a list field with an operator the list syntax cannot run, for
examplesummary__languages[]__istartswith:Eng, now returns an error
instead of silently matching nothing. -
restServices: fix hook retry count and spacing (#7855)
REST Services retry failed submissions one time more than configured,
too early and at random intervals, and some manually retried submissions
stay pending for up to a day.👷 Description for instance maintainers
Automatic retries of REST Services now wait 5, 10 and then 20 minutes
between attempts, and stop after the configured number of retries
(HOOK_MAX_RETRIES, 3 by default). Both delays are defined by two new
Django settings.A manual retry, for one submission or for all failed submissions, now
sends the data once. If it fails, the submission is marked as failed
right away. A failed submission can always be retried manually. -
security: prevent browsers from caching JSON API responses (#7893)
Browsers no longer keep a copy of the data Kobo loads in the background,
such as project lists, submissions and account details.While you use Kobo, your browser saved copies of the data it loaded on
your computer, and those copies could stay there after you logged out.
Kobo now tells the browser not to store them. The app looks and loads
the same as before, because the browser never reused those copies. -
sso: handle toggling of sso-exempt (#7584)
Enforce managed SSO restrictions on users who lose their sso-exempt
status, and remove restrictions/notifications when the exemption is
re/instated.If previously non-exempt users received a notification advising them to
link their SSO account, setting them to sso-exempt will remove the
notification. If previously exempt users are made non-exempt, they will
receive a notification if they do not have a linked account. If they
have a linked account, their password and any other SSO logins will be
disabled. -
sso: allow managed domains on headless SSO signup (#7670)
On the new login screens, people whose organization requires single
sign-on can now finish creating their account through SSO, instead of
being blocked by a message telling them to sign up through SSO. The
existing signup pages were not affected.Some organizations ask us to manage their Kobo accounts entirely through
their own login system (SSO) — so that when someone leaves and IT
disables them there, they immediately lose Kobo access too. For those
organizations we block password accounts on their email domains, and
tell anyone who tries to use SSO instead.That message was also being shown to people who were already signing up
through SSO. This only happened on the new API that the redesigned login
screens use — the signup pages in use today have always worked
correctly. On that new path the email field is pre-filled and read-only,
so there was nothing the person could do about it and the signup could
not be completed. They now get through, and the password restriction
still applies everywhere it should.👷 Description for instance maintainers
Headless API only. The HTML signup pages were never affected and are
untouched.SignupExtraFieldsFormis ourACCOUNT_SIGNUP_FORM_CLASS, which
allauth injects as a base class of every signup form — including the
headless provider-signup input. Itsclean()called
validate_email_domain()withoutallow_managed_domains, so SSO
signups onPOST .../auth/provider/signupgot the password-signup
policy. The
HTML pages escape this twice over:SocialSignupForm.clean_email()
passes the flag, andKoboSignupMixin.clean()skips thisclean()
entirely. Registering a form of our own would not help, since
ProviderSignupViewhardcodes its input class and ignores
SOCIALACCOUNT_FORMS.clean()now waives the managed-domain rule when the form carries a
pendingSocialLogin, and on that path requires the submitted address
to match the one the provider vouched for — the pairing
SocialSignupForm.clean_email()already has, and what keeps the waiver
safe, since the address is only an initial value here. The blacklist and
allowlist checks, and the password signup path, are unchanged. -
subscriptions: handle unparseable values (#7604)
-
trashBin: record a real error when a trash deletion fails without one (#7556)
Deletions from the trash bin that fail now always say why, and the ones
that failed silently in the past get one more automatic try.Some projects, accounts and attachments failed to be deleted from the
trash bin with a blank error. Superusers could see they had failed, but
not why, and nothing retried them. Every failure now records a message,
and the deletions that failed with a blank one are put back in the queue
so they run again at the usual pace. -
usage: simplify description text in usage page (#7485)
Remove the dismissable banner from the usage page and have a simple
dynamic string explaining the usage page. -
prevent browsers from storing attachments and exports (#7894)
Browsers no longer keep a copy of submission attachments and exports
after you view or download them.Photos, audio, other attachments and export files were saved in the
browser's cache, where they could stay after logout. They are now sent
with instructions telling the browser not to store them. Files you
download yourself still land in your downloads folder as before.
Performance (1)
- billing: compute usage balances once per limit check (#7637)
Checking whether a project owner is over their plan limit now does less
repeated work in some submission paths.When a submission comes in, the server checks whether the project owner
is over their submission or storage limit. Some paths, like imports and
backups, worked out the owner's usage more than once for the same check.
They now do it once. Which submissions get accepted or refused stays the
same.
Continous Integration (3)
- releases: don't sometimes skip linear release linking (#7592)
- releases: pin nonprod releases to custom helm version INFRA-592 (#7634)
- workflows: set least-privilege token permissions, scope CodeQL to first-party code (#7563)
Internal security hardening of the automated build and release
pipelines. Nothing changes in the app itself.Each automated job in the code repository now gets only the access it
needs to do its work, and the weekly security scan skips bundled
third-party libraries so alerts point at code we actually maintain.
Build & Dependencies (4)
Refactor (14)
-
auth: transform session to profile store (#7548)
-
auth: make more generic AuthAside, and AuthPageFrame (#7612)
-
dataTable: decouple DataTableCell from react-table (#7689)
-
enketo: remove broken enketo_flush_cached_preview task (#7678)
Removed a background cleanup job that ran after every form preview and
never worked.Opening a form preview used to schedule a cleanup job for 30 minutes
later. That job failed almost every time, so all it did was add errors
on the server. It's gone now, and previews work exactly as before. -
formSidebar: typescriptize formViewSideTabs (#7607)
Updates old component to typescript
-
frontend: tsify FormSubScreens (#7581)
-
frontend: tsify and move formLanding (#7593)
-
frontend: move FormSubScreens to mantine and drop Reflux (#7610)
Updates the frontend logic for the sidebar in the form view
-
frontend: route blockers cleanup (#7614)
-
library: move new library item modal to mantine (#7519)
Part of ongoing frontend upgrades. Moves old library modal for creating
a new library item to mantine -
preview: move enketo preview to mantine (#7626)
Refactors the enketo preview modal to use mantine
-
projectsettings: move Replace Project wrapper to mantine (#7541)
-
sso: save in-app message on custom data object (#7580)
-
trashBin: stop scheduling deletions with PeriodicTasks (#7905)
Emptying the trash no longer slows down scheduled background tasks on
busy servers.Every account, project or attachment moved to the trash used to get its
own scheduled task, and the scheduler struggled once there were hundreds
of thousands of them. Items in the trash now wait without any scheduled
task. A background job checks every 15 minutes for items whose retention
period has passed, and deletes them in limited batches."Delete selected users" in the admin still deletes the accounts right
away. Changing a retention period now also applies to the items that are
already in the trash.👷 Description for instance maintainers
This is an interim change, until a refactor of the trash bin, planned
for an upcoming release, replaces how trashed objects are deleted.Moving an object to the trash no longer creates a Celery Beat entry. The
trash-bin-task-restarterBeat entry now runs every 15 minutes instead
of 30, and it also starts the deletions that are due. The number of
deletions that it sends per run and per type is still set by
MAX_RESTARTED_ACCOUNT_DELETIONS,MAX_RESTARTED_PROJECT_DELETIONSand
MAX_RESTARTED_ATTACHMENT_DELETIONS. The default for attachments goes
from 300 to 1000.The
trash-bin-garbage-collectorBeat entry is removed, and a migration
deletes its row. The Beat entries that already exist for trashed objects
stay in place and still run until a later long-running migration removes
them.A retention of -1 in Constance now means that pending objects are never
deleted automatically.
Chores (5)
-
formpack: update formpack version (#7660)
-
frontend: create PasswordInput wrapper with stories (#7481)
-
license: update license contact information (#7608)
This updates the license to match the changes made in
kobo-install -
pagination: raise the capped-count default above the largest projects (#7715)
Keeps exact submission counts on very large projects while capped counts
are rolled out.Lists can now stop counting past a set limit and say "many" instead.
That limit was set at one million, but some projects already have more
submissions than that, so their data table would show "many" before the
app knows how to display it. This raises the default far above the
largest projects, so every count stays exact until the limit is
deliberately lowered. -
trashBin: delete legacy trash periodic tasks (#7907)
Removes the scheduled tasks that the trash bin left behind, which slowed
down background tasks on busy servers.Items in the trash no longer need a scheduled task of their own, but the
tasks that were created before are still there, one per trashed item.
They are now deleted in the background, while the items stay in the
trash and are deleted once their retention period has passed, as usual.👷 Description for instance maintainers
A long-running migration deletes the Celery Beat entries that the trash
bin created for each trashed object, and the clocked schedules that they
leave unused. Trashed objects are kept: they are only detached from
their entry.The entries that Celery Beat is about to run, or has not run yet
although they are due, are left in place until Beat has run and disabled
them. Until then, the migration stays in progress and runs again every
15 minutes, which is expected on a server where Beat is behind. Celery
Beat reloads its schedule once per run of the migration, not once per
deleted entry.
Revert (3)
Other (2)
Full Changelog: https://github.com/kobotoolbox/kpi/compare/2.026.37g..2.026.43