-
Notifications
You must be signed in to change notification settings - Fork 0
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
📝 Update local-setup-ui.md #6
📝 Update local-setup-ui.md #6
Conversation
Kim and Gabriel came up with ideas to make this more clear in meeting.
@kcpevey, I would appreciate if you could check that this PR matches what we discussed in our meeting, as well as spotting if you see any further room for improvement. @pavithraes, I would appreciate if you could also review the PR so that it aligns with your vision and your base PR, conda-incubator#763. |
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.
This looks great! Thanks @gabalafou
The first part of this PR says no matter what approach one follows one must install Docker/Docker compose. But then the advance section does not use Docker at all. Also we should note as requirements installing Docker as it's needed to be able to use Docker compose (right now the only req is Docker compose) |
Heh, this document is starting to feel cursed lol. Both approaches use Docker Compose, but somehow we're failing to communicate all of this in a clear fashion. The relevant package.json scripts are:
The setup labeled "basic" uses
The installation page for Docker Compose is pretty explicit about needing both Docker Engine and Docker CLI installed in order to use Docker Compose. Also, Docker Compose comes bundled with Docker Desktop for Linux, Mac, and Windows. So I'm not sure how mentioning Docker here as a requirement helps. Would it be better instead to tell people to install Docker Desktop? |
This is the part that is confusing in the docs as is
So this points to a workflow where one would use a local runtime vs a container. Indicating that Docker is a requirement is good, since not everyone installs Docker compose from Docker desktop. |
|
||
**Note:** Hot reloading is enabled, so when you make changes to source files, your browser will reload and reflect the changes. | ||
|
||
## Run the test suite | ||
|
||
We currently use jest in order to run unit tests. | ||
We currently use Jest in order to run unit tests. | ||
|
||
```bash | ||
yarn test // find every test with the .test.[tsx|ts] extension |
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.
yarn is also still used down here. Not sure about getting rid of all mention of installing yarn?
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.
If one creates the conda environment per the instructions above yarn should be already installed
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.
This section should probably somehow be moved into Advanced development then.
|
||
**Note:** Hot reloading is enabled, so when you make changes to source files, your browser will reload and reflect the changes. | ||
|
||
## Run the test suite | ||
|
||
We currently use jest in order to run unit tests. | ||
We currently use Jest in order to run unit tests. | ||
|
||
```bash | ||
yarn test // find every test with the .test.[tsx|ts] extension |
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.
If one creates the conda environment per the instructions above yarn should be already installed
Co-authored-by: Kim Pevey <kcpevey@quansight.com>
Co-authored-by: Tania Allard <taniar.allard@gmail.com>
Co-authored-by: Tania Allard <taniar.allard@gmail.com>
Co-authored-by: Tania Allard <taniar.allard@gmail.com>
Co-authored-by: Tania Allard <taniar.allard@gmail.com>
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.
This looks great, thank you!
@@ -9,46 +9,78 @@ To get started with conda-store-ui development, there are a couple of options. T | |||
|
|||
## Pre-requisites |
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.
If it's Ok with you, I might update this section in my pull request to point to the page that outlines the git cloning & branching workflow: https://github.com/pavithraes/conda-store/blob/contrib-docs/docusaurus-docs/community/contribute/contribute-code.md#setup-for-local-development
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.
That almost makes sense to me, but I'm not sure where/how Docker fits into this suggestion. Should we move the Docker installation instructions out of the core, ui, and juptyerlab-extension docs and into the contribute-code doc?
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.
I think we can keep Docker here, and only remove the git & GitHub specific instructions in favour of the above doc
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.
Sounds good 👍
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.
This is much better now thanks @gabalafou
I actually realized that this PR does not really depend on conda-incubator/conda-store-ui#415 so I am going to remove that sentence from the PR description. The instructions in this PR will be wrong if PR 415 is not merged, but they will be wrong in exactly the same way that the current instructions in the docs are wrong. Which is to say, the current instructions for Docker-based dev are missing a |
Got it. This PR is also being merged into another PR, and not the main branch directly. I think we can merge now :) |
This is a pull request on top of a pull request: conda-incubator#763.
Related: conda-incubator/conda-store-ui#415.
Kim and Gabriel had a meeting and came up with ideas to make the instructions clearer.