Skip to content

Commit

Permalink
Tracking pull request to merge release-1.6.23.1 to master (#1741)
Browse files Browse the repository at this point in the history
* update to 1.6.23-1, it was 1.6.22.3, it really should be 1.6.23

* Fixed internal comments showing up for supplier spreadsheet (#1740)

* update pipeline for the release

* only deploy frontend and backend for 1.6.23.1

* added relemase management

Co-authored-by: Richard <[email protected]>
  • Loading branch information
kuanfandevops and amichard authored Apr 15, 2021
1 parent ed39730 commit 4f09acb
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .pipeline/lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = settings => {
'GIT_REF': oc.git.ref
}
}))

/*
//build celery
objects = objects.concat(oc.processDeploymentTemplate(`${templatesLocalBaseUrl}/templates/celery/celery-bc.yaml`, {
'param':{
Expand Down Expand Up @@ -88,7 +88,7 @@ objects = objects.concat(oc.processDeploymentTemplate(`${templatesLocalBaseUrl}/
'RELEASE_BRANCH': phases[phase].releaseBranch
}
}))

*/
oc.applyRecommendedLabels(
objects,
phases[phase].name,
Expand Down
2 changes: 1 addition & 1 deletion .pipeline/lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const ocpName = 'apps.silver.devops'
const phases = {
build: { namespace:'0ab226-tools' , name: `${name}`, phase: 'build' , changeId:changeId, suffix: `-build-${changeId}` ,
instance: `${name}-build-${changeId}` , version:`${version}-${changeId}`, tag:`build-${version}-${changeId}`,
releaseBranch: 'release-1.6.23'
releaseBranch: 'release-1.6.23.1'
},
dev: {namespace:'0ab226-dev' , name: `${name}`, phase: 'dev' , changeId:changeId, suffix: `-dev-${changeId}` ,
instance: `${name}-dev-${changeId}` , version:`${version}-${changeId}`, tag:`dev-${version}-${changeId}`,
Expand Down
5 changes: 3 additions & 2 deletions .pipeline/lib/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ module.exports = settings => {
}
}))

//deploy frontend
objects = objects.concat(oc.processDeploymentTemplate(`${templatesLocalBaseUrl}/templates/frontend/frontend-dc.yaml`, {
'param': {
'NAME': phases[phase].name,
Expand All @@ -52,7 +53,7 @@ module.exports = settings => {
}
}))


/**
//deploy celery
objects = objects.concat(oc.processDeploymentTemplate(`${templatesLocalBaseUrl}/templates/celery/celery-dc.yaml`, {
'param': {
Expand Down Expand Up @@ -164,7 +165,7 @@ module.exports = settings => {
}
}))
}

*/
oc.applyRecommendedLabels(
objects,
phases[phase].name,
Expand Down
11 changes: 8 additions & 3 deletions backend/api/services/SpreadSheetBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ def add_fuel_codes(self, fuel_codes):
col.value_accessor(fuel_code),
col.format)


def add_credit_transfers(self, credit_trades):
def add_credit_transfers(self, credit_trades, user):
"""
Adds a spreadsheet for credit transfers
"""
Expand Down Expand Up @@ -143,11 +142,17 @@ def add_credit_transfers(self, credit_trades):
worksheet.write(row_index, 8, credit_trade.trade_effective_date,
date_format)

comments = credit_trade.unprivileged_comments

if user.has_perm('VIEW_PRIVILEGED_COMMENTS'):
comments = credit_trade.comments

comment = "\n".join(
'{}: "{}"'.format(
comment.create_user.display_name, comment.comment
) for comment in credit_trade.comments
) for comment in comments
)

worksheet.write(row_index, 9, comment, comment_format)

# set the widths for the columns that we expect to be longer
Expand Down
2 changes: 1 addition & 1 deletion backend/api/viewsets/CreditTrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def xls(self, request):
)

workbook = SpreadSheetBuilder()
workbook.add_credit_transfers(credit_trades)
workbook.add_credit_transfers(credit_trades, request.user)

if request.user.is_government_user:
fuel_suppliers = Organization.objects.extra(
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tfrs",
"version": "1.6.22.3",
"version": "1.6.23-1",
"private": true,
"dependencies": {
"@fortawesome/fontawesome": "^1.1.8",
Expand Down
1 change: 1 addition & 0 deletions openshift-v4/release-management/release-management.drawio
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<mxfile host="app.diagrams.net" modified="2021-04-15T19:49:29.325Z" agent="5.0 (Macintosh; Intel Mac OS X 11_2_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36" etag="V5RVpe3OK7GSMLwDDyiQ" version="14.5.8" type="device"><diagram id="LU24Kr6hN9gGyUAq_PZh" name="Page-1">3Vpdb9owFP01PIJiOwnksWNdt2mTpvHQ7WlyiUncOnHkmAL79bMTh3w4dFSlAfGC4uOP2Pcc3+vrMELzZHsncBZ/5yFhI+iE2xH6OIJwBlz1q4FdCQDP90okEjQ0WA0s6F9iQMegaxqSvNVQcs4kzdrgkqcpWcoWhoXgm3azFWftt2Y4IhawWGJmo/c0lLFZl+fU+GdCo7h6M3BMTYKrxgbIYxzyTQNCtyM0F5zL8inZzgnTxqvsUvb7dKB2PzFBUnlMhx9392jx9Wfsjjfbe7Zgf77cuWPfzE3uqgWTUK3fFLmQMY94itltjX4QfJ2GRI/qqFLd5hvnmQKBAh+JlDtDJl5LrqBYJszUki2VvxrPv/VQE8+UPm7NyEVhVxVSKXa/moVGL12suxWlql+5Pr2og2YzUM7XYklesFUlPywiIl9oh/bkql1BeELUfFQ/QRiW9Lk9D2zkGe3b1QyqB0PiKwg14z5jtjZvmjrQJ24P0YypTaQJ3cRUkkWGi9Vv1D5u04XzrNxZK7rVtBubPhMhyfZlq9pWMB3QzOwK4xdgtW02jU1moLixvyrs5HaDlt0SnEsiLLOpNcu2fXIp+BOZc8aFQlKeapuuKGMdCDMapaq4VDZSA6MP2oJUuZobU5HQMGSHCGnvulNQADoUIJsCt4cC+F4UAGAZ+0zOCFy6K0JHuiLg9EvgaF9UdL0RAu8aDTJOU5k3Rv6hgVpZPuwoy5+1I9N/2iPf6YipnEEtrf1S3qA271LU5lyN2t4a+U6jNgBfpTaABlAbssILCVEwrVzupYRlrxsTzh2WXctumRgDP7CPM9cTlwO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