Bug/minor fixes (#762)

* Set web concurrency to 1

* bump versions

* update release notes

Co-authored-by: Hayden <hay-kot@pm.me>
This commit is contained in:
Hayden 2021-10-30 12:13:54 -08:00 committed by GitHub
parent b6d43e8e3d
commit de5bea6f73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 18109 additions and 27 deletions

View File

@ -0,0 +1,32 @@
import json
import requests
from pydantic import BaseModel
class GithubIssue(BaseModel):
url: str
number: int
title: str
def get_issues_by_label(label="fixed-pending-release") -> list[GithubIssue]:
issues_url = f"https://api.github.com/repos/hay-kot/mealie/issues?labels={label}"
response = requests.get(issues_url)
issues = json.loads(response.text)
return [GithubIssue(**issue) for issue in issues]
def format_markdown_list(issues: list[GithubIssue]) -> str:
return "\n".join(f"- [{issue.number}]({issue.url}) - {issue.title}" for issue in issues)
def main() -> None:
issues = get_issues_by_label()
print(format_markdown_list(issues))
if __name__ == "__main__":
main()

View File

@ -20,7 +20,7 @@ services:
POSTGRES_DB: mealie
# WORKERS_PER_CORE: 0.5
# MAX_WORKERS: 8
WEB_CONCURRENCY: 2
# WEB_CONCURRENCY: 2
postgres:
container_name: postgres
image: postgres

View File

@ -0,0 +1,31 @@
# v0.5.3 - Bug Fixes
**App Version: v0.5.3**
**Database Version: v0.5.0**
## Breaking Changes
!!! error "Breaking Changes"
#### None
## Bug Fixes
- [755](https://api.github.com/repos/hay-kot/mealie/issues/755) - Mealie Categories Not Displaying Until After Settings Opened
- [748](https://api.github.com/repos/hay-kot/mealie/issues/748) - categories - Internal Server Error
- [689](https://api.github.com/repos/hay-kot/mealie/issues/689) - Importing a recipe with time information
- [671](https://api.github.com/repos/hay-kot/mealie/issues/671) - Localization not loading on upgrade to v0.5.2
- [655](https://api.github.com/repos/hay-kot/mealie/issues/655) - Clicking on "tags" on a mobile phone doesn't work (Wrong link, "Internal server error")
- [654](https://api.github.com/repos/hay-kot/mealie/issues/654) - Ram Usage
- Fixed Missing minus in shopping list UI [688](https://github.com/hay-kot/mealie/pull/688)
## Features and Improvements
### General
- Recipe Images are no clickable [678](https://github.com/hay-kot/mealie/pull/678)
- Additional Translations
- Improved Recipe Parser thanks to [@cadamswaite](https://github.com/hay-kot/mealie/pulls?q=is%3Apr+author%3Acadamswaite)
- URL Scraper will now choose the best image from the list provided by the site
- Fixed the debugger to provide more meaningful data
- Fix issues parsing time formats
- Added support for parsing scraped nutrition details

View File

@ -54,7 +54,7 @@ services:
RECIPE_DISABLE_AMOUNT: 'false'
# Gunicorn
WEB_CONCURRENCY: 2
# WEB_CONCURRENCY: 2
# WORKERS_PER_CORE: 0.5
# MAX_WORKERS: 8
volumes:
@ -98,7 +98,7 @@ services:
RECIPE_DISABLE_AMOUNT: 'false'
# Gunicorn
WEB_CONCURRENCY: 2
# WEB_CONCURRENCY: 2
# WORKERS_PER_CORE: 0.5
# MAX_WORKERS: 8
volumes:

View File

@ -94,6 +94,7 @@ nav:
- Style Guide: "contributors/developers-guide/style-guide.md"
- Development Road Map: "roadmap.md"
- Change Log:
- v0.5.3 - Bug Fixes: "changelog/v0.5.3.md"
- v0.5.2 Misc Updates: "changelog/v0.5.2.md"
- v0.5.1 Bug Fixes: "changelog/v0.5.1.md"
- v0.5.0 General Upgrades: "changelog/v0.5.0.md"

18058
frontend/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,7 @@
<v-main>
<v-banner v-if="demo" sticky>
<div class="text-center">
<b> This is a Demo of the v0.5.0 (BETA) </b> | Username: changeme@email.com | Password: demo
<b> This is a Demo of the v0.5.4 (BETA) </b> | Username: changeme@email.com | Password: demo
</div>
</v-banner>
<GlobalSnackbar />

View File

@ -21,8 +21,8 @@ class GunicornConfig:
self.timeout = int(os.getenv("TIMEOUT", "120"))
self.keepalive = int(os.getenv("KEEP_ALIVE", "5"))
self.workers_per_core = float(os.getenv("WORKERS_PER_CORE", "1"))
self.web_concurrency_str: str = os.getenv("WEB_CONCURRENCY", None)
self.max_workers_str: str = os.getenv("MAX_WORKERS", None)
self.web_concurrency_str: str = os.getenv("WEB_CONCURRENCY", "1")
self.max_workers_str: str = os.getenv("MAX_WORKERS", "1")
# Computed Variables
self.cores = multiprocessing.cpu_count()

View File

@ -6,7 +6,7 @@ from typing import Any, Optional, Union
import dotenv
from pydantic import BaseSettings, Field, PostgresDsn, validator
APP_VERSION = "v0.5.2"
APP_VERSION = "v0.5.3"
DB_VERSION = "v0.5.0"
CWD = Path(__file__).parent