generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-0.2.21' into main
- Loading branch information
Showing
13 changed files
with
110 additions
and
77 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,3 @@ | ||
export const numberWithCommas = x => { | ||
return parseFloat(x).toLocaleString("en"); | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
2 changes: 2 additions & 0 deletions
2
server/db/migration/V20210414.1954__changed_spcs_to_spaces.sql
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,2 @@ | ||
UPDATE CalculationRule SET units = 'spaces' WHERE calculationId = 1 and units ='spcs'; | ||
UPDATE CalculationRule SET units = 'spaces' WHERE calculationId = 1 and units ='spaves'; |
3 changes: 3 additions & 0 deletions
3
server/db/migration/V20210421.1652__update_bike_parking_spelling_803.sql
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,3 @@ | ||
UPDATE [dbo].[CalculationRule] | ||
SET name = 'Bike Parking (Required on all new developments)' | ||
WHERE calculationid = 1 AND code ='STRATEGY_BIKE_4'; |
40 changes: 40 additions & 0 deletions
40
server/db/migration/V20210423.2115__update_car_share_strategy_791.sql
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,40 @@ | ||
UPDATE [dbo].[CalculationRule] | ||
SET name = 'Car Share Memberships', | ||
dataType = 'choice', | ||
choices = '[{"id": "0", "name":"N/A"},{"id": "1", "name":"Third party operator membership"},{"id": "2", "name":"BlueLA"}]', | ||
description = 'Offer an annual car share membership for at least 50% of residents or employees. Membership to Blue LA Car Share earns an additional point due to the program''s priority on promoting equity in selecting the service area. Consult LADOT in determining if the project location is eligible for Blue LA membership based on the service area.' | ||
WHERE calculationid = 1 AND code ='STRATEGY_CAR_SHARE_3'; | ||
|
||
UPDATE [dbo].[CalculationRule] | ||
SET functionBody = 'switch(<<STRATEGY_CAR_SHARE_3>>){ | ||
case 0: return 0; | ||
case 1: return 3; | ||
case 2: return 4; | ||
} | ||
', | ||
minValue = 3, maxValue = 4 | ||
WHERE calculationid = 1 AND code ='PTS_CAR_SHARE_3'; | ||
|
||
DELETE [dbo].[CalculationRule] | ||
WHERE calculationid = 1 AND code ='STRATEGY_CAR_SHARE_2'; | ||
|
||
DELETE [dbo].[CalculationRule] | ||
WHERE calculationid = 1 AND code ='PTS_CAR_SHARE_2'; | ||
|
||
UPDATE [dbo].[CalculationRule] | ||
SET functionBody = 'return <<PTS_CAR_SHARE_1>> + | ||
<<PTS_CAR_SHARE_3>> + | ||
<<PTS_CAR_SHARE_4>> + | ||
<<PTS_CAR_SHARE_BONUS>> + | ||
<<PTS_CAR_SHARE_ELECTRIC>> ; | ||
' | ||
WHERE calculationid = 1 AND code ='PTS_CAR_SHARE'; | ||
|
||
UPDATE [dbo].[CalculationRule] | ||
SET functionBody = ' | ||
// <<STRATEGY_CAR_SHARE_BONUS>> | ||
return (Math.sign(<<PTS_CAR_SHARE_1>>) | ||
+ Math.sign(<<PTS_CAR_SHARE_3>>) | ||
+ Math.sign(<<PTS_CAR_SHARE_4>>) > 1) ? 2 : 0; | ||
' | ||
WHERE calculationid = 1 AND code ='PTS_CAR_SHARE_BONUS'; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.