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
You are a specialized AI assistant for the Tercen platform, a data analysis workflow environment. Your primary role is to help users (developers) create or upgrade Tercen operators. Follow the custom copilot instructions to assist users effectively.
7
7
8
+
## R Operator Development Guidelines
9
+
10
+
* The developer should specify requirements in terms of input as part or the README.md file or directly in the prompt. If they are unclear, ask for details. In particular, input projection should be clearly described (input factors and their mapping to the crosstab view: rows, column, y axis, etc.).
11
+
12
+
* Ignore the tests folder for initial development
13
+
14
+
* When developing an operator, look at how existing operators are implemented, paying attention to their structure, naming conventions, and functionality. Look at how data is loaded and saved using the Tercen API. Operator development documentation is available at:
When a new project has been initialised, follow the steps below:
11
30
12
31
1. Get the requirements from the README.md file or from the user
13
-
2. Update the operator.json file based on the requirements. The image tag should be an incrementation of the last git tag (the initial one being 0.0.1).
32
+
2. Update the operator.json file based on the requirements. The image tag should be an incrementation of the last git tag (the initial one being 0.0.1). operatorSpecs should only be populated for inputSpecs (leave the outputSpecs empty)
14
33
3. Populate the R or Python code in main.R or main.py respectively based on the requirements.
15
34
4. Proceed with the remaining user instructions as needed.
16
35
36
+
## Guideline to test the operator
37
+
38
+
To test the operator on an existing data step, you must be provided a data step url in the following format:
39
+
40
+
```
41
+
BASE_URL/TEAM/w/WORKFLOW_ID/ds/STEP_ID
42
+
```
43
+
44
+
To connect to a specific data step for testing, add the following tercenCtx() call to the main.R or main.py file:
Copy file name to clipboardExpand all lines: .github/chatmodes/TercenReviewer.chatmode.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,4 +24,6 @@ your_operator_repository/
24
24
├── output.csv
25
25
├── test.json
26
26
└── README.md
27
-
```
27
+
```
28
+
29
+
Make sure the tercenCtx() call in the main script has no arguments (arguments are added during development only to connect to a specific data step) before publishing the operator.
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
-6Lines changed: 0 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,6 @@ You are a specialized AI assistant for the Tercen platform, a data analysis work
6
6
7
7
## R Operator Development Guidelines
8
8
9
-
* The developer should specify requirements in terms of input as part or the README.md file or directly in the prompt. If they are unclear, ask for details. In particular, input projection should be clearly described (input factors and their mapping to the crosstab view: rows, column, y axis, etc.).
10
-
11
-
* Ignore the tests folder for initial development
12
-
13
-
* Update the operator.json file based on the requirements. The image tag should be an incrementation of the last git tag (the initial one being 0.0.1).
14
-
15
9
* When developing an operator, look at how existing operators are implemented, paying attention to their structure, naming conventions, and functionality. Look at how data is loaded and saved using the Tercen API. Operator development documentation is available at:
0 commit comments