Skip to content

Commit

Permalink
Merge branch 'release/v202410.1140'
Browse files Browse the repository at this point in the history
  • Loading branch information
mpasternak committed Oct 6, 2024
2 parents 364f535 + 629364e commit 0daceba
Show file tree
Hide file tree
Showing 16 changed files with 70 additions and 54 deletions.
18 changes: 18 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,24 @@ Historia zmian

.. towncrier release notes start
Bpp 202410.1140 (2024-10-07)
============================

Naprawione
----------

- usuń błąd który nie wyświetlał nie-obcych autorów w sytuacji gdy byli przypisani do obcej jednostki + błędnej jednostki (ale mieli dodatkowe przypisania, właściwe dla uczelni) w sytuacji wyłączonej opcji "pokazuj obcych autorów w przeglądaniu danych" (#1445)
- podpowiadaj dyscyplinę dla wpisywania autorów przez "zakładkę" (powyżej 25 autorów)
- szybsze generowanie XLSa w raport slotów - ewaluacja


Usprawnienie
------------

- maksymalny rok dla PBN ustawiony na 2025 (#1409)
- wyswietlaj ID systemu kadrowego w raport slotów - uczelnia (#1412)


Bpp 202410.1138 (2024-10-02)
============================

Expand Down
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,13 @@ loc: clean
pygount -N ... -F "...,staticroot,migrations,fixtures" src --format=summary


DOCKER_VERSION="202410.1139"
DOCKER_BUILD=build --platform linux/amd64,linux/arm64 --push
DOCKER_VERSION="202410.1140"

# Kiedyś było tak: 2 platformy + --push
# DOCKER_BUILD=build --platform linux/amd64,linux/arm64 --push

# Teraz jest Docker BuildCloud, budujemy lokalnie bez push
DOCKER_BUILD=build --platform linux/arm64

build-dbserver:
docker buildx ${DOCKER_BUILD} -t iplweb/bpp_dbserver:${DOCKER_VERSION} -t iplweb/bpp_dbserver:latest -f deploy/dbserver/Dockerfile deploy/dbserver/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bpp-iplweb",
"version": "v202410.1139",
"version": "v202410.1140",
"license": "MIT",
"devDependencies": {
"grunt": ">=1.6.1",
Expand Down
54 changes: 27 additions & 27 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "bpp_iplweb"
version = "202410.1139"
version = "202410.1140"
description = ""
authors = ["Michał Pasternak <michal.dtz@gmail.com>"]
license = "MIT"
Expand Down Expand Up @@ -113,7 +113,7 @@ pytest-rerunfailures = "^14.0"
django-debug-toolbar = "^4.4.6"

[tool.bumpver]
current_version = "v202410.1139"
current_version = "v202410.1140"
version_pattern = "vYYYY0M.BUILD[-TAGNUM][GITHASH]"
commit_message = "bump version {old_version} -> {new_version}"
commit = true
Expand Down Expand Up @@ -144,7 +144,6 @@ channels = { version = "~4", extras = ["daphne"] }
uvicorn = { version = "0.18.2", extras = ["standard"] }
channels-redis = "~4"
django-flexible-reports = ">0.2.9"
psycopg2 = "2.9.5"
django-group-by = "0.3.1"
django-columns = "0.1.0"
tablib = "3.5.0"
Expand Down Expand Up @@ -205,7 +204,7 @@ pymed-iplweb = "0.8.10"
django-taggit = "4.0.0"
weasyprint = "55.0"
requests-oauthlib = "1.3.0"
django-cacheops = "6.1"
django-cacheops = "7.0.2"
djangoql = "0.17.1"
django-weasyprint = "^2.1.0"
django-templated-email = "^3.0.0"
Expand All @@ -222,6 +221,7 @@ django-tinymce = "^3.6.1"
crispy-bootstrap5 = "^0.7"
crispy-bootstrap3 = "^2022.1"
twisted = {extras = ["http2", "tls"], version = "^24.3.0"}
psycopg = "^3.2.3"

[tool.poetry.dev-dependencies]
model-bakery = ">=1.5.1"
Expand Down Expand Up @@ -265,7 +265,7 @@ build-backend = "poetry.core.masonry.api"

[tool.towncrier]
package = "bpp"
version = "202410.1139"
version = "202410.1140"
package_dir = "src"
filename = "HISTORY.rst"

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def requirements(fn="requirements.txt"):

setup(
name="bpp-iplweb",
version="202410.1139",
version="202410.1140",
description="System informatyczny do zarządzania bibliografią publikacji pracowników naukowych",
long_description=readme,
long_description_content_type="text/x-rst",
Expand Down
2 changes: 0 additions & 2 deletions src/bpp/newsfragments/+faa6dfa4.bugfix.rst

This file was deleted.

2 changes: 0 additions & 2 deletions src/bpp/newsfragments/1409.feature.rst

This file was deleted.

2 changes: 0 additions & 2 deletions src/bpp/newsfragments/1412.feature.rst

This file was deleted.

2 changes: 0 additions & 2 deletions src/bpp/newsfragments/1445.bugfix.rst

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from datetime import date, datetime, timedelta

import pytest
from django.db.utils import IntegrityError, InternalError
from django.db import IntegrityError, OperationalError
from model_bakery import baker

from bpp.models.autor import Autor_Jednostka
Expand All @@ -13,7 +13,7 @@ def test_autor_jednostka_trigger_nie_mozna_zmienic_id_autora(
):
aj = baker.make(Autor_Jednostka, autor=autor_jan_kowalski, jednostka=jednostka)
aj.autor = autor_jan_nowak
with pytest.raises(InternalError):
with pytest.raises(OperationalError):
aj.save()


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

import pytest
from django.core.exceptions import ValidationError
from django.db.utils import IntegrityError, InternalError
from django.db import OperationalError
from django.db.utils import IntegrityError
from model_bakery import baker

from bpp.models.struktura import Jednostka, Jednostka_Wydzial, Uczelnia, Wydzial
Expand Down Expand Up @@ -49,7 +50,7 @@ def test_jednostka_before_insert():
w1 = baker.make(Wydzial, uczelnia=u1)
w2 = baker.make(Wydzial, uczelnia=u2)

with pytest.raises(InternalError):
with pytest.raises(OperationalError):
j = baker.make(Jednostka, uczelnia=u2, wydzial=w1)

j = baker.make(Jednostka, uczelnia=u2, wydzial=w2)
Expand All @@ -73,7 +74,7 @@ def test_jednostka_wydzial_before_insert():
assert j1.wydzial is None

jw = Jednostka_Wydzial(jednostka=j1, wydzial=w2)
with pytest.raises(InternalError):
with pytest.raises(OperationalError):
jw.save()

jw = Jednostka_Wydzial.objects.create(jednostka=j1, wydzial=w1)
Expand Down Expand Up @@ -144,7 +145,7 @@ def test_jednostka_wydzial_time_trigger_delete_1():

jw1.jednostka = j2

with pytest.raises(InternalError):
with pytest.raises(OperationalError):
jw1.save()

for elem in u1, w1, j1, j2, jw1:
Expand Down
2 changes: 1 addition & 1 deletion src/django_bpp/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ def autoslug_gen():

DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql_psycopg2",
"ENGINE": "django.db.backends.postgresql",
"NAME": env("DJANGO_BPP_DB_NAME"),
"USER": env("DJANGO_BPP_DB_USER"),
"PASSWORD": env("DJANGO_BPP_DB_PASSWORD"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% block object-tools %}
{% if rok %}
<input type="hidden" name="rok" value="{{ rok }}"/>
<input type="hidden" name="rok" value="{{ rok }}" id="id_rok"/>
{% endif %}
{{ block.super }}
{% endblock %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% block object-tools %}
{% if rok %}
<input type="hidden" name="rok" value="{{ rok }}"/>
<input type="hidden" name="rok" value="{{ rok }}" id="id_rok"/>
{% endif %}
{{ block.super }}
{% endblock %}
Expand Down
2 changes: 1 addition & 1 deletion src/django_bpp/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = "202410.1139"
VERSION = "202410.1140"

if __name__ == "__main__":
import sys
Expand Down

0 comments on commit 0daceba

Please sign in to comment.