Skip to content

v1.5.0

Latest

Choose a tag to compare

@iSlavok iSlavok released this 16 Nov 20:24
f21900a

Version 1.5.0 links club lessons to lessons on the 100points platform and keeps the buttons of sent reminders up to date. After the merge: tag v1.5.0 on the merge commit and publish the GitHub Release. While GitHub Actions cannot run, deploy with make deploy v=1.5.0.

Features

  • Platform course of a club. A club gets its 100points course (link or number in the club settings).
  • Platform lesson of a lesson. The lesson form picks a lesson of that course, with the suggested one by date. A card of the platform lesson sits next to the form: empty fields are filled from it, differing ones can be taken with «Взять». A Zoom link anywhere in the platform lesson switches the form to «Созвон с куратором» and fills the call link.
  • Reminder buttons. Reminders go out with «Подключиться» and «Открыть урок» buttons instead of a link in the text; /schedule links the lessons.
  • Buttons follow the lesson. Buttons of sent reminders change when the call link or the platform lesson of their lesson changes, «Подключиться» goes 3 hours after the start, a cancelled lesson loses all buttons. Reminders sent before this version get their buttons once, newest first, 50 a minute.
  • In the admin panel every platform link opens the platform admin; the student link is only in Telegram. Reading the platform needs lessons.edit. A rejected platform token sends one alert to the owner.

Build and release

  • The platform API client is the private package points-api (repo iSlavok/100points-api-client, tag v0.1.0). Without it or without PLATFORM_TOKEN the bot runs with the integration off.
  • GHCR images are private now: the release builds the backend with the client (secret PLATFORM_CLIENT_TOKEN), the deploy logs the server in to GHCR with GHCR_PULL_TOKEN only for the pull. Layers and the uv cache with the client stay out of the Actions cache.

Migrations

  • clubs.platform_course_id, lessons.platform_lesson_id, nullable.
  • reminders.buttons (jsonb), buttons_checked_at, buttons_lesson_version, nullable.

Before the deploy

  • Secrets PLATFORM_CLIENT_TOKEN, GHCR_PULL_TOKEN; images private.
  • Server .env: PLATFORM_TOKEN.
  • Database backup on the server.