Skip to content

edit README.md#92

Merged
havok2063 merged 13 commits into
mainfrom
readme
May 23, 2026
Merged

edit README.md#92
havok2063 merged 13 commits into
mainfrom
readme

Conversation

@astronomygupta
Copy link
Copy Markdown
Contributor

No description provided.

@astronomygupta astronomygupta requested a review from havok2063 as a code owner May 17, 2026 13:14
Copy link
Copy Markdown
Contributor

@havok2063 havok2063 left a comment

Choose a reason for hiding this comment

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

Thanks for this! I've made some suggestions and comments in places to be addressed.

Comment thread README.md Outdated
Comment on lines +19 to +25
### fastapi and uvicorn Install
As noted above, valis uses fastapi. So first install fastapi and uvicorn. See the [fastapi tutorial](https://fastapi.tiangolo.com/tutorial/) for an introduction to fastapi.
```
pip install "fastapi[standard]"
pip install "uvicorn[standard]"
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You don't need this section. These dependencies are installed automatically.

Comment thread README.md Outdated
pip install "uvicorn[standard]"
```

### valis Developer Install
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This can be renamed back to "Developer Install"

Comment thread README.md Outdated
```
git clone https://github.com/sdss/valis valis
cd valis
uv pip install
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should be

Suggested change
uv pip install
uv sync --python 3.12

Comment thread README.md Outdated
```
git clone git@github.com:sdss/datamodel.git
cd datamodel
pip install -e ".[test]"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since this project uses uv venvs, this should be

Suggested change
pip install -e ".[test]"
uv pip install -e /your/path/to/sdss/datamodel/

Replace with your full path to the cloned datamodel project.

Comment thread README.md
Comment on lines -50 to -51
### Local Development

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please move this section back to where it was.

Comment thread README.md Outdated
```

Alternatively, if you don't want to edit your .pgpass file then set the VALIS_DB_PASS environment variable with your database password. See step 4.
If for some reason, you do not want to edit your .pgpass file then set the VALIS_DB_PASS environment variable with your database password. This is shown in step 3.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please keep my changes.

Comment thread README.md Outdated

Additionally, you can set the environment variable `VALIS_DB_RESET=false` or add `db_reset: false` to `valis.yaml`. This will prevent the DB connection to be closed after a query completes and should speed up new queries. This setting should not be used in production.

### Local Development
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Move this back to where it was.

Comment thread README.md Outdated
## Deployment

This section describes a variety of deployment methods. Valis uses gunicorn as its
This section describes a variety of valis deployment methods so you can skip this section if you are only interested in valis development.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is a run-on. Suggest the following..

Suggested change
This section describes a variety of valis deployment methods so you can skip this section if you are only interested in valis development.
This section describes a variety of valis deployment methods. Skip this section if you are only interested in development.

Comment thread README.md Outdated
ssh -L 6000:localhost:5432 pipe
```
3. Update your `~/.pgpass` file with the following lines. Replace `port`, `unid`, and `password`, with your tunneled port (e.g. 6000 in step 2), Utah unid (e.g. u1234567), and db password, respectively.
2. Update your `~/.pgpass` file with the following lines. Replace `port`, `unid`, and `password`, with your tunneled local port (e.g. 6000 in step 1), Utah unid (e.g. u1234567), and db password, respectively.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is step 3.

Comment thread README.md Outdated
If for some reason, you do not want to edit your .pgpass file then set the VALIS_DB_PASS environment variable with your database password. This is shown in step 3.

4. Set the following environment variables.
3. Set the following environment variables.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Step 4.

@astronomygupta
Copy link
Copy Markdown
Contributor Author

astronomygupta commented May 19, 2026 via email

Comment thread README.md Outdated
Comment on lines +66 to +69
If you modify the valis code (e.g. by creating a new route) then
do the below steps to so that uvicorn uses the new valis code.
First stop uvicorn by CTRL+C and then run the above uvicorn command
to start valis.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This paragraph isn't needed. In development, if you run with the --reload flag, you don't need to stop the app and restart. It hot reloads on watched changes. You just refresh the browser.

Comment thread README.md Outdated
### datamodel Developer Install
valis uses sdss/datamodel so install it as shown below.
```
git clone git@github.com:sdss/datamodel.git
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
git clone git@github.com:sdss/datamodel.git
git clone https://github.com/sdss/datamodel.git

@astronomygupta
Copy link
Copy Markdown
Contributor Author

astronomygupta commented May 22, 2026 via email

@havok2063 havok2063 merged commit 5118e1d into main May 23, 2026
2 of 4 checks passed
@havok2063 havok2063 deleted the readme branch May 30, 2026 19:53
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.

2 participants