Skip to content

docs: simplify outdated dev instructions #1466

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

Merged
merged 4 commits into from
Jun 26, 2024
Merged

docs: simplify outdated dev instructions #1466

merged 4 commits into from
Jun 26, 2024

Conversation

dshemetov
Copy link
Contributor

@dshemetov dshemetov commented Jun 3, 2024

Summary:

Our dev instructions here are quite old and contain either out of date or duplicate information that is already in dev scripts. So here I removed some unnecessary and out of date details and pointed to the dev scripts instead. This way we don't have to keep updating this instructions along with those files. I did my best to keep the useful examples in the "Manual Tests" section around, such as loading test data into the database and querying the local API directly from the command line (though the diffs make it look like I deleted all that, it's actually kept around unaltered below).

Prerequisites:

  • Unless it is a documentation hotfix it should be merged against the dev branch
  • Branch is up-to-date with the branch to be merged with, i.e. dev
  • Build is successful
  • Code is cleaned up and formatted

@dshemetov dshemetov requested review from melange396 and nmdefries June 3, 2024 20:58
@dshemetov dshemetov force-pushed the ds/docs2 branch 2 times, most recently from 8ad34b2 to 8cfeb0c Compare June 5, 2024 00:07
@dshemetov dshemetov force-pushed the ds/docs branch 2 times, most recently from d5a58c4 to 203af70 Compare June 5, 2024 18:17
Base automatically changed from ds/docs to dev June 5, 2024 18:25
Copy link
Contributor

@nmdefries nmdefries left a comment

Choose a reason for hiding this comment

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

Tested the commands

@dshemetov dshemetov requested a review from nmdefries June 21, 2024 22:50
Copy link

@nmdefries nmdefries merged commit c65d809 into dev Jun 26, 2024
7 checks passed
@nmdefries nmdefries deleted the ds/docs2 branch June 26, 2024 21:30
@@ -49,346 +49,125 @@ $ [sudo] make test pdb=1
$ [sudo] make test test=repos/delphi/delphi-epidata/integrations/acquisition
```

## Long version
You can read the commands executed by the Makefile [here](../dev/local/Makefile).
Copy link
Collaborator

Choose a reason for hiding this comment

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

this link doesnt work; it ends up pointing to https://cmu-delphi.github.io/dev/local/Makefile ... try https://github.com/cmu-delphi/delphi-epidata/blob/dev/dev/local/Makefile instead

Copy link
Contributor Author

@dshemetov dshemetov Jul 9, 2024

Choose a reason for hiding this comment

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

Ah, i formatted the link so it would work here. Seems like we can either have it work on the site or work on Github. Which do we prefer? Personally, I look at the dev pages on Github.

Copy link
Collaborator

Choose a reason for hiding this comment

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

i think it should work for both if we set it to https://github.com/cmu-delphi/delphi-epidata/blob/dev/dev/local/Makefile

[the `fluview_meta` tutorial](new_endpoint_tutorial.md) for an example of how
to add a new endpoint to the API.
- the container will be able read and write to your local filesystem (which may
be a security concern, especially if you are running the containers as root)
Copy link
Collaborator

Choose a reason for hiding this comment

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

dont they always run as root?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here's a full example based on the `fluview` endpoint:
What follows is a worked demonstration based on the `fluview` endpoint. Before
starting, make sure that you have the `delphi_database_epidata`,
`delphi_web_epidata`, and `delphi_redis` containers running; if you don't, see
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe give docker command to check that here?

@melange396
Copy link
Collaborator

(sorry for late review points, i noticed these while doing the new version rollout)

@dshemetov
Copy link
Contributor Author

Np, merged this in bc I wanted @aysim319 to have the updated version.

@dshemetov dshemetov mentioned this pull request Jul 9, 2024
4 tasks
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.

3 participants