-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADR for the valid statuses of a project (#638)
* drafting an ADR for the valid statuses of a project * WIP: provenance events * Use a more intuitive constant name * Fix typo * Update spec/models/provenance_event_spec.rb Co-authored-by: carolyncole <1599081+carolyncole@users.noreply.github.com> * Update spec/models/provenance_event_spec.rb Co-authored-by: carolyncole <1599081+carolyncole@users.noreply.github.com> --------- Co-authored-by: Bess Sadler <bess.sadler@princeton.edu> Co-authored-by: carolyncole <1599081+carolyncole@users.noreply.github.com>
- Loading branch information
1 parent
5271ada
commit 6fbef75
Showing
8 changed files
with
93 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# 7. Valid Statuses for a project | ||
|
||
Date: 2024-04-12 | ||
|
||
## Status | ||
In discussion | ||
|
||
|
||
## Context | ||
|
||
- When a project is created in the rails application — the status is recorded within the `status` field of the json-b metadata. | ||
- It has a limited/ controlled vocabulary of valid options. | ||
|
||
## Decision | ||
|
||
- Status Options: | ||
- `Project::PENDING_STATUS` — When a project is created, the status defaults to pending. Meaning it must be reviewed by a system administrator. | ||
- `Project::APPROVED_STATUS` — When a project has been reviewed and approved by a system admninistrator. | ||
- `Project::ACTIVE_STATUS` — When a project has been created in mediaflux. Also the rails Project has a `mediaflux_id` which can be queried in mediaflux. | ||
|
||
## Consequences | ||
|
||
- A system administrator has to take action in mediaflux and the rails application before a project can become active | ||
- Approved and Active currently are distinct stages of a project, but may become the same in the future. | ||
- There is currently no way to move backwards or downgrade a project from approved to pending or active back to approved. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters