You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
registered logging
[ci skip]
format works
making progress
making progress sharing node modules
creating the docs
progress
getting react server to show
making progress with the server
temp
get calling api now need to add lineage tab
making progress on vscode lineage
temp
progress: showing the lineage graph
[ci skip]
cleaning up lineage
[ci skip]
added ability to open files
temp [ci skip]
trying to implement lsp
[ci skip]
temp
[ci skip]
test [ci skip]
temp [ci skip]
temp [ci skip]
temp [ci skip]
Copy file name to clipboardExpand all lines: docs/development.md
+86
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,11 @@ SQLMesh is licensed under [Apache 2.0](https://github.com/TobikoData/sqlmesh/blo
4
4
5
5
## Prerequisites
6
6
7
+
<<<<<<< HEAD
7
8
Before you begin, ensure you have the following installed on your machine. Exactly how to install these is dependent on your operating system.
9
+
=======
10
+
Before you begin, ensure you have the following installed on your machine. Exacltly how to install these is dependent on your operating system.
11
+
>>>>>>> afd4b2c1 (opening extension in right place)
8
12
9
13
* Docker
10
14
* Docker Compose V2
@@ -25,9 +29,47 @@ Once you have activated your virtual environment, you can install the dependenci
25
29
```bash
26
30
make install-dev
27
31
```
32
+
<<<<<<< HEAD
28
33
29
34
Optionally, you can use pre-commit to automatically run linters/formatters:
30
35
36
+
=======
37
+
<<<<<<< HEAD
38
+
Run linters and formatters:
39
+
```bash
40
+
make style
41
+
```
42
+
Run faster tests for quicker local feedback:
43
+
```bash
44
+
make fast-test
45
+
```
46
+
Run more comprehensive tests that run on each commit:
47
+
```bash
48
+
make slow-test
49
+
```
50
+
Install docs dependencies:
51
+
```bash
52
+
make install-doc
53
+
```
54
+
Run docs server:
55
+
```bash
56
+
make docs-serve
57
+
```
58
+
Run docs tests:
59
+
```bash
60
+
make doc-test
61
+
```
62
+
Run ide:
63
+
```bash
64
+
make ui-up
65
+
```
66
+
(Optional) Use pre-commit to automatically run linters/formatters:
67
+
=======
68
+
69
+
Optionally, you can use pre-commit to automatically run linters/formatters:
70
+
71
+
>>>>>>> 61520e5a (creating the docs)
72
+
>>>>>>> afd4b2c1 (opening extension in right place)
31
73
```bash
32
74
make install-pre-commit
33
75
```
@@ -52,6 +94,15 @@ Run more comprehensive tests that run on each commit:
52
94
make slow-test
53
95
```
54
96
97
+
<<<<<<< HEAD
98
+
=======
99
+
Run Airflow tests that will run when PR is merged to main:
100
+
101
+
```bash
102
+
make airflow-docker-test-with-env
103
+
```
104
+
105
+
>>>>>>> afd4b2c1 (opening extension in right place)
55
106
## Documentation
56
107
57
108
In order to run the documentation server, you will need to install the dependencies by running the following command.
@@ -90,6 +141,7 @@ make ui-up
90
141
91
142
## Developing the VSCode extension
92
143
144
+
<<<<<<< HEAD
93
145
Similar to UI development, you can also develop the VSCode extension. To do so, make sure you have the dependencies installed by running the following command inside the `vscode/extension` directory.
94
146
95
147
```bash
@@ -101,3 +153,37 @@ Once that is done, developing the VSCode extension is most easily done by launch
101
153
```bash
102
154
make vscode_settings
103
155
```
156
+
=======
157
+
Developing the VSCode extension is most easily done by launching the debug process from a visual studio code workspace.
158
+
159
+
By default, the VSCode extension will run the SQLMesh server locally and open a new visual studio code window that allows you to try out the SQLMesh IDE. It by default opens the `examples/sushi` project.
160
+
161
+
Please see the below diagram for a high level overview of the UI.
For development purposes, the React app is not embedded into the python server. Instead a separate instance of the React app is run. This allows you to make changes to the UI and see them immediately.
173
+
174
+
This makes the architecture diagram at development time look like the following.
React [React Server] --> |passes on api requests| B
181
+
C --> |reads react webpages from| React
182
+
```
183
+
184
+
In development mode, the React app is not embedded into the python server. Instead a separate instance of the React app is run. This allows you to make changes to the UI and see them immediately.
185
+
186
+
The React App runs on the port 5173. The VSCode extension will automatically open the React app in a new tab.
187
+
The python server will run on the port 5174.
188
+
189
+
>>>>>>> afd4b2c1 (opening extension in right place)
0 commit comments