Skip to main content

Release 4.1.0

note

4.1.0 is not released yet. This page collects the changes for the next release.

Deployment​

New features​

  • The reverse proxy serves the privacy policy at /privacy and the legal information at /legal as static pages from CONF_TEMPLATE/staticfiles. Before, the proxy forwarded these paths to Media, which answered with 401, so the mobile app 3.0.9 showed an error instead of the privacy policy. A missing page answers with 404.
  • The database and the message bus have healthchecks. Identity and Media start only when both accept connections. Before, they could start too early and restarted until the database and the message bus were ready.

Bug fixes​

  • The message bus stores its data in the named volume wekode.mml.mbus.data. Before, the data was in an anonymous volume and was lost with docker compose down or when the container was removed. Events for groups and clients that Media had not received yet were lost, e.g. a blocked client kept its share links. Existing .env files keep working without changes.

Identity and Media​

New features​

  • On start, the log shows 'TLS:Cert' configured. Listening on https., if a certificate is configured. Without a certificate it still shows that the service listens on http.

  • Share links can allow listening to their records in the browser. The share page then shows a Listen button, which opens one player with a list of the records and their titles. The titles are only loaded on Listen, the page itself contains none. Listen uses up a single-use link; afterwards only the open page can play its records. If clients may not choose the link settings, the new client setting of the admin app applies. It is off after the update and on for new installations. New links of admins and of clients who choose the settings themselves can only be downloaded, if they are created with an older app. The migration adds the columns allow_listening and listen_grant_hash to share_links and runs automatically on start. See Download links.

  • Admins see the usage of the storage of the records and of the server in the admin app. See Storage usage.

  • Media stores a copy of the offline playlists of clients. New endpoints of clients: GET /api/v2.0/media/favorite/state, POST /api/v2.0/media/favorite/changes (at most 500 changes), GET /api/v2.0/media/favorite, GET /api/v2.0/media/favorite/{id}/entries and DELETE /api/v2.0/media/favorite. Admins copy the playlists of one client to another with POST /api/v2.0/media/favorite/transfer. The requests of a client are limited to 300 per minute and 10 deletions per hour, above the limit Media answers with 429 and Retry-After. A client keeps at most 1000 playlists and 50000 saved records on the server; new playlists and records above the limit are ignored and reported with limitReached, deletions are always applied. When a client is deleted, Media deletes its playlists. The migration adds the tables favorite_lists, favorite_entries and favorite_states and runs automatically on start. See Backup on the server.

  • Media stores a copy of the personal settings of clients. New endpoints of clients: GET /api/v2.0/media/clientSettings, PUT /api/v2.0/media/clientSettings with { "payload": {...}, "transferRevision": n } and DELETE /api/v2.0/media/clientSettings. The payload is a json object with version, categories and values of at most 16 KB; Media does not interpret the values. PUT answers 409, if settings were transferred to the client meanwhile. Admins copy the settings of one client to another with POST /api/v2.0/media/clientSettings/transfer. The requests of a client are limited to 30 per minute. When a client is deleted, Media deletes its settings. The migration adds the table client_settings and runs automatically on start. See Settings backup.

  • Media counts the plays of streamed records and livestreams as anonymous statistics. New endpoints: POST /api/v2.0/media/statistics/report for clients (at most 50 plays, 60 requests per minute) and GET /api/v2.0/media/statistics/status, summary, top (ranked by plays, time or skipRate), trends, discovered, genres, heatmap, timeline and unplayed for admins. Only counters per day, hour and year are stored, never a client id. The new settings StatisticsEnabled, StatisticsRetentionDays and StatisticsYears are saved with the existing settings endpoint. The migration adds the tables stats_record_daily, stats_livestream_daily, stats_hourly, stats_daily, stats_record_yearly, stats_livestream_yearly, stats_heatmap_yearly and stats_month_yearly and runs automatically on start. See Statistics.

  • Identity knows which clients are online. New endpoints of clients: POST /api/v2.0/identity/client/heartbeat with { "listening": true|false } and DELETE /api/v2.0/identity/client/heartbeat. The client list returns isOnline and isListening and filters with online. Changes are sent at once to admins connected to the socket /hub/client/status (CLIENT_STATUS_CHANGED). The status is kept in memory only. See Online status.

Bug fixes​

  • Next and Previous in the player follow the order of the list. Before, records with the same date, e.g. from a date tag without time, were ordered differently in the list and in the player, so the player could skip records or jump to another day. The list also keeps this order across its pages.

  • A restart or short outage of PostgreSQL or RabbitMQ no longer crashes the services. Database requests are retried up to 3 times; changes made in one transaction, such as saving an uploaded record, are not retried and fail as a whole. If the outage lasts longer, the request answers with 503 Service Unavailable and Retry-After: 5 instead of 500. See Outages of the database or the message bus.

  • On start, both services wait up to 60 seconds for the database. Media also waits for the message bus to subscribe to the events.

  • Media no longer stops, if the migration of the bitrates or covers fails. The migration runs again on the next start.

  • Identity stores the events for groups and clients together with the change in the database and sends them afterwards. Events created while RabbitMQ is not available are sent, when it is available again. The migration adds the table outbox_message and runs automatically on start.

  • The Identity CLI no longer connects to RabbitMQ. Changes made with the CLI are sent by the identity service.

  • Streaming a livestream, which is deleted at the same time, answers with 403 instead of an internal server error.

Changes​

  • Identity creates one session per admin login and stores the description of the device sent with the login (device_info, operating system and app version). The logout ends only the session of the current device. Before, it logged the admin out on all devices. A token without a session still ends all sessions on logout. New endpoints of the logged in admin: GET /api/v1.0/identity/user/sessions, DELETE /api/v1.0/identity/user/sessions/{id} and POST /api/v1.0/identity/user/sessions/revokeAll. See Sessions.
  • The share pages use the colors of the WeKoDe design system by default and show their texts in Ukrainian, if the browser uses Ukrainian. The default styling.json contains the new colors and the Ukrainian title uk. An own styling.json keeps working unchanged.

Admin app​

New features​

  • Settings → Appearance sets the mode (System, Light, Dark), the colors (Default, system colors or one of twelve palettes) and the language (system, German, English, Russian or Ukrainian with flags). The app uses the colors of the WeKoDe design system by default. See Appearance and language.
  • The app is available in Ukrainian.
  • Animations and QR codes use the colors of the chosen palette. QR codes stay dark on light in the dark mode, so they can be scanned.
  • The navigation marks the selected page with a filled icon. Chips, text fields (now outlined) and dialogs use the color roles of the design system.
  • Settings → Storage shows the usage of the storage of the records and of the server and database as bars. If a storage reaches the threshold set in Warn from (90 % by default), every list shows a notice to extend it. Needs Media 4.1.0, older servers show no storage section. See Storage usage.
  • On Windows, the update installs the new version and starts it again, see Install. Before, the installer was downloaded to a folder only the app could see, so Explorer opened another folder.
  • Allow listening in the browser for share links and in the link settings for clients, on by default. Defaults saved with Use as default and do not ask again in an older version keep listening off. See Download links.
  • Settings → Signed-in devices lists the sessions of the admin, ends single sessions and signs out on all devices. Logout ends only the session of this device. See Sessions.
  • Assume groups and favorites and delete is renamed to Assume data and delete and also transfers the backed up offline playlists and personal settings of the similar client. If a transfer fails, the similar client is kept. Servers without the settings backup transfer the playlists only. See Move playlists to a new device and Settings backup.
  • Statistics shows anonymous listening statistics of a period with key figures, course, top 10 lists, similar titles, skip rates, rising and falling entries, newly discovered records, the genre course, heatmaps of the listening times and the records never played, and exports them as PDF or CSV. Settings → Statistics turns the statistics on or off and sets their retention. If the statistics are turned off, the navigation item is shown but cannot be selected. Needs Media 4.1.0, older servers show no statistics. See Statistics.
  • The client list shows live whether a client is online and listening, and filters the online clients with Online. Needs Identity 4.1.0. See Online status.
  • Builds started with --dart-define=MML_STORAGE_NAMESPACE=<name> keep their settings and logins apart from other builds on the same computer. Without it nothing changes. See Run several builds on one computer.

Bug fixes​

  • Logging in again no longer shows the error setState() or markNeedsBuild() called during build for the storage usage.
  • The texts Bitrate and Bitrates are shown in Russian. Before, they were shown in German.
  • The dialogs to choose folders, files and covers no longer freeze the app on Windows and stay in front of the app. The app uses file_selector instead of file_picker. The dialogs show the title of the operating system.
  • Records are uploaded, even if another page of the app was opened while the folder or file dialog was open.
  • Lists and selection dialogs show a scrollbar again. Dragging it loads the items at the target instead of freezing the app. Rows have a fixed height, so the list no longer jumps while items are loaded, and every album or day header is shown once above its first record.
  • A second click on the tag Inactive of the client list turns it off. Before, the click set it to the opposite of New, so it could only be removed with its delete icon.
  • Moving the mouse across the icons of a row in Sync → Audit no longer breaks the accessibility tree on Windows. Before, the log showed Failed to update ui::AXTree on every following navigation and screen readers stopped receiving updates.

Breaking changes​

  • The customize script no longer replaces the colors. lib_color_schemes.g.dart in config is ignored, users choose the colors in the app. See Fork and release.

Mobile app​

New features​

  • Settings → Appearance sets the mode (System, Light, Dark), the colors (Default, system colors or one of twelve palettes) and the language (system, German, English, Russian or Ukrainian with flags). The app uses the colors of the WeKoDe design system by default. See Appearance and language.
  • The app is available in Ukrainian.
  • Animations use the colors of the chosen palette.
  • The navigation bar shows icons only and marks the selected page with an indicator and a filled icon, so it is visible with black and white system colors too. The playing record is marked in the colors of the share pages. The player, the filter chips and the text fields (now outlined) use the color roles of the design system.
  • Allow listening in the browser for share links, on by default, if users choose the link settings themselves. See Download links.
  • The app reports finished plays of streamed records and livestreams to the anonymous statistics of the server. Records of offline playlists are not reported. See Statistics.
  • The app tells the server, whether it is online and playing something, but not what. Settings → Privacy & data protection → Share online status hides the status. See Online status.
  • Lists and selection dialogs have a scrollbar, that can be dragged to jump through long lists. The items at the target are loaded, while the list shows placeholders.
  • Back up favorites on server stores the offline playlists on the server, on by default. Changes made offline are sent later, an interrupted upload continues with the last confirmed block. Turning it off deletes the copy on the server. Playlists transferred by the admin are downloaded on request. Needs Media 4.1.0, with older servers the playlists stay on the device only. See Backup on the server.
  • Back up settings on server stores the chosen categories of the personal settings on the server, on by default with all categories: display, list view, playback & filters, online status & announcements and download links. Settings transferred by the admin are applied on the next start or resume. Turning it off deletes the copy on the server. Needs Media 4.1.0, with older servers the settings stay on the device only. See Settings backup.
  • The new settings section Privacy & data protection contains Share online status, Back up favorites on server, Back up settings on server and the privacy policy.

Bug fixes​

  • Album and day headers are no longer shown twice or in the middle of an album, while more records are loaded.
  • The first start no longer shows the loading screen several times and no longer seems to hang. If the system switched to the dark mode during the start, the app ran its start up to twelve times and loaded the registration and the livestreams each time.
  • A change of the system language is shown at once on the open screen, in the notification and in Android Auto.
  • The app no longer crashes, if the player is closed while a record is still loading. Before, the loading continued after closing and failed with Null check operator used on a null value.
  • Records can be played again, if the audio service could not be started. Before, playback failed until the app was restarted.
  • The list marks the playing record again after returning from another list, e.g. from the favorites. Before, the old record stayed marked.
  • Saving a record in a playlist now works, if the record is already saved in another playlist. Before, the record was not added to the chosen playlist.
  • If the server refuses a record while several records are downloaded, e.g. because it was deleted, the other records are still downloaded. Afterwards the app shows how many records could not be downloaded; an import lists them by title. If the server cannot be reached anymore, the download stops. Cancel stops the download after the current record. Before, an error or Cancel closed the dialog while the download went on and closed it a second time, which could close the page behind it.

Changes​

  • Playlists are shared with the share icon of the platform instead of the download icon. A single shared playlist is saved as <name>.mml. The file format is unchanged. See Share playlists.
  • Announcements are shown in a banner below the filter of the lists instead of a dialog on start. The app reloads them whenever it comes to the foreground, so new announcements appear without a restart. Users swipe between several announcements, tap one to read the full text and hide it with the close button, which can be undone. Show announcements on start is renamed to Show announcement banner and keeps its value. Needs no server update.
  • The iOS app is built with the Swift Package Manager only. The CocoaPods integration (Podfile, Pods references in the Xcode project) is removed, which shortens the build.
  • The iOS workflow builds on the xcode-27 runner with the iOS 27 SDK. From April 2027 App Store Connect accepts only apps built with this SDK or later (ITMS-90725).

Breaking changes​

  • The customize script no longer replaces the colors. lib_color_schemes.g.dart in config is ignored, users choose the colors in the app. See Fork and release.

Upgrade from 4.0.2​

  1. If you serve a privacy policy or legal information, copy the new default.conf.template and docker-compose.yml. Remove own location blocks for these paths from the old template.
  2. Store the pages as privacy.html and legal.html in CONF_TEMPLATE/staticfiles. See Reverse proxy.
  3. Recreate the proxy.
sudo docker compose up -d wekode.mml.reverseproxy
  1. If you build a customized iOS app, change runs-on: macos-15 of the build-ios job to runs-on: xcode-27 and add the step that shows the Xcode and iOS SDK version. See iOS workflow. Remove an own ios/Podfile, if your fork still has one.
  2. If you build customized apps, delete lib_color_schemes.g.dart from config and add appTitle_uk to app.cfg, see Fork and release. Your apps use the WeKoDe colors afterwards.
  3. If you use an own styling.json for the share pages, you can take over the new WeKoDe colors and the title uk from the default file.
  4. If you publish a privacy policy, add the listening statistics, the online status and the backup of favorites and settings, see Privacy policy. To not record statistics, turn them off in the admin app with Settings → Statistics.
  5. Recommended: copy the new docker-compose.yml to use the healthchecks of the database and the message bus and to keep the data of the message bus. Without them the services still recover, but restart until the database and the message bus are ready. The data of the old anonymous volume is not moved to the new volume. The user from rabbitmq.conf is created again on start, users added by hand must be added again. Before you recreate the services, make sure that the queue mml.media.queue is empty.
sudo docker compose exec wekode.mml.mbus rabbitmqctl list_queues name messages

Pull and recreate the services to update Identity and Media.

sudo docker compose pull
sudo docker compose up -d