Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Feature/poem migration start | NPG-0000 #538

Closed
wants to merge 42 commits into from

Conversation

stevenj
Copy link
Collaborator

@stevenj stevenj commented Aug 28, 2023

Description

This is the start of the integration of Poem as the API server.
It is done in a way to allow the existing and new API server to co-exists on different ports.
This can be maintained until all endpoints have been ported.

This is general code architecture work.

It also includes a start of a local monitoring stack, which will be improved upon in a future PR.

@stevenj stevenj changed the title Feature/poem migration start Feature/poem migration start | NPG-0000 Aug 28, 2023
@stevenj stevenj changed the title Feature/poem migration start | NPG-0000 feat: Feature/poem migration start | NPG-0000 Aug 28, 2023
Copy link
Contributor

@Mr-Leshiy Mr-Leshiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am I correct that we will move all our docker-compose files under the containers/dev-local dir and so these docker-compose files should be used also for testing purposes ?

services/voting-node/poetry.toml Outdated Show resolved Hide resolved
src/cat-data-service/Cargo.toml Outdated Show resolved Hide resolved
src/cat-data-service/src/service/api.rs Outdated Show resolved Hide resolved
@stevenj stevenj marked this pull request as draft August 28, 2023 13:15
@minikin minikin added the draft Draft label Sep 1, 2023
@stevenj stevenj added enhancement New feature or request review me PR is ready for review and removed draft Draft labels Sep 4, 2023
@stevenj stevenj requested a review from Mr-Leshiy September 5, 2023 06:32
containers/dev-local/docker-compose.yml Show resolved Hide resolved
src/cat-data-service/src/axum_service/mod.rs Outdated Show resolved Hide resolved
src/cat-data-service/src/service/generic/mod.rs Outdated Show resolved Hide resolved
@stevenj
Copy link
Collaborator Author

stevenj commented Sep 7, 2023

The last code I pushed got both the logging and prometheus metrics working properly and properly tagged.
There are more metrics I could add, and some I would like but are non trivial like the request and response sizes.
But the current set are completely usable and probably sufficient for 90+% of all use cases.

@stevenj stevenj added the do not merge yet PR is not ready to be merged yet label Sep 14, 2023
Mr-Leshiy and others added 2 commits September 19, 2023 15:43
)

# Description

- Added `registration/voter` endpoint implementation for poem service
- Made small refactoring

## Type of change

Please delete options that are not relevant.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [X] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

## How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce.
Please also list any relevant details for your test configuration

- [x] voter_test

---------

Co-authored-by: Steven Johnson <[email protected]>
# Description

Allow `cat-data-service` to run without connection to DB, logging errors
and having a configurable Retry-After header of a 503 response code.

All endpoints attempt to get a connection if none is available.

## Type of change

Please delete options that are not relevant.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update


## Checklist

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [x] Any dependent changes have been merged and published in downstream
modules

---------

Co-authored-by: Alex Pozhylenkov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do not merge yet PR is not ready to be merged yet enhancement New feature or request review me PR is ready for review
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants