-
Couldn't load subscription status.
- Fork 2
Upgrade app #25
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
Upgrade app #25
Conversation
verdie-g commented Feb 18, 2024
- ASP.NET Core 3.1 -> 8.0
- JsonApiDotNetcore 4.2.0-beta -> 5.5.1
- Npgsql 3.1.11 -> 8.0.2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for looking into this! This repo was updated long ago, by a former colleague. I'm very unfamiliar with how it all works.
| Trying to run this in git-bash on Windows, I'm seeing the following happen: The sleep doesn't seem to work. Then the app crashes at startup because the db isn't up yet. Are you getting this too? I'm seeing odd quotes in: I'm wondering if this could be related to line-ending settings? Are you getting the same? Am I doing something wrong? |
| Hmm no idea. I should try on Windows. But actually I've been playing with that project a little and there are three main things that could be improved:
I think I'll make a proposal after I'm done working on OpenAPI. |
| Hmm okay I got the error |
Nope. It needs the db to be available at startup, otherwise seed data isn't inserted. |
| Yes I meant that's probably why it's crashing, there is nothing preventing the app to start before the db. |
| I've added some code that waits for the db to be up. |
| Thanks, that should help. How do I run the orchestration on Windows, using WSL or something? There are a few more things you can do to update the app to the latest bits:
|
| As we're on .NET 8 now, should use DbContext pooling, possibly with DbDataSource, needs investigation, there are bugs... |
| I'll make a proposal some day to integrate a tool like that in the main repo. |
| From my point of view, there's value in pursuing this PR. See json-api-dotnet/JsonApiDotNetCore#1472 (comment). |