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

models: break up the dependency between the user and the payload #1067

Conversation

goneri
Copy link
Contributor

@goneri goneri commented May 27, 2024

Pass the request object as the first infer() parameter and remove the
user related information from the payload.

@goneri goneri force-pushed the goneri/models-break-up-the-dependency-between-the-user-and-the-payload_27317 branch from a9d5503 to 3e4d2bf Compare May 27, 2024 19:52
manstis
manstis previously approved these changes May 28, 2024
Copy link
Contributor

@manstis manstis left a comment

Choose a reason for hiding this comment

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

A couple of minor comments; otherwise LGTM 👍

ansible_wisdom/ai/api/tests/test_views.py Outdated Show resolved Hide resolved
ansible_wisdom/ai/api/tests/test_views.py Outdated Show resolved Hide resolved
@goneri goneri force-pushed the goneri/models-break-up-the-dependency-between-the-user-and-the-payload_27317 branch from 3e4d2bf to ada71cc Compare May 28, 2024 22:18
manstis
manstis previously approved these changes May 30, 2024
Copy link
Contributor

@manstis manstis left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Pass the `request` object as the first `infer()` parameter and remove the
user related information from the payload.
@goneri goneri force-pushed the goneri/models-break-up-the-dependency-between-the-user-and-the-payload_27317 branch from ada71cc to 577237b Compare June 3, 2024 18:16
@goneri goneri requested a review from manstis June 3, 2024 18:16
@goneri
Copy link
Contributor Author

goneri commented Jun 3, 2024

That was just a (self inflicted) rebased.

Copy link
Contributor

@manstis manstis left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@goneri goneri merged commit 615dec7 into main Jun 3, 2024
8 checks passed
@goneri goneri deleted the goneri/models-break-up-the-dependency-between-the-user-and-the-payload_27317 branch June 3, 2024 20:38
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.

3 participants