Skip to content

Commit

Permalink
Make direct export GA for QBO (#91)
Browse files Browse the repository at this point in the history
* Make direct export for QBO GA

* fix test

* fix test and remove docker cache
  • Loading branch information
ashwin1111 authored Nov 29, 2023
1 parent 4485e5b commit 3812a71
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 12 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ jobs:
environment: CI Environment
steps:
- uses: actions/checkout@v2
- uses: satackey/[email protected]
continue-on-error: true
- name: Bring up Services and Run Tests
run: |
docker-compose -f docker-compose-pipeline.yml build
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/production_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ jobs:
environment: Production
steps:
- uses: actions/checkout@v2
- uses: satackey/[email protected]
continue-on-error: true
- name: push to dockerhub
uses: fylein/docker-release-action@master
env:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ jobs:
environment: CI Environment
steps:
- uses: actions/checkout@v2
- uses: satackey/[email protected]
continue-on-error: true
- name: Bring up Services and Run Tests
run: |
docker-compose -f docker-compose-pipeline.yml build
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/staging_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:
environment: Staging
steps:
- uses: actions/checkout@v2
- uses: satackey/[email protected]
continue-on-error: true
- name: push to dockerhub
uses: fylein/docker-release-action@master
env:
Expand Down
18 changes: 18 additions & 0 deletions apps/integrations/migrations/0003_auto_20231129_0557.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.1.14 on 2023-11-29 05:57

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('integrations', '0002_auto_20230829_1425'),
]

operations = [
migrations.AlterField(
model_name='integration',
name='is_beta',
field=models.BooleanField(default=True, help_text='Is Beta'),
),
]
2 changes: 1 addition & 1 deletion apps/integrations/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Integration(models.Model):
org_id = models.CharField(max_length=255, help_text='Org Id')
type = models.CharField(max_length=255, help_text='Type of Integration', choices=INTEGRATION_TYPE)
is_active = models.BooleanField(default=False, help_text='Is Integration Active')
is_beta = models.BooleanField(default=False, help_text='Is Beta')
is_beta = models.BooleanField(default=True, help_text='Is Beta')
connected_at = models.DateTimeField(auto_now_add=True, help_text='Connected at datetime')
disconnected_at = models.DateTimeField(null=True, help_text='Disconnected at datetime')
updated_at = models.DateTimeField(auto_now=True, help_text='Updated at datetime')
Expand Down
6 changes: 3 additions & 3 deletions tests/test_integrations/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_integrations_view_post_accounting(api_client, mocker, access_token):
assert response['tpa_name'] == post_integration_accounting['tpa_name']
assert response['type'] == post_integration_accounting['type']
assert response['is_active'] == post_integration_accounting['is_active']
assert response['is_beta'] == False
assert response['is_beta'] == True
assert response['disconnected_at'] == None


Expand Down Expand Up @@ -67,7 +67,7 @@ def test_integrations_view_post(api_client, mocker, access_token):
assert response['tpa_name'] == post_integration_accounting['tpa_name']
assert response['type'] == post_integration_accounting['type']
assert response['is_active'] == post_integration_accounting['is_active']
assert response['is_beta'] == False
assert response['is_beta'] == True
assert response['disconnected_at'] == None

response = api_client.post(url, post_integration_hrms)
Expand All @@ -80,7 +80,7 @@ def test_integrations_view_post(api_client, mocker, access_token):
assert response['tpa_name'] == post_integration_hrms['tpa_name']
assert response['type'] == post_integration_hrms['type']
assert response['is_active'] == post_integration_hrms['is_active']
assert response['is_beta'] == False
assert response['is_beta'] == True
assert response['disconnected_at'] == None


Expand Down

0 comments on commit 3812a71

Please sign in to comment.