Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
d1a6209
ISSUE #149
vladyslav-fenchak Feb 28, 2022
05f92c6
ISSUE #149
vladyslav-fenchak Mar 3, 2022
e9036e3
ISSUE #149
vladyslav-fenchak Mar 3, 2022
2aa561d
Restyled by black
restyled-commits Mar 3, 2022
67b40a9
Restyled by isort
restyled-commits Mar 3, 2022
5de7e8d
Merge pull request #268 from minos-framework/restyled/issue-149-creat…
vladyslav-fenchak Mar 3, 2022
cbd81ba
ISSUE #149
vladyslav-fenchak Mar 4, 2022
5e6c21c
ISSUE #149
vladyslav-fenchak Mar 8, 2022
8f29663
ISSUE #149
vladyslav-fenchak Mar 8, 2022
bedc997
ISSUE #149
vladyslav-fenchak Mar 11, 2022
2c47684
Merge remote-tracking branch 'origin/issue-209-abstract-rest-componen…
Mar 11, 2022
f35543e
ISSUE #149
Mar 11, 2022
26d5929
ISSUE #149
Mar 11, 2022
873b5c8
ISSUE #149
Mar 11, 2022
2216e19
ISSUE #149
Mar 11, 2022
9e74917
ISSUE #149
Mar 11, 2022
0687c2e
ISSUE #149
Mar 11, 2022
bb32bbd
ISSUE #149
vladyslav-fenchak Mar 14, 2022
018077c
ISSUE #149
vladyslav-fenchak Mar 14, 2022
9f52d75
ISSUE #149
vladyslav-fenchak Mar 14, 2022
88edc78
Restyled by black
restyled-commits Mar 14, 2022
a8c51a3
Restyled by isort
restyled-commits Mar 14, 2022
77fb20c
Merge pull request #289 from minos-framework/restyled/issue-149-creat…
vladyslav-fenchak Mar 14, 2022
8d66c49
ISSUE #149
vladyslav-fenchak Mar 14, 2022
e9aeea0
ISSUE #149
vladyslav-fenchak Mar 14, 2022
22915d7
ISSUE #149
vladyslav-fenchak Mar 14, 2022
3dc7e9f
ISSUE #149
Mar 15, 2022
117c084
Merge remote-tracking branch 'origin/issue-209-abstract-rest-componen…
Mar 15, 2022
fef1da3
ISSUE #149
Mar 15, 2022
d61b6b9
ISSUE #149
Mar 15, 2022
a0a86d7
ISSUE #149
Mar 15, 2022
6e9935e
Merge remote-tracking branch 'origin/issue-209-abstract-rest-componen…
Mar 15, 2022
5fd824c
ISSUE #149
Mar 15, 2022
55a0b6c
ISSUE #149
Mar 15, 2022
4d822c1
ISSUE #149
Mar 15, 2022
2b7fdb0
ISSUE #149
vladyslav-fenchak Mar 15, 2022
f395a2b
ISSUE #149
vladyslav-fenchak Mar 15, 2022
e670910
ISSUE #149
vladyslav-fenchak Mar 15, 2022
abe57eb
ISSUE #149
Mar 16, 2022
d33a557
Apply suggestions from code review
Mar 16, 2022
c0645aa
Merge remote-tracking branch 'origin/issue-209-abstract-rest-componen…
Mar 16, 2022
16ccb40
Merge remote-tracking branch 'origin/issue-209-abstract-rest-componen…
Mar 16, 2022
6d6b1ce
ISSUE #149
Mar 16, 2022
d37cb99
ISSUE #149
vladyslav-fenchak Mar 16, 2022
96013c3
Restyled by black
restyled-commits Mar 16, 2022
96ce996
Restyled by isort
restyled-commits Mar 16, 2022
6405fae
Merge pull request #296 from minos-framework/restyled/issue-149-creat…
vladyslav-fenchak Mar 16, 2022
605de86
ISSUE #149
vladyslav-fenchak Mar 16, 2022
fdb24a3
Merge commit 'fabed7bb6428c0bf1e215a6d235f058c563b3ea9' into issue-14…
Mar 17, 2022
ffa7fb8
ISSUE #149
Mar 17, 2022
dcf5a4e
ISSUE #149
Mar 17, 2022
ff07256
ISSUE #150
Mar 18, 2022
12604df
ISSUE #149
Mar 18, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/minos-router-graphql-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Publish: minos-router-graphql"

on:
push:
branches:
- '*.*.x'
paths:
- 'packages/plugins/minos-router-graphql/**'

jobs:
deploy:
runs-on: ubuntu-latest
container: python:3.9-buster
defaults:
run:
working-directory: packages/plugins/minos-router-graphql

steps:

- name: Check out repository code
uses: actions/checkout@v2

- name: Install Poetry
uses: snok/install-poetry@v1

- name: Install dependencies
run: make install

- name: Publish package
run: make release
env:
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
66 changes: 66 additions & 0 deletions .github/workflows/minos-router-graphql-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: "Test: minos-router-graphql"

on:
push:
branches:
- main
- '*.*.x'
pull_request:
paths:
- 'packages/plugins/minos-router-graphql/**'
- 'packages/core/minos-microservice-networks/**'
- 'packages/core/minos-microservice-common/**'

jobs:
build:
runs-on: ubuntu-latest
container: python:3.9-buster
defaults:
run:
working-directory: packages/plugins/minos-router-graphql

services:
postgres:
image: postgres
env:
POSTGRES_USER: minos
POSTGRES_PASSWORD: min0s
POSTGRES_DB: order_db
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

env:
MINOS_BROKER_QUEUE_HOST: postgres
MINOS_BROKER_HOST: kafka
MINOS_REPOSITORY_HOST: postgres
MINOS_SNAPSHOT_HOST: postgres

steps:
- name: Check out repository code
uses: actions/checkout@v2

- name: Install Poetry
uses: snok/install-poetry@v1

- name: Install dependencies
run: make install

- name: Lint package
run: make lint

- name: Test package with coverage
run: make coverage

- name: Publish coverage
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./packages/plugins/minos-router-graphql/coverage.xml
fail_ci_if_error: true

- name: Generate documentation
run: make docs

- name: Generate build
run: make dist
15 changes: 11 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,23 @@ repos:
files: ^packages/plugins/minos-broker-kafka/
language: system

- id: minos-discovery-minos-check
pass_filenames: false
entry: make --directory=packages/plugins/minos-discovery-minos check
name: Check minos-discovery-minos
files: ^packages/plugins/minos-discovery-minos/
language: system

- id: minos-http-aiohttp-check
pass_filenames: false
entry: make --directory=packages/plugins/minos-http-aiohttp check
name: Check minos-http-aiohttp
files: ^packages/plugins/minos-http-aiohttp/
language: system

- id: minos-discovery-minos-check
- id: minos-router-graphql-check
pass_filenames: false
entry: make --directory=packages/plugins/minos-discovery-minos check
name: Check minos-discovery-minos
files: ^packages/plugins/minos-discovery-minos/
entry: make --directory=packages/plugins/minos-router-graphql check
name: Check minos-router-graphql
files: ^packages/plugins/minos-router-graphql/
language: system
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1157,6 +1157,7 @@ The plugin packages provide connectors to external technologies like brokers, di
* [minos-broker-kafka](https://minos-framework.github.io/minos-python/packages/plugins/minos-broker-kafka): The `kafka` plugin package.
* [minos-discovery-minos](https://minos-framework.github.io/minos-python/packages/plugins/minos-discovery-minos): The `minos-discovery` plugin package.
* [minos-http-aiohttp](https://minos-framework.github.io/minos-python/packages/plugins/minos-http-aiohttp): The `aiohttp` plugin package.
* [minos-router-graphql](https://minos-framework.github.io/minos-python/packages/plugins/minos-router-graphql): The `grapqhl` plugin package.

## Source Code

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__author__ = "Minos Framework Devs"
__email__ = "hey@minos.run"
__version__ = "0.6.0"
__version__ = "0.0.0"

from .connectors import (
AioHttpConnector,
Expand Down
15 changes: 15 additions & 0 deletions packages/plugins/minos-router-graphql/AUTHORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Credits

## Development Lead

* Andrea Mucci <andrea@clariteia.com>

## Core Devs

* Sergio Garcia Prado <sergio.garcia@clariteia.com>
* Vladyslav Fenchak <vladyslav.fenchak@clariteia.com>
* Alberto Amigo Alonso <alberto.amigo@clariteia.com>

## Contributors

None yet. Why not be the first?
5 changes: 5 additions & 0 deletions packages/plugins/minos-router-graphql/HISTORY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# History

## 0.0.1 (2022-02-17)

* First release on PyPI.
21 changes: 21 additions & 0 deletions packages/plugins/minos-router-graphql/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Clariteia

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
42 changes: 42 additions & 0 deletions packages/plugins/minos-router-graphql/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
.PHONY: docs

lint:
poetry run flake8

test:
poetry run pytest

coverage:
poetry run coverage run -m pytest
poetry run coverage report -m
poetry run coverage xml

reformat:
poetry run black --line-length 120 minos tests
poetry run isort minos tests

docs:
rm -rf docs/api
poetry run $(MAKE) --directory=docs html

release:
$(MAKE) dist
poetry publish

dist:
poetry build
ls -l dist

install:
poetry install

update:
poetry update

check:
$(MAKE) install
$(MAKE) reformat
$(MAKE) lint
$(MAKE) test
$(MAKE) docs
$(MAKE) dist
Loading