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

[TODO] Undo fix once dev has offboarded #677

Open
2 tasks
acatchpole opened this issue Aug 13, 2024 · 0 comments
Open
2 tasks

[TODO] Undo fix once dev has offboarded #677

acatchpole opened this issue Aug 13, 2024 · 0 comments
Labels

Comments

@acatchpole
Copy link
Contributor

Describe the task

Remove the following code from Startup.cs :
builder.AddJsonFile("secrets.json", optional: true, reloadOnChange: true);
It should be around line 49, inside the if (env.IsDevelopment()) statement.

Purpose
This code was added to address an issue that was only experienced by one dev (acatchpole). This fix was not known to be required for running this application anywhere other than that one dev's local machine. Once that dev has offboarded from Sustainment, this change should be undone as it is no longer needed.

Acceptance Criteria

  • The code statement has been removed
  • The issue described in initial context does not exist for any other team member

Additional context

  • This was added because for one dev, the Connection String in secrets.json was no longer being loaded into the Configuration Object. Then, when the first database operation is attempted ( context.Database.Migrate(); ), the app crashes with the error "Host can't be null". It is unknown why this issue started and why doing everything short of reformatting the computer did not fix this issue, given it works for everyone else and WAS working for the dev.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant