File tree 5 files changed +46
-0
lines changed
migrations/1735340549358_add-funding-status-description
5 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 1767
1767
columns :
1768
1768
- funding_status_id
1769
1769
- funding_status_name
1770
+ - funding_status_description
1770
1771
filter : {}
1771
1772
- role : moped-editor
1772
1773
permission :
1773
1774
columns :
1774
1775
- funding_status_id
1775
1776
- funding_status_name
1777
+ - funding_status_description
1776
1778
filter : {}
1777
1779
- role : moped-viewer
1778
1780
permission :
1779
1781
columns :
1780
1782
- funding_status_id
1781
1783
- funding_status_name
1784
+ - funding_status_description
1782
1785
filter : {}
1783
1786
- table :
1784
1787
name : moped_funds
Original file line number Diff line number Diff line change
1
+ -- Remove the funding_status_description column
2
+ ALTER TABLE " public" ." moped_fund_status"
3
+ DROP COLUMN " funding_status_description" ;
Original file line number Diff line number Diff line change
1
+ ALTER TABLE " public" ." moped_fund_status"
2
+ ADD COLUMN " funding_status_description" text NULL ;
3
+
4
+ COMMENT ON COLUMN "public"."moped_fund_status"."funding_status_description" IS ' Description of the funding status' ;
5
+
6
+ UPDATE " public" ." moped_fund_status"
7
+ SET " funding_status_description" = CASE " funding_status_name"
8
+ WHEN ' Tentative' THEN ' In conversation about possible funding commitment'
9
+ WHEN ' Confirmed' THEN ' Commitment to funding'
10
+ WHEN ' Available' THEN ' Funding is available, e.g. private developer'
11
+ WHEN ' Funding setup requested' THEN ' Requested that funding be set up in eCAPRIS'
12
+ WHEN ' Set up' THEN ' Funding has been set up in eCAPRIS; has FDU'
13
+ ELSE " funding_status_description"
14
+ END;
Original file line number Diff line number Diff line change @@ -76,5 +76,13 @@ export const TABLE_LOOKUPS_QUERY = gql`
76
76
project_role_name
77
77
project_role_description
78
78
}
79
+ moped_fund_status(
80
+ # Filter out the "Archived" status
81
+ where: { funding_status_id: { _neq: 0 } }
82
+ ) {
83
+ funding_status_name
84
+ funding_status_id
85
+ funding_status_description
86
+ }
79
87
}
80
88
` ;
Original file line number Diff line number Diff line change @@ -137,6 +137,24 @@ export const SETTINGS = [
137
137
} ,
138
138
] ,
139
139
} ,
140
+ {
141
+ key : "moped_fund_status" ,
142
+ label : "Fund Status" ,
143
+ columns : [
144
+ {
145
+ key : "funding_status_id" ,
146
+ label : "Status ID" ,
147
+ } ,
148
+ {
149
+ key : "funding_status_name" ,
150
+ label : "Name" ,
151
+ } ,
152
+ {
153
+ key : "funding_status_description" ,
154
+ label : "Description" ,
155
+ } ,
156
+ ] ,
157
+ } ,
140
158
{
141
159
key : "moped_milestones" ,
142
160
label : "Milestones" ,
You can’t perform that action at this time.
0 commit comments