Skip to content

Commit

Permalink
schema
Browse files Browse the repository at this point in the history
  • Loading branch information
caddac committed Jul 6, 2022
1 parent 26aa475 commit 18da2a8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
10 changes: 6 additions & 4 deletions backend-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

This is a User Interface for the backend integration API.

## Environment Variables

# TODO
- [ ] Code up this solution
- [ ] show an approve button for each requested entitlement
- [ ] drop-down filter to show different status entitlements (active, cancelled, etc)
|Variable Name|Platform|Description| Example|
|--|--|---|--|
|PORT|GKE|The port the container should run on |8080|
|API_URL|GKE|The URL for the backend integration API|http://doit-easily-api.prod.svc.cluster.local:8080|
|URL_PREFIX|GKE|The prefix to append to all routes, should match path rules in your ingress|/be|
6 changes: 6 additions & 0 deletions backend-ui/static/approve.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ async function approve(entitlement_id) {
// window.alert(text);
window.location.reload();
}
else {
window.alert('Something went wrong... Please try again!');
}
} catch (err) {
console.log(`Error when submitting approval: ${err}`);
window.alert('Something went wrong... Please try again!');
Expand All @@ -40,6 +43,9 @@ async function reject(entitlement_id) {
// window.alert(text);
window.location.reload();
}
else {
window.alert('Something went wrong... Please try again!');
}
} catch (err) {
console.log(`Error when submitting rejection: ${err}`);
window.alert('Something went wrong... Please try again!');
Expand Down
2 changes: 1 addition & 1 deletion schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ x-google-marketplace:
applicationApiVersion: v1beta1
# The published version is required and MUST match the tag
# of the deployer image
publishedVersion: '0.1.3-alpha3'
publishedVersion: '0.1.3-alpha4'
publishedVersionMetadata:
releaseNote: >-
Initial Release of Doit Easily backend integration.
Expand Down

0 comments on commit 18da2a8

Please sign in to comment.