Skip to content

Commit

Permalink
Release v2.1.6: Bug fixes and update dependencies (#72)
Browse files Browse the repository at this point in the history
## v2.1.6 - 2024-06-22
### What's Changed
**Full Changelog**: v2.1.5...v2.1.6 by @obervinov in #70
#### 💥 Breaking Changes
* remove unused database `environment` attribute permanent path in the Vault: `configurations/database`
* remove unused environment variable `PROJECT_ENVIRONMENT`
* the automatic queue verification mechanism has been removed. Instead of this method, added functionality to update the queue processing time via a message to the bot
* change the structure of the table `messages`: add a new column `state` and `updated_at`, rename column `timestamp` to `created_at`
#### 🐛 Bug Fixes
* #69
* #62
* #67
* #64
* #65
* Removed duplicates in rights checking
* Small refactoring code
#### 🚀 Features
* Bump dependency versions for modules and workflows
* Add button for rescheduling the queue
  • Loading branch information
obervinov authored Jun 22, 2024
1 parent c7516e4 commit 765f870
Show file tree
Hide file tree
Showing 15 changed files with 419 additions and 344 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ on:

jobs:
changelog:
uses: obervinov/_templates/.github/workflows/[email protected].5
uses: obervinov/_templates/.github/workflows/[email protected].6

pylint:
uses: obervinov/_templates/.github/workflows/[email protected].5
uses: obervinov/_templates/.github/workflows/[email protected].6

pytest:
uses: obervinov/_templates/.github/workflows/[email protected].5
uses: obervinov/_templates/.github/workflows/[email protected].6

pyproject:
uses: obervinov/_templates/.github/workflows/[email protected].5
uses: obervinov/_templates/.github/workflows/[email protected].6

pr:
uses: obervinov/_templates/.github/workflows/[email protected].5
uses: obervinov/_templates/.github/workflows/[email protected].6

build-pr-image:
uses: obervinov/_templates/.github/workflows/[email protected].5
uses: obervinov/_templates/.github/workflows/[email protected].6
needs: [changelog, pylint, pytest, pyproject]
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ on:

jobs:
create-release:
uses: obervinov/_templates/.github/workflows/[email protected].5
uses: obervinov/_templates/.github/workflows/[email protected].6

# milestone:
# uses: obervinov/_templates/.github/workflows/[email protected].5
# uses: obervinov/_templates/.github/workflows/[email protected].6
# needs: [create-release]
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,27 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).


## v2.1.6 - 2024-06-22
### What's Changed
**Full Changelog**: https://github.com/obervinov/pyinstabot-downloader/compare/v2.1.5...v2.1.6 by @obervinov in https://github.com/obervinov/pyinstabot-downloader/pull/70
#### 💥 Breaking Changes
* remove unused database `environment` attribute (permanent path in the Vault: `configurations/database`)
* remove unused environment variable `PROJECT_ENVIRONMENT`
* the automatic queue verification mechanism has been removed. Instead of this method, added functionality to update the queue processing time via a message to the bot
* change the structure of the table `messages`: add a new column `state` and `updated_at`, rename column `timestamp` to `created_at`
#### 🐛 Bug Fixes
* [Bug: Add a limit on the number of items in the queue to be displayed in the `Your last activity` message](https://github.com/obervinov/pyinstabot-downloader/issues/69)
* [Bug: Bot can't update status message](https://github.com/obervinov/pyinstabot-downloader/issues/62)
* [Bug: Crashes the queue processing thread when a post from the queue no longer exists in the content sources](https://github.com/obervinov/pyinstabot-downloader/issues/67)
* [Bug: queue rescheduler does not always work correctly](https://github.com/obervinov/pyinstabot-downloader/issues/64)
* [Bug: For some reason the bot tried to edit a message with the same content in the message](https://github.com/obervinov/pyinstabot-downloader/issues/65)
* Removed duplicates in rights checking
* Small refactoring code
#### 🚀 Features
* Bump dependency versions for modules and workflows
* Add button for rescheduling the queue


## v2.1.5 - 2024-05-29
### What's Changed
**Full Changelog**: https://github.com/obervinov/pyinstabot-downloader/compare/v2.1.4...v2.1.5 by @obervinov in https://github.com/obervinov/pyinstabot-downloader/pull/61
Expand Down
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ This project is a telegram bot that allows you to create backups of content from
</p>

**Main functions**
- a backup copy of a `specific post` by link
- a backup copy of `list of posts` by links
- the ability to backup to the `Mega` or `Dropbox` clouds
- a backup copy of a __specific post__ by link
- a backup copy of __list of posts__ by links
- the ability to backup to the __Mega__ or __Dropbox__ clouds

**Preview of the bot in action**
<p align="center">
Expand Down Expand Up @@ -60,7 +60,6 @@ This project is a telegram bot that allows you to create backups of content from
## <img src="https://github.com/obervinov/_templates/blob/v1.2.2/icons/build.png" width="25" title="build"> Environment variables
| Variable | Description | Default value |
| ------------- | ------------- | ------------- |
| `PROJECT_ENVIRONMENT` | The environment in which the project is running (`dev`, `prod`) | `dev` |
| `LOGGER_LEVEL` | [The logging level of the logging module](https://docs.python.org/3/library/logging.html#logging-levels) | `INFO` |
| `BOT_NAME` | The name of the bot, used to determine the unique mount point in the vault | `pyinstabot-downloader` |
| `MESSAGES_CONFIG` | The path to the message template file | `src/configs/messages.json` |
Expand All @@ -84,8 +83,8 @@ This project is a telegram bot that allows you to create backups of content from

### Bot configuration source and supported parameters
<img src="https://github.com/obervinov/_templates/blob/v1.2.2/icons/vault.png" width="15" title="vault"> All bot configuration is stored in the `Vault Secrets`</br>
_except for the part of the configuration that configures the connection to `Vault` and external modules_</br>
- `configuration/database-<env>`: database connection parameters (depends on the environment variable)
_except for the part of the configuration that configures the connection to `Vault`_</br>
- `configuration/database`: database connection parameters
```json
{
"database": "pyinstabot-downloader",
Expand Down Expand Up @@ -224,4 +223,4 @@ docker compose -f docker-compose.yml up -d
## <img src="https://github.com/obervinov/_templates/blob/v1.2.2/icons/github-actions.png" width="25" title="github-actions"> GitHub Actions
| Name | Version |
| ------------------------ | ----------- |
| GitHub Actions Templates | [v1.2.2](https://github.com/obervinov/_templates/tree/v1.2.2) |
| GitHub Actions Templates | [v1.2.6](https://github.com/obervinov/_templates/tree/v1.2.6) |
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ services:
container_name: pyinstabot-downloader
restart: always
environment:
- PROJECT_ENVIRONMENT=dev
- TELEGRAM_BOT_NAME=pyinstabot-downloader
- VAULT_APPROLE_ID=${VAULT_APPROLE_ID}
- VAULT_APPROLE_SECRETID=${VAULT_APPROLE_SECRETID}
Expand Down
Loading

0 comments on commit 765f870

Please sign in to comment.