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

[T-CAIREM 1243] Hotfix issue with boolean conversion and use string comparison instead #2325

Merged

Conversation

matkaczmarek
Copy link
Contributor

Unfortunately enable_orcid_login variable is passed as string and therefore it is evaluated to true showing orcid log in all the time.

@matkaczmarek matkaczmarek changed the title [T-CAIREM 1243] Hotfix issue with boolean conversion and use string comparation instead [T-CAIREM 1243] Hotfix issue with boolean conversion and use string comparison instead Jan 14, 2025
Copy link
Collaborator

@bemoody bemoody left a comment

Choose a reason for hiding this comment

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

No, this is not right. The templates were correct, it is base.py that is wrong. The variable ORCID_LOGIN_ENABLED must be defined as a boolean value, not as a string.

@matkaczmarek matkaczmarek force-pushed the fix/issue_with_boolean_conversion_orcid branch from 6879e30 to e0e2c18 Compare January 15, 2025 09:47
@matkaczmarek matkaczmarek requested a review from bemoody January 15, 2025 09:47
@matkaczmarek
Copy link
Contributor Author

No, this is not right. The templates were correct, it is base.py that is wrong. The variable ORCID_LOGIN_ENABLED must be defined as a boolean value, not as a string.

Good catch, I casted env variable to bool and it works this time. Thanks for this tip.

@bemoody bemoody merged commit 66b0b35 into MIT-LCP:dev Jan 15, 2025
8 checks passed
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.

2 participants