Skip to content

Commit

Permalink
chore(query-playground): prep for App Hub publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiVandivier committed Apr 16, 2024
1 parent 5d58f2a commit 840ac5e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions examples/query-playground/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
### Description

A playground for exploring the DHIS2 API and debugging Data Engine queries and mutations

#### How to publish

Since this lives in the repository with the app-runtime library, releasing new versions of this app should be done in a special way to avoid affecting the library's versions:

1. Add any new changes with `chore` commits
2. Make sure the supported DHIS2 versions are correct in `d2.config.js`
3. Manually update the app version in `package.json` -- **Don't use `yarn version`** because we don't want to a create a git tag for this repo
4. Add a `chore` commit for the version bump in `package.json` (make sure this will get its own commit on `master` and doesn't get squashed with others)
5. Publish the new version to the App Hub
1. Either on the command line using [`yarn d2-app-scripts publish`](https://developers.dhis2.org/docs/app-platform/scripts/publish/) with an API key you generated on the App Hub
2. Or by using the "New version" GUI on the App Hub by going to "Your Apps" => "Data Query Playground" => "New Version". This requires access to the DHIS2 organization
3 changes: 3 additions & 0 deletions examples/query-playground/d2.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ const config = {
title: 'Data Query Playground',
type: 'app',

id: '99d5e87f-4948-4af6-8c0b-727c77235fd1',
minDHIS2Version: '2.32',

entryPoints: {
app: './src/App',
},
Expand Down

0 comments on commit 840ac5e

Please sign in to comment.