Skip to content

Commit

Permalink
2.2.0
Browse files Browse the repository at this point in the history
##### Changelog:
* Feature: Create plugins system which allows to execute custom command from Polemarch.
* Fix: Fix FK inventory field showing id instead of name (vstutils>=5.2.0).
* Fix: Add patch to `setup.py` which raises compile error if frontend hasn't built.
* Refactor: Use `BaseEnum.LOWER` in enums.
* Refactor: `test_community_templates` now uses `MockServer` and doesn't make calls outside.
* Refactor: Get rid of weird template execution approach with test client and use PLUGIN_HANDLERS instead.
* Chore: Update vstutils to 5.1.11.
* Chore: Add `openssh-client` dependency to production docker build.

See merge request polemarch/ce!284
  • Loading branch information
onegreyonewhite committed Dec 5, 2022
2 parents edd4d27 + 7e38b80 commit a855402
Show file tree
Hide file tree
Showing 46 changed files with 1,630 additions and 830 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ release_pypi:
variables:
TOX_ARGS: ""
script:
- tox -c tox_build.ini $TOX_ARGS -e py37-build,py37-wheel
- tox -c tox_build.ini $TOX_ARGS
- twine upload -u ${PYPI_UPLOAD_NAME} -p ${PYPI_UPLOAD_PASSWORD} $(find dist/*.{tar.gz,whl})
artifacts:
name: "release-packages-${CI_BUILD_REF_NAME}.${CI_BUILD_ID}"
Expand Down
19 changes: 10 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,16 @@ RUN --mount=type=cache,target=/var/cache/apt \
--mount=type=bind,from=build,source=/usr/local/polemarch/,target=/polemarch_env \
apt update && \
apt -y install --no-install-recommends \
git \
sudo \
sshpass \
libmysqlclient21 \
libpcre3 \
libldap-2.4-2 \
libsasl2-2 \
libffi7 \
libssl1.1 && \
git \
sudo \
sshpass \
libmysqlclient21 \
libpcre3 \
libldap-2.4-2 \
libsasl2-2 \
libffi7 \
libssl1.1 \
openssh-client && \
python3.8 -m pip install cryptography paramiko 'pip<22' && \
ln -s /usr/bin/python3.8 /usr/bin/python && \
mkdir -p /projects /hooks /run/openldap /etc/polemarch/hooks /var/lib/polemarch && \
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include polemarch/web.ini setup.cfg
include README.rst LICENSE LICENSE_NAME
include polemarch/main/settings.ini
include polemarch/settings.ini
include requirements.txt
include requirements-git.txt
include requirements-test.txt
Expand Down
2 changes: 1 addition & 1 deletion doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ In Polemarch we have some entities that can be nested to another entities. Below
**User** can be nested into **Team**


For add entities into another, you only need send ``[{"id": [instance_id]}, ...]`` to subpath. Also you can insert instead of data results of bulk request, inner mechanism add all entities in result to parent entity.
To add entities into another, you only need send ``[{"id": [instance_id]}, ...]`` to subpath. Also you can insert instead of data results of bulk request, inner mechanism add all entities in result to parent entity.

.. vst_openapi:: ./api_schema.yaml
Loading

0 comments on commit a855402

Please sign in to comment.