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

current user refresh #115

Merged

Conversation

Alzpeta
Copy link
Contributor

@Alzpeta Alzpeta commented Dec 5, 2023

No description provided.

@Alzpeta Alzpeta requested review from mirekys and removed request for mirekys December 5, 2023 12:33
@Alzpeta Alzpeta marked this pull request as draft December 5, 2023 14:27
@Alzpeta Alzpeta marked this pull request as ready for review December 6, 2023 13:36
@Alzpeta Alzpeta requested a review from mesemus December 6, 2023 13:36
@mesemus mesemus force-pushed the alzbetapokorna/be-193-fix-current_user-not-in-sync-on-first-build branch from 47fa116 to 046cf15 Compare December 16, 2023 09:12
Copy link
Contributor

@mesemus mesemus left a comment

Choose a reason for hiding this comment

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

Please see the comment in catalog.py

def __init__(self):
super().__init__()
self.jinja_env.undefined = jinja2.Undefined
def __init__(
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have to overwrite the constructor? It seems that the only line modified is 51 and that is done to pass the current_app.

The app is used on 101:
if name in self.jinja_env.app.template_context_processors

can it be changed to if name in current_app.template_context_processors ?

Also, we need tests for this functionality (register test blueprint with context processor and make sure it gets called)

tests/conftest.py Dismissed Show dismissed Hide dismissed
tests/conftest.py Dismissed Show dismissed Hide dismissed
tests/conftest.py Dismissed Show dismissed Hide dismissed
@Alzpeta Alzpeta requested a review from mesemus January 12, 2024 13:04
Copy link

sonarcloud bot commented Jan 12, 2024

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

1 New issue
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@Alzpeta Alzpeta merged commit 355f7f7 into main Jan 12, 2024
4 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.

None yet

2 participants