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

disable pulpcore analytics #65

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

archanaserver
Copy link
Collaborator

@archanaserver archanaserver commented Jan 7, 2025

Fixes #58

@archanaserver archanaserver marked this pull request as draft January 7, 2025 05:18
@archanaserver archanaserver force-pushed the disable-pulpcore-analytics branch from 0c691b8 to 88b37f7 Compare January 7, 2025 05:22
@archanaserver archanaserver marked this pull request as ready for review January 7, 2025 07:36
@archanaserver
Copy link
Collaborator Author

Can anyone help with, how can I ensure here that the setting I'm trying to make is updated in our setting.py file? Any thoughts? Also does it require any other config update?

@@ -17,3 +17,4 @@ DATABASES = {
AUTHENTICATION_BACKENDS=['pulpcore.app.authentication.PulpNoCreateRemoteUserBackend']
REMOTE_USER_ENVIRON_NAME="HTTP_REMOTE_USER"
REST_FRAMEWORK__DEFAULT_AUTHENTICATION_CLASSES=('rest_framework.authentication.SessionAuthentication', 'pulpcore.app.authentication.PulpRemoteUserAuthentication')
ENABLE_ANALYTICS = {{ pulp_enable_analytics | default(false) }}
Copy link
Member

Choose a reason for hiding this comment

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

Without looking too closely, I think this ends up as true or false but Python uses True and False

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've updated it to explicitly cast the value as a boolean using | bool, ensuring it correctly translates to True or False.

@ekohl ekohl linked an issue Jan 9, 2025 that may be closed by this pull request
@ekohl
Copy link
Member

ekohl commented Jan 9, 2025

#58

If you use Fixes #58 it will automatically link up the issue and close it when this is merged.

@archanaserver
Copy link
Collaborator Author

@ekohl @ehelms can you help me understand what is this ansible lint failure here?
https://github.com/theforeman/foreman-quadlet/actions/runs/13130019605/job/36633198924?pr=65

@ehelms
Copy link
Member

ehelms commented Feb 4, 2025

Trying to fix that over here -- #74

@archanaserver archanaserver force-pushed the disable-pulpcore-analytics branch from 435d243 to f30d2fc Compare February 5, 2025 08:04
@@ -17,3 +17,4 @@ DATABASES = {
AUTHENTICATION_BACKENDS=['pulpcore.app.authentication.PulpNoCreateRemoteUserBackend']
REMOTE_USER_ENVIRON_NAME="HTTP_REMOTE_USER"
REST_FRAMEWORK__DEFAULT_AUTHENTICATION_CLASSES=('rest_framework.authentication.SessionAuthentication', 'pulpcore.app.authentication.PulpRemoteUserAuthentication')
ENABLE_ANALYTICS = {{ pulp_enable_analytics | default(false) | bool | ternary('True', 'False') }}
Copy link
Member

Choose a reason for hiding this comment

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

@ehelms
Copy link
Member

ehelms commented Feb 7, 2025

Also, I am not sure why the tests are failing right now. This appears unrelated to your change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

Disable pulpcore analytics
3 participants