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

MG-28 - Align Bootstrap with SuperMQ #31

Merged
merged 8 commits into from
Jan 10, 2025
Merged

MG-28 - Align Bootstrap with SuperMQ #31

merged 8 commits into from
Jan 10, 2025

Conversation

felixgateru
Copy link
Contributor

@felixgateru felixgateru commented Jan 8, 2025

What type of PR is this?

This is a refactor as it aligns bootstrap with the new architecture implemented in superMQ.

What does this do?

This pr modifies the following files:

  • bootstrap/middleware/authorization.go - updates authorization
  • cmd/bootstrap/main.go - adds channels and domains configuration
  • docker/docker-compose.yml - updates to deployment
    and requisite changes for deployment

and adds the following:

  • pkg/sdk - adds bootstrap sdk

Which issue(s) does this PR fix/relate to?

Have you included tests for your changes?

No, code is covered by tests.

Did you document any new/modified feature?

No

Notes

None

Copy link

codecov bot commented Jan 8, 2025

Codecov Report

Attention: Patch coverage is 20.00000% with 16 lines in your changes missing coverage. Please review.

Project coverage is 51.81%. Comparing base (3ee7b13) to head (c3897f4).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
provision/service.go 15.38% 11 Missing ⚠️
bootstrap/middleware/authorization.go 0.00% 5 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main      #31       +/-   ##
===========================================
+ Coverage   40.45%   51.81%   +11.35%     
===========================================
  Files          69       39       -30     
  Lines        6451     4113     -2338     
===========================================
- Hits         2610     2131      -479     
+ Misses       3555     1731     -1824     
+ Partials      286      251       -35     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@felixgateru felixgateru marked this pull request as ready for review January 9, 2025 06:23
docker/nginx/entrypoint.sh Outdated Show resolved Hide resolved
docker/addons/bootstrap/docker-compose.yml Outdated Show resolved Hide resolved
// SDK contains SuperMQ API.
//
//go:generate mockery --name SDK --output=./mocks --filename sdk.go --quiet --note "Copyright (c) Abstract Machines"
type SDK interface {
Copy link
Contributor

Choose a reason for hiding this comment

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

MG SDK should include SMQ SDK so you can combine MG features and SMQ features using a single tool.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I cannot complete this change before the methods are removed from the SDK interface in supermq

Copy link
Contributor

Choose a reason for hiding this comment

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

You mean until they are removed from SMQ SDK due to name conflict?

Copy link
Contributor

@dborovcanin dborovcanin left a comment

Choose a reason for hiding this comment

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

@felixgateru We also need MG CLI that uses both MG and SMQ SDKs.

@dborovcanin dborovcanin merged commit ec71a5e into main Jan 10, 2025
4 of 5 checks passed
@dborovcanin dborovcanin deleted the mg28-bootstrap branch January 10, 2025 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Align Bootstrap with SuperMQ
2 participants