Skip to content

Commit

Permalink
SW-4361 Add internal tag for accelerator participants (#1429)
Browse files Browse the repository at this point in the history
We're going to be adding system behavior that only applies to participants in
the Terraformation Accelerator. Add an internal tag so super-admins can indicate
which organizations are in the accelerator.

Nothing uses this new tag yet, but it will appear in the admin UI.
  • Loading branch information
sgrimm authored Oct 26, 2023
1 parent bf1f151 commit 70bad42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ object InternalTagIds {
val Reporter = InternalTagId(1)
val Internal = InternalTagId(2)
val Testing = InternalTagId(3)
val Accelerator = InternalTagId(4)
}
3 changes: 2 additions & 1 deletion src/main/resources/db/migration/R__TypeCodes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ SELECT t.id, t.name, t.description, TRUE, system_user.id, NOW(), system_user.id,
) AS system_user, (
VALUES (1, 'Reporter', 'Organization must submit reports to Terraformation.'),
(2, 'Internal', 'Terraformation-managed internal organization, not a customer.'),
(3, 'Testing', 'Used for internal testing; may contain invalid data.')
(3, 'Testing', 'Used for internal testing; may contain invalid data.'),
(4, 'Accelerator', 'Organization is an accelerator participant.')
) AS t (id, name, description)
ON CONFLICT (id) DO UPDATE SET name = excluded.name,
description = excluded.description;
Expand Down

0 comments on commit 70bad42

Please sign in to comment.