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

[Jormungandr] Fix failure of caching instances list #3943

Merged
merged 2 commits into from
Feb 22, 2023

Conversation

xlqian
Copy link
Member

@xlqian xlqian commented Feb 22, 2023

Branch based on v15.26.7

Flask-caching was not able to pickle a list a ORM obj T_T, https://github.com/hove-io/navitia/pull/3926/files#diff-cc347701ac573ba458d0543b788c67d7e83be259f7ae5fe0c095aed939880090R366

so instead of returning a list of ORM, we return a list of name...

@xlqian xlqian requested a review from pbench February 22, 2023 08:40
@xlqian xlqian marked this pull request as ready for review February 22, 2023 08:40
@xlqian
Copy link
Member Author

xlqian commented Feb 22, 2023

A new hotfix v15.26.8 will be made from this branch

@xlqian xlqian requested review from kadhikari and azime February 22, 2023 08:47
@xlqian xlqian changed the title Fix failure of caching instances list [Jormungandr] Fix failure of caching instances list Feb 22, 2023
@pbench
Copy link
Contributor

pbench commented Feb 22, 2023

This is strange that the ORM objects cannot be pickled.
We already do this in

def get_all_available_instances(user, exclude_backend=None):
🤔

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@xlqian
Copy link
Member Author

xlqian commented Feb 22, 2023

@pbench

hey, you are right... I confirm that this function has the same problem indeed

@xlqian xlqian merged commit 5f9bbcb into dev Feb 22, 2023
@xlqian xlqian deleted the fix_failure_of_caching_instances_list branch February 22, 2023 12:49
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.

4 participants