microsoft / microsoft/fhir-server
schema manager update tool available command no longer works
Nobody has claimed this yet.
- Dominant language
- TSQL
- Stars
- 1.4k
- Forks
- 592
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 41
Description
Describe the bug
The schema-manager tool fails with the available command.
We run our FHIR Server using the OSS container in Azure App Service and use the schema manager dotnet tool to upgrade the schema when necessary. I just updated the schema tool to the latest version (it had been a long time since doing this) and now I get a variety of errors when running the available command.
For example, schema-manager available -s https://ourfhirserverurl returns an error
Unhandled exception. System.ArgumentNullException: The SQL connection string cannot be null or white space.
If however I add the the --connection-string parameter I then get errors
Unrecognized command or argument '--connection-string'
Unrecognized command or argument (myconnection string)
FHIR Version?
R4
Data provider?
SQL Server
To Reproduce
Steps to reproduce the behavior:
See above
Expected behavior
Show the available schemas for the fhir server
Actual behavior
A range of error messages requiring connection strings but not allowing them to be set
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the schema-manager available command and reproduce it against the R4 FHIR Server using SQL Server, first without and then with the reported --connection-string argument. Trace how the command obtains its SQL connection string and parses arguments. Done means available shows the server's available schemas without the null-connection error or rejecting the connection-string option.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, sql
- Domain
- cli, cloud, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100