Skip to content

Commit eb0fbc5

Browse files
Merge pull request #625 from validmind/update-staging-12718099842
Merge main into staging
2 parents 2ab0e30 + 56e0a9f commit eb0fbc5

21 files changed

+61
-62
lines changed

release-scripts/generate-release-notes.ipynb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@
222222
"\n",
223223
"### Create release folder and file\n",
224224
"\n",
225-
"These lines will create a folder inside of `~/site/releases` for the release notes with a new `release-notes.qmd` file. The folder name is the release date, as per our convention. \n",
225+
"These lines will create a folder inside of `~/site/releases` for the new release notes to live in and sets stage for the release notes to be generated. The folder name is the release date, as per our convention. \n",
226226
"\n",
227-
"**If the directory and file already exists, you will be prompted to confirm whether or not you want to overwrite the contents.**"
227+
"**If the directory and release file already exists, you will be prompted to confirm whether or not you want to overwrite the contents.**"
228228
]
229229
},
230230
{
@@ -243,7 +243,9 @@
243243
"<a id='toc3_2_'></a>\n",
244244
"\n",
245245
"### Add the date to release notes \n",
246-
"This block writes the specified date as the title of the new release notes file."
246+
"This block writes the specified date as the title of the new release notes file.\n",
247+
"\n",
248+
"**It will also open up the newly created `release-notes.qmd` file for you so you don't have to go looking for it.**"
247249
]
248250
},
249251
{

release-scripts/generate_release_objects.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ def create_release_folder(formatted_release_date):
453453
# Create directory and output file
454454
os.makedirs(directory_path, exist_ok=True)
455455
print(f"{output_file} will be created or overwritten")
456+
456457
return output_file
457458

458459
def create_release_qmd(output_file, original_release_date):
@@ -468,6 +469,11 @@ def create_release_qmd(output_file, original_release_date):
468469
with open(output_file, "w") as file:
469470
file.write(f"---\ntitle: \"{original_release_date}\"\n---\n\n")
470471

472+
try:
473+
subprocess.run(["code", output_file], check=True)
474+
except Exception as e:
475+
print(f"Error opening the file in VS Code: {e}")
476+
471477
def update_release_components(release_components, categories):
472478
"""
473479
Updates a dictionary of release components with the given categories.

release-scripts/year-end-cleanup.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@
203203
"\n",
204204
"### Create yearly listing page \n",
205205
"\n",
206-
"This cell copies the template from `~internal/templates/yearly-releases.qmd` and slots it into the new yearly folder as `{year}-releases.qmd` so we can begin building the yearly listings."
206+
"This cell copies the template from `~internal/templates/yearly-releases.qmd` and slots it into the new yearly folder as `{year}-releases.qmd` so we can begin building the yearly listings.\n",
207+
"\n",
208+
"**It will also open up the newly created `{year}-releases.qmd` file for you so you don't have to go looking for it.**"
207209
]
208210
},
209211
{

release-scripts/yearly_cleanup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import re
44
import shutil
55
from IPython import get_ipython
6+
import subprocess
67

78
ansi_escape = re.compile(r'\x1B\[[0-?]*[ -/]*[@-~]')
89

@@ -140,6 +141,11 @@ def copy_template(yearly_path, year):
140141
shutil.copy(template_path, destination_file)
141142
print(f"Copied '../internal/templates/yearly-releases.qmd' template to: '{destination_file}'")
142143

144+
try:
145+
subprocess.run(["code", destination_file], check=True)
146+
except Exception as e:
147+
print(f"Error opening the file in VS Code: {e}")
148+
143149
return destination_file
144150

145151
except Exception as e:
@@ -490,7 +496,7 @@ def search_links(yearly_path):
490496
matching_files = 0
491497
total_lines_found = 0
492498

493-
print("Searching for relative links in moved release notes that may need adjusting...\n")
499+
print("Searching for relative links in moved release notes that may need adjusting ...\n")
494500

495501
for root, _, files in os.walk(search_dir):
496502
for file in files:

site/guide/model-workflows/_configure-workflow-steps.qmd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ To add or edit workflow steps:
77

88
1. Click on **Inventory Model**:
99

10-
- To add a step, drag and drop a new step onto the canvas. Hover over the step until the **{{< fa ellipsis-vertical >}}** menu appears, then click on it and select **{{< fa gear >}} Configure**.
11-
- On the new step, click **{{< fa gear >}} Configure**.
10+
- To add a step, drag and drop a new step onto the canvas.
11+
- Double-click the new step to open up the configuration modal.
1212

13-
1. After you're finished with step configuration, click **Save** to apply your changes before closing the configuration panel with **{{< fa x >}}**.
13+
1. After you're finished with step configuration, click **Update Step** to apply your changes before closing the configuration panel with **{{< fa x >}}**.
1414

1515
![Workflow step configuration](/guide/model-workflows/configure-steps.gif){fig-alt="A gif workflow step configuration" .screenshot}
1616

@@ -31,10 +31,10 @@ To add or edit workflow steps:
3131

3232
1. Click on **Inventory Model**:
3333

34-
- To add a step, drag and drop a new step onto the canvas. Hover over the step until the **{{< fa ellipsis-vertical >}}** menu appears, then click on it and select **{{< fa gear >}} Configure**.
35-
- On the new step, click **{{< fa gear >}} Configure**.
34+
- To add a step, drag and drop a new step onto the canvas.
35+
- Double-click the new step to open up the configuration modal.
3636

37-
1. After you're finished with step configuration, click **Save** to apply your changes before closing the configuration panel with **{{< fa x >}}**.
37+
1. After you're finished with step configuration, click **Update Step** to apply your changes before closing the configuration panel with **{{< fa x >}}**.
3838

3939
1. After you've configured a step, you can then link your workflow together.
4040

site/guide/model-workflows/_link-workflow-steps.qmd

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@ To initiate the beginning of your workflow:^[After you’ve [configured your wor
77

88
### Link steps together
99

10+
::: {.callout}
11+
Hover over a workflow step to view an animation of the steps connecting to and from that step.
12+
:::
13+
1014
To link subsequent steps together:
1115

1216
1. Click **{{< fa circle >}}** above or below the earlier step and drag it to connect to the top **{{< fa circle >}}** on the subsequent step.
1317

1418
You're also able to link several different steps together at various points in the workflow, including stages that may circle back to previous steps:
1519

16-
![Multiple steps linked together at various points in the default Inventory Model workflow](/guide/model-workflows/linked-workflow.png){fig-alt="A screenshot showing an example of multiple steps linked together at various points in the default Inventory Model workflow" .screenshot}
20+
![Multiple steps linked together at various points in the default Inventory Model workflow](/guide/model-workflows/linked-workflow.gif){fig-alt="An animated gif showing an example of multiple steps linked together at various points in the default Inventory Model workflow" .screenshot}
1721

1822
1. When you are finished, click **Save Workflow** to apply your changes.
1923

@@ -34,7 +38,7 @@ To link subsequent steps together:
3438

3539
You're also able to link several different steps together at various points in the workflow, including stages that may circle back to previous steps:
3640

37-
![Multiple steps linked together at various points in the default Inventory Model workflow](/guide/model-workflows/linked-workflow.png){fig-alt="A screenshot showing an example of multiple steps linked together at various points in the default Inventory Model workflow" .screenshot}
41+
![Multiple steps linked together at various points in the default Inventory Model workflow](/guide/model-workflows/linked-workflow.gif){fig-alt="An animated gif showing an example of multiple steps linked together at various points in the default Inventory Model workflow" .screenshot}
3842

3943
1. When you are finished, click **Save Workflow** to apply your changes.
4044

site/guide/model-workflows/_model-workflows-see.qmd

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@
88
- Click **{{< fa arrow-right-arrow-left >}} See Workflow** to open the detailed workflow associated with that model.
99
- The current workflow state will be highlighted on this detail view.
1010

11-
![Summary view of example workflow steps for a model](/guide/model-workflows/model-workflow.png){width=85% fig-alt="A summary view of example workflow steps for a model" .screenshot}
11+
![Summary view of example workflow steps for a model](/guide/model-workflows/model-workflow.png){fig-alt="A summary view of example workflow steps for a model" .screenshot}
12+
13+
<!-- 2025-jan-07 // There is a bug ATM where this doesn't work: https://app.shortcut.com/validmind/story/7998/viewing-a-model-workflow-doesn-t-have-hover-animations -->
14+
15+
::: {.callout}
16+
Hover over a workflow step to view an animation of the steps connecting to and from that step.
17+
18+
:::
1219

1320
While your lifecycle statuses and workflows are custom to your organization, some examples are:
1421

Loading
Loading
746 KB
Loading
Loading

site/guide/model-workflows/customize-model-lifecycle-statuses.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Model lifecycle statuses are manipulated via workflow transitions and are used t
2929
- To add a status, click **{{< fa plus >}} Add New Model Lifecycle Status**.
3030
- To edit a status, click on the status itself.
3131

32-
3. On the status detail popup that appears:
32+
3. On the Add Model Lifecycle Status modal that appears:
3333

3434
a. Provide a status **[name]{.smallcaps}**
3535
b. Provide a status **[description]{.smallcaps}**
@@ -45,7 +45,7 @@ Model lifecycle statuses are manipulated via workflow transitions and are used t
4545

4646
1. In the left sidebar, click **{{< fa gear >}} Settings**.
4747

48-
2. Under Workplace Settings, select **Statuses**.
48+
2. Under Workplace Settings, select **Model Lifecycle Statuses**.
4949

5050
3. Hover over the status you'd like to delete, and click **{{< fa trash-can >}} Delete**.
5151

Loading
953 Bytes
Loading
551 KB
Loading
-115 KB
Binary file not shown.
-94.5 KB
Loading
598 KB
Loading
621 KB
Loading

site/guide/model-workflows/set-up-model-workflows.qmd

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -125,21 +125,18 @@ Please note that roles or users must be assigned to the **Approval Group** field
125125
| [approval message]{.smallcaps} | When your resource reaches this approval step, the users in the selected group will recieve the following message. |
126126
: **Approval Group** step configuration {.hover tbl-colwidths="[35,65]"}
127127

128-
129-
![Approval message shown to the APPROVAL GROUP](approvals-message.png){fig-alt="A screenshot showing the approval message shown to the APPROVAL GROUP" .screenshot group="approval"}
130-
131128
:::: {.flex .flex-wrap .justify-around}
132129

133130
::: {.w-50-ns}
134-
135-
![APPROVAL GROUP step configuration with an inventory field selection of Approval Users](approval-group-setup.png){fig-alt="A screenshot showing an APPROVAL GROUP step configuration with a inventory field selection of Approval Users" .screenshot group="approval"}
131+
![APPROVAL GROUP step configuration with a User Roles selection of Validator](configure-approval-step.png){fig-alt="A screenshot showing an APPROVAL GROUP step configuration with a User Roles selection of Validator" .screenshot group="approval"}
136132

137133
:::
138134

139135
::: {.w-40-ns}
136+
![Setup for the Approval Message shown to the APPROVAL GROUP of User Roles — Validator](approval-group-setup.png){fig-alt="A screenshot showing the setup for the Approval Message shown to the APPROVAL GROUP of User Roles — Validator" .screenshot group="approval"}
140137

141138
Example
142-
: A message shown to the user type inventory field `Approval Group` users requesting approval of model documentation.
139+
: A message shown to the User Roles — Validator requesting review of a model for compliance.
143140

144141
:::
145142

@@ -156,7 +153,7 @@ Workflows cannot be saved until condition branches are connected to other steps.
156153
To configure a condition branch:
157154

158155
1. On the Configure Condition Branch module, click **+ Add Branch**.
159-
2. Enter in the **[name]{.smallcaps}** and designate the **[conditions]{.smallcaps}**[^12] that apply to this path.
156+
2. Enter in the **[path name]{.smallcaps}** and designate the **[conditions]{.smallcaps}**[^12] that apply to this path.
160157
3. Continue with steps 1 and 2 until your conditional branch logic is complete.
161158

162159
To remove a path, click **{{< fa ellipsis-vertical >}}** and select **{{< fa trash-can >}} Remove Path**.
@@ -167,7 +164,7 @@ To configure a condition branch:
167164
For example, if you wanted your models where the field `GenAI Model` is set to `true` to undergo a special legal approval process:
168165

169166
- First, you'd set up a Condition Branch path to look for instances where `GenAI Model` is set to `true`.
170-
- Then, you would add an Approval step[^14] that requests a review of the model from the User group `Legal Team`.
167+
- Then, you would add an Approval step[^14] that requests a review of the model from the User Roles — `Legal Team`.
171168
- Finally, configure the `default` path to bypass this special approval.
172169

173170
:::: {.flex .flex-wrap .justify-around}
@@ -178,13 +175,16 @@ For example, if you wanted your models where the field `GenAI Model` is set to `
178175
:::
179176

180177
::: {.w-50-ns}
181-
![Legal team Approval step configuration](legal-team-approval.png){fig-alt="Screenshot showing the Legal team Approval step configuration" .screenshot group="condition"}
178+
![Legal Team Approval step configuration](legal-team-approval.png){fig-alt="Screenshot showing the Legal Team Approval step configuration" .screenshot group="condition"}
182179

183180
:::
184181

185182
::::
186183

187-
![Example Condition Branch where GenAI models require special approval from the User group Legal Team](example-condition-branch.png){fig-alt="A screenshot showing an example Condition Branch where GenAI models require special approval from the User group Legal Team" .screenshot group="condition"}
184+
::: {.column-margin}
185+
![Example Condition Branch where GenAI models require special approval from the User Roles — Legal Team](example-condition-branch.png){fig-alt="A screenshot showing an example Condition Branch where GenAI models require special approval from the User Roles — Legal Team" .screenshot group="condition"}
186+
187+
:::
188188

189189
### Add conditional requirements
190190

@@ -195,7 +195,7 @@ Conditional requirements can be configured for all four available step types:
195195
| Status Change | Under **[when these conditions are met]{.smallcaps}**, you are able to set both `AND` and `OR` conditions. |
196196
| User Action | Under **[display action button when]{.smallcaps}**, you are able to set both `AND` and `OR` conditions. |
197197
| Approval | Under **[threshold]{.smallcaps}**, you are able to set the minimum percentage of approvers required for the resource to be approved. |
198-
| Condition Branch | Under each branch's **[conditions]{.smallcaps}**, you're able to designate the conditions that apply to that path. |
198+
| Condition Branch | Under each branch's **[conditions]{.smallcaps}**, you're able to designate the `AND` and `OR` conditions that apply to that path. |
199199
: Step type conditional options {.hover tbl-colwidths="[20,80]"}
200200

201201
For Status Change[^15], User Action[^16], and Condition Branch[^17] conditions, you're able to add a single independent **Rule** or a linked condition **Group**. These rules and groups can be nested if desired:
@@ -219,7 +219,10 @@ Approval steps need to be subsequently linked to both a [Rejected]{.bubble .red
219219

220220
3. Connect the **Approval** step to the [Rejected]{.bubble .red .red-bg} and [Approved]{.bubble .green .green-bg} **Status Change** steps with the red and green **{{< fa circle >}}** respectively by dragging from the colored **{{< fa circle >}}** to the top **{{< fa circle >}}** of the subsequent step.
221221

222-
![Linked REJECTED and APPROVED Status Change steps](approved-rejected.png){fig-alt="A screenshot showing linked REJECTED and APPROVED Status Change steps" .screenshot}
222+
::: {.column-margin}
223+
![Linked REJECTED and APPROVED Status Change steps](approval-group-setup.png){fig-alt="A screenshot showing linked REJECTED and APPROVED Status Change steps" .screenshot}
224+
225+
:::
223226

224227
## Delete workflow steps
225228

site/guide/model-workflows/working-with-model-workflows.qmd

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,7 @@ To review the overall workflow status for a model:
3535

3636
{{< include _model-workflows-see.qmd >}}
3737

38-
![Detailed workflow under the MODEL STATUS section](see-workflow.gif){fig-alt="A gif showing the detailed workflow under the MODEL STATUS section" .screenshot}
39-
40-
<!-- Model documentation stauses/workflows have been removed as of Aug 2024 -->
41-
42-
<!-- #### See model documentation statuses
43-
44-
To review the workflow status of a model's documentation:
45-
46-
1. In the left sidebar, click **{{< fa cubes >}} Inventory**.
47-
48-
2. Select a model or find your model by applying a filter or searching for it.[^6]
49-
50-
3. In the left sidebar that appears for your model, click **{{< fa book-open >}} Documentation**.
51-
52-
On this **{{< fa book-open >}} Documentation** page, locate [document status]{.smallcaps}:
53-
54-
- Click **{{< fa arrow-right-arrow-left >}} See workflow** to open the detailed workflow associated with that model's documentation.
55-
- The current workflow state will be highlighted on this detail view. -->
38+
![Detailed workflow under the MODEL STATUS section](see-workflow.gif){fig-alt="A gif showing the detailed workflow under the MODEL STATUS section" .screenshot width=90%}
5639

5740
## Transition workflow statuses
5841

@@ -66,22 +49,7 @@ To transition the overall workflow status for a model:
6649

6750
{{< include _model-workflows-transition.qmd >}}
6851

69-
![Transitioning a workflow status under the ACTIONS section](transition-workflow.gif){fig-alt="A gif showing transitioning a workflow status under the ACTIONS section" .screenshot}
70-
71-
<!-- #### Transition model documentation statuses
72-
73-
To transition the workflow status of a model's documentation:
74-
75-
1. In the left sidebar, click **{{< fa cubes >}} Inventory**.
76-
77-
2. Select a model or find your model by applying a filter or searching for it.[^8]
78-
79-
3. In the left sidebar that appears for your model, click **{{< fa book-open >}} Documentation**.
80-
81-
4. If an action is available to your role, you'll see it listed under your document status under your **{{< fa book-open >}} Documentation** or **{{< fa shield >}} Validation Report**.
82-
83-
- Click **{{< fa arrow-right >}}** to open up the transition panel for your selected action. This arrow will be followed by the action name.
84-
- Enter your **Notes** then click **Submit**. -->
52+
![Transitioning a workflow status under the ACTIONS section](transition-workflow.gif){fig-alt="A gif showing transitioning a workflow status under the ACTIONS section" .screenshot width=90%}
8553

8654
### Reset your model workflow
8755

@@ -97,6 +65,7 @@ If you need to reset your model's workflow to the beginning:
9765

9866
After you confirm, that model's workflow will be returned to its initial state.
9967

68+
![Resetting a workflow to its initial state](reset-workflow.gif){fig-alt="A gif showing resetting a workflow to its initial state" .screenshot width=90%}
10069

10170
## What's next
10271

0 commit comments

Comments
 (0)