Skip to content

Commit

Permalink
added provisioning state to grants (#15)
Browse files Browse the repository at this point in the history
* added provisioning state to grants

* added grant change type

* remove grant provisioning change state

* add changeset

---------

Co-authored-by: Josh Wilkes <[email protected]>
  • Loading branch information
meyerjrr and JoshuaWilkes authored Feb 8, 2024
1 parent 260c28d commit d22a3fe
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/lazy-ravens-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@common-fate/sdk": minor
---

add "provisioning" grant status
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Releasing and change management

## Minor version

1. Create a new minor version changeset and merge it to main `pnpm changeset`
2. Merge the automated changesets PR `Version Packages for main` this will tag and release a new version

## Patch version

1. Create a patch changeset and merge it to main `pnpm changeset`
2. If you are ready to release this change, Merge the automated changesets PR `Version Packages for main` this will tag and release a new version

## Backporting changes to older minor versions

1. Check for an existing release branch e.g `release/v1.*` for the minor version you are back porting to
2. If the branch doesn't exist, checkout the commit associated with the minor release you want to backport to
3. Run `./create-minor-release.sh` and when prompted set the release branch version e.g `v1.1` or `v1.2` excluding the patch version
4. Push the branch
5. You can now push your changes to this release branch, you may choose to cherrypick the patch from main
6. Create a patch changeset and merge it to the release branch `pnpm changeset`
7. If you are ready to release this change, Merge the automated changesets PR matching your release branch `Version Packages for release/v1.*` this will tag and release a new version
25 changes: 15 additions & 10 deletions gen/commonfate/access/v1alpha1/grant.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@common-fate/sdk",
"version": "2.7.0",
"version": "1.0.0",
"description": "",
"main": "index.js",
"keywords": [],
Expand Down
2 changes: 2 additions & 0 deletions proto/commonfate/access/v1alpha1/access.proto
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ enum GrantChange {

// The provisioning process failed for the Grant
GRANT_CHANGE_PROVISIONING_FAILED = 4;


}


Expand Down
3 changes: 3 additions & 0 deletions proto/commonfate/access/v1alpha1/grant.proto
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ enum GrantStatus {
// Awaiting a manual review.
GRANT_STATUS_PENDING = 1;


GRANT_STATUS_PROVISIONING = 2;

// The grant to the entitlement is currently active.
GRANT_STATUS_ACTIVE = 3;

Expand Down

0 comments on commit d22a3fe

Please sign in to comment.