-
Notifications
You must be signed in to change notification settings - Fork 21
Move errata record creation in dramatiq task #1042
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
Conversation
cfaef03 to
204f1c4
Compare
Korulag
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix tests
7bcd132 to
25510db
Compare
3856279 to
f999ba1
Compare
anfimovdm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, please fix the following warnings from the pylint report:
alws/routers/errata.py:1:0: R0401: Cyclic import (alws.dramatiq -> alws.dramatiq.errata) (cyclic-import)
alws/dramatiq/errata.py:22:0: W0311: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)
f999ba1 to
bbb296d
Compare
bbb296d to
4f22a8e
Compare
tests/test_api/test_errata.py
Outdated
|
|
||
| import pytest | ||
|
|
||
| from alws.dramatiq.errata import create_new_errata |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this import really required here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, not anymore
4f22a8e to
f0a4f1b
Compare
dd97401 to
06ca5e5
Compare
anfimovdm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the following warnings from pylint:
************* Module alws.dramatiq.errata
alws/dramatiq/errata.py:22:0: W0311: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)
************* Module alws.schemas.errata_schema
alws/schemas/errata_schema.py:1:0: R0401: Cyclic import (alws.dramatiq -> alws.dramatiq.errata) (cyclic-import)
68323d0 to
db2ef95
Compare
|
@anfimovdm I'm not really sure how this warning can be fixed: Is far as I can understand, we have a cyclic import due to importing functions from |
|
@Kwaizer please create an issue for fixing cyclic imports in our code |
db2ef95 to
f0a7492
Compare
f0a7492 to
af9f319
Compare
af9f319 to
8a32544
Compare
Resolves: AlmaLinux/build-system#318
create_errata_recordandcreate_new_errata_recordto dramatiq task