Skip to content

Commit

Permalink
Tracking pull request to merge release-1.20.0 to main (#583)
Browse files Browse the repository at this point in the history
* Update to 1.20.0

* Update pr number and release version

* Update dev release

* Update pipeline name to 1.20.0

* fix: itvr - fix for viewing household application console (#584)

* fix: itvr-rebate-expiration-timing-issue (#585)

---------

Co-authored-by: tim738745 <[email protected]>
  • Loading branch information
kuanfandevops and tim738745 authored Aug 24, 2023
1 parent 98e4dcc commit cf46138
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev-cicd.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## For each release, the value of workflow name, branches and PR_NUMBER need to be adjusted accordingly

name: ITVR Dev release-1.19.0
name: ITVR Dev release-1.20.0

on:
pull_request:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-build.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: ITVR release-1.19.0
name: ITVR release-1.20.0

on:
workflow_dispatch:
inputs:
pull_request:
description: 'Tracking pull request number'
required: true
default: 573
default: 583
release_branch:
description: 'The name of the release branch'
required: true
default: release-1.19.0
default: release-1.20.0

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
2 changes: 1 addition & 1 deletion django/api/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def has_change_permission(self, request, obj=None):
class ITVRInlineAdmin(admin.StackedInline):
actions = None

def has_add_permission(self, request):
def has_add_permission(self, request, obj):
return False

def has_change_permission(self, request, obj=None):
Expand Down
3 changes: 2 additions & 1 deletion django/api/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,9 +541,10 @@ def expire_rebate(rebate):
pass

def inner():
threshold = timezone.now().date() - timedelta(days=2)
expired_rebates = (
GoElectricRebate.objects.filter(redeemed=False)
.filter(expiry_date__lte=timezone.now().date())
.filter(expiry_date__lte=threshold)
.filter(ncda_id__isnull=False)
.filter(application__status=GoElectricRebateApplication.Status.APPROVED)
)[:max_number_of_rebates]
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": "frontend",
"version": "1.19.0",
"version": "1.20.0",
"private": true,
"dependencies": {
"@date-io/date-fns": "^2.14.0",
Expand Down

0 comments on commit cf46138

Please sign in to comment.