Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- run: corepack enable
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: 20
node-version: 24
cache: yarn

- name: Add key to allow access to repository
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
name: Test deployment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- run: corepack enable
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: 20
node-version: 24
cache: yarn

- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 20.11.0
nodejs 24.15.0
47 changes: 47 additions & 0 deletions adaptors/eapts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
title: EAPTS Adaptor
---

## About EAPTS

[EAPTS](https://dhpi.moh.gov.et/project/b7175989-30d8-42d6-a5ee-8d48cbad0c61) (Electronic Asset and Pharmaceutical Tracking System) is a comprehensive pharmaceutical management platform used across healthcare facilities in Ethiopia to monitor medicines, medical supplies, and equipment. EAPTS provides real-time visibility into inventory levels, prescription tracking, and dispensing unit performance to strengthen pharmaceutical logistics and health program oversight.

## Integration Options

EAPTS supports integration through its REST API, which enables external services like OpenFn to:

1. **REST API**: Pull data from EAPTS or push data from external applications to EAPTS. This API allows you to synchronize stock and dispensing data, validate prescriptions and patient records, generate dashboards or analytics reports, and monitor supply chain performance programmatically. This option is suited for scheduled, bulk syncs, automated nightly stock level updates to national reporting systems, real-time prescription validations, or workflows that need to exchange data between EAPTS and other health information systems such as DHIS2, KoboToolbox, or Salesforce. See [functions](https://docs.openfn.org/adaptors/packages/eapts-docs) for more on how to use this adaptor to work with the API.

2. **Data Export**: Export pharmaceutical inventory, dispensing records, and stock reports for analysis and integration with external systems like DHIS2, national health databases, or reporting platforms.

## Authentication

When integrating with EAPTS via OpenFn, the primary authentication method supported is:

**API Token Authentication**. See this adaptor's [Configuration docs](https://docs.openfn.org/adaptors/packages/eapts-configuration-schema) for more on required authentication parameters.

See platform docs on [managing credentials](https://docs.openfn.org/documentation/manage-projects/manage-credentials) for how to configure a credential in OpenFn.

If working locally or if using a Raw JSON credential type, then your configuration will look something like this:
```json
{
"baseUrl": "https://your-eapts-instance.example.com",
"apiToken": "sk_test_53iburgn5yb3u4nfufg477365gbvrnv348r475gf4bf485845gbrf"
}
```

**Required Fields:**
- `baseUrl`: The base URL of your EAPTS instance (e.g., `https://example.com`)
- `apiToken`: The API token for authenticating requests to EAPTS

### Helpful Links

1. [EAPTS Platform](https://dhpi.moh.gov.et/project/b7175989-30d8-42d6-a5ee-8d48cbad0c61)
2. [OpenFn EAPTS Adaptor](https://docs.openfn.org/adaptors/packages/eapts-readme)
3. [EAPTS Configuration Schema](https://docs.openfn.org/adaptors/packages/eapts-configuration-schema)

### I've noticed a problem with this Adaptor, or something is out of date, what can I do?

Thanks for asking! We are a fully Open Source Digital Public Good, and we welcome contributions from our community. Check out our [Adaptors Wiki](https://github.com/OpenFn/adaptors/wiki) for more information on how you can update Adaptors!

Or, you can always reach out to the Community through our [Community Forum here](https://community.openfn.org/).
2 changes: 1 addition & 1 deletion docs/build/collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Collections
sidebar_label: Collections
---

Collections provides a high-volume, high-performance storage solution built into
Collections provide a high-volume, high-performance storage solution built into
OpenFn. Check out
**[this video](https://www.youtube.com/watch?v=iXkkkzratzY&t=3s&ab_channel=OpenFn.org)**
for an introduction.
Expand Down
119 changes: 54 additions & 65 deletions docs/build/sandboxes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,15 @@ sidebar_label: Sandboxes
---

Sandboxes are a way to develop fixes and new features on workflows without
affecting live, or "in production", runs.

:::info Sandboxes are new to OpenFn since October 2025.

At the time of writing sandboxes are under active development and testing. We
expect to be in full working order by the end of November 2025, but until then
we recommend not using them with live workflows.

To access sandboxes, you'll need to enable the Experimental Features option in
your user settings.

:::
affecting live, or "production", runs.

A sandbox is essentially a clone of a project, with its own private history,
webhooks, cron triggers credentials and access rights. It also has its own
billing rules - so sandbox runs and AI tokens don't affect your main project.
Unlike most sandbox settings, the billing rules derive from the original
project, rather than duplicate them.
webhooks and cron triggers, credentials and access rights.

Sandboxes also have their own billing rules, so runs and AI tokens used in the
sandbox don't affect the usage of your main project.

The idea is that you can develop the workflow in total isolation from the main
The idea is that you can develop workflows in total isolation from the main
project, and once you're done, merge (read as "push" or "promote") changes back.

:::tip Short-lived sandboxes
Expand Down Expand Up @@ -53,72 +42,71 @@ not affect the same-named Workflow in any other project or sandbox, or that a
Run in a sandbox will contribute to your usage in any other sandbox or project,
and so on.

Collections are scoped to a project or sandbox. When you create a new sandbox,
empty copies of any collections on the original project will be created inside
the sandbox. When merging the sandbox, data is not transferred between
collections (but new collections will be created on the merge target).

## Creating sandboxes

When you create a new sandbox, we basically create a total copy of your project.
Any changes made to the sandbox will not affect your main project workflows - so
you can experiment freely without breaking anything.

To create a sandbox, enter a Project, click on sandboxes, and click on the
Create sandbox button.
Create Sandbox button.

You'll need to set a name for the sandbox. This is unique within your project
and its sandboxes. If you're familiar with git, treat it like a branch name.
You'll need to set a name for the sandbox. This must be unique across sandboxes
within the project. If you're familiar with git, treat it like a branch name.
Otherwise, you can either give it a general name like `testing`, or name it for
a specific feature, like `new-patient-workflow`.

You'll also need to set an Environment (see below). This configures all
credentials within the sandbox to use that environment variant. If you're not
sure, set the environment to `dev` (you can change this at any time from the
Setup tab of the sandbox Settings page).

A color will be randomly selected to associate with the sandbox. You'll see this
color in the app UI while you're using the sandbox. You can select a different
color if you like.

Click Create sandbox when you're ready. You'll automatically enter the sandbox.
Click Create Sandbox when you're ready. You'll automatically enter the sandbox.

## Viewing a sandbox

To develop and test a sandbox, you need to enter it in the app from the
sandboxes menu.
To develop and test a sandbox, you need to enter it from the Sandboxes item on
the main navigation bar.

When sandbox is active, the app will change color to help you understand what
you're looking at. [TODO] We also list the active sandbox in the breadcrumbs at
the top of the page, and in a banner on the Inspector.
version of your project you're looking at.

Each sandbox has its own isolated Workflows, Subscription, History and settings.
As you click through the pages, you'll notice that your original project's
details are excluded. This is because your sandbox is an independent clone of
the original project.
Each sandbox has its own isolated Workflows, Collections, Subscription, History
and settings. As you click through the pages, you'll notice that your original
project's details are excluded. This is because your sandbox is an independent
clone of the original project.

## Environments
Some Settings are "private" to a sandbox, while others are inherited by the
parent Project, and a few will be copied into the target on merge. The Settings
page will clearly tell you what to expect.

Environments allow you to run a Workflow with a special set of credentials. This
lets you use development servers, modes and databases while building your
sandbox, without interfering with live production services.
## Environments

Each sandbox has an associated environment. By default it's `main`, which
implies that this is your live production environment. But you can create an
environment like `dev` or `staging`.
Environments allow you to run a Workflow with a special set of credential
values, seperate to your main project. This lets you use development servers,
modes and databases while building your sandbox, without interfering with live
production services.

The environment is just a label, and each credential used in your workflow has a
set of values associated with that label. For example, when connecting to DHIS2,
your main credential will contain private login details. But your `dev`
environment might use the public sandbox and so contain a different username and
password.

By default, all Sandboxes are given the environment `dev`. You can change this
from the Settings page.

All environments are securely stored and encrypted within our database, so it's
perfectly safe to duplicate production credentials across multiple environments.

For each Credential used in your workflow, you must ensure there is a value set
to match your sandbox environment. If you do not configure your credentials, the
Workflow will fail with clear instructions on how to correct it.

To change a the environment used by a Sandbox, first enter the Sandbox from the
Sandboxes page, then go to the Settings page. The environment can be edited
under the Identity section of the Setup tab (right at the top of the page).

## Merging sandboxes

Once you've finished making changes to your workflows, it's time to merge them
Expand All @@ -127,23 +115,21 @@ back into your main project.
This is easy in the app: simply head to the Sandboxes page, find the Sandbox you
want to merge in the list, and click the Merge icon on the right-hand side.

You'll be prompted to select the target project or sandbox to merge into: pick
from the list and click Merge. Usually you'll want to merge into the original
project, which is selected by default.
You'll be prompted to select the target project or sandbox to merge into.
Usually you'll want to merge into the original project, which is selected by
default.

When merging, we replace the contents of workflows in your project with those in
your sandbox. Any workflows which are not in the sandbox will be ignored. If you
rename a workflow in the sandbox, you'll see the new workflow appear in your
main project, and the original workflow will be left alone (you'll probably want
to delete that manually).
You can also pick which Workflows to include in the merge. This helps reduce
conflicts with any changes on the underlying Project, and helps you understand
the consequences of the merge.

Note that settings and options, like concurrency and data retention rules, are
not transferred in the merge, nor are historical runs or dataclips. Just the
Workflow contents.
When merging, we replace the contents of workflows in the target project with
those in your sandbox. Renaming a worklow will make it look like the workflow
was removed from the base, and a new workflow added.

After merging, the sandbox will be destroyed, along with its history and
dataclips. Any environments and credentials assocaited with the project will be
unaffected.
After merging, the sandbox will be destroyed, along with its history,
collections and dataclips. Any environments and credentials associated with the
project will be unaffected.

:::tip

Expand Down Expand Up @@ -172,10 +158,10 @@ Occasionally these conflicts are trivial to resolve and you might wonder what
all the fuss is about. But often they are complex, and it can be difficult or
impossible to automate a solution.

[TODO not implemented yet] When we detect a conflict like this, we'll show a
warning when you try and merge the Sandbox. You can choose to "force push" the
Sandbox and overwrite whatever changes happened on the target Project, or you
can cancel and resolve the conflict yourself.
When we detect a conflict like this, we'll show a warning when you try and merge
the Sandbox. You can choose to force the merge and overwrite whatever changes
happened on the target Project, or you can cancel and resolve the conflict
yourself.

For now, the only way to resolve conflicts manually is to use the CLI to edit
your project locally, and pushed the resolved, final version up to the app.
Expand All @@ -190,5 +176,8 @@ We'll be adding better support for resolving conflicts soon.

Sandboxes are fully compatible with the CLI.

We're still working on docs and features for that - check back soon for more
details!
Use `openfn project pull` to fetch a sandbox locally, and `openfn project push`
to push changes back to the the sandbox in the app.

You can use `openfn project merge` to merge two local projects together, and
then `openfn project deploy` to sync with the app.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"@docusaurus/preset-classic": "3.9.2",
"@docusaurus/theme-mermaid": "3.9.2",
"@mdx-js/react": "^3.0.0",
"axios": "1.13.5",
"brace-expansion": "1.1.12",
"axios": "1.15.0",
"brace-expansion": "^5.0.0",
"clsx": "^1.1.1",
"compare-versions": "^5.0.1",
"date-fns": "2.21.3",
Expand Down
Loading