Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netsuite error parser support for JE and Bills #118

Merged
merged 8 commits into from
Jun 13, 2023

Conversation

NileshPant1999
Copy link
Contributor

No description provided.

@NileshPant1999 NileshPant1999 temporarily deployed to CI Environment June 1, 2023 09:21 — with GitHub Actions Inactive
@github-actions
Copy link

github-actions bot commented Jun 1, 2023

Coverage

Coverage Report
FileStmtsMissCoverMissing
netsuitesdk
   __init__.py40100% 
   connection.py700100% 
netsuitesdk/api
   __init__.py00100% 
   accounts.py60100% 
   adv_inter_company_journal_entries.py70100% 
   base.py90990%26–33, 43–44, 56, 85, 103, 121–122
   classifications.py60100% 
   currencies.py100100% 
   custom_record_types.py110100% 
   custom_records.py170100% 
   customers.py210100% 
   departments.py60100% 
   employees.py340100% 
   expense_categories.py60100% 
   expense_reports.py58297%38, 46
   files.py230100% 
   folders.py170100% 
   items.py120100% 
   journal_entries.py410100% 
   locations.py60100% 
   price_level.py60100% 
   projects.py60100% 
   subsidiaries.py60100% 
   tax_groups.py60100% 
   tax_items.py60100% 
   vendor_bills.py680100% 
   vendor_payments.py46198%41
   vendors.py210100% 
netsuitesdk/errors
   __init__.py00100% 
   errors.py20100% 
   helpers.py14193%21
   parser.py27678%17–18, 21–22, 25–26
netsuitesdk/internal
   __init__.py00100% 
   client.py3127775%75, 114–115, 133–134, 147, 154–155, 162–163, 166–188, 210, 217–225, 245–248, 280, 285–291, 323, 326–329, 353, 355, 358–359, 380, 415–416, 421, 467–471, 485–486, 546–555, 604, 608, 620–621
   constants.py40100% 
   exceptions.py16381%24–26
   netsuite_types.py20100% 
   utils.py40490%34, 52, 63, 65
TOTAL102710390% 

Tests Skipped Failures Errors Time
103 11 💤 0 ❌ 0 🔥 5m 33s ⏱️

@NileshPant1999 NileshPant1999 requested a review from Shwetabhk June 1, 2023 11:05
setup.py Outdated
@@ -5,7 +5,7 @@

setuptools.setup(
name='netsuitesdk',
version='2.18.1',
version='2.18.2',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please make it 2.19.0
minor version is only for bugfixes

@@ -1,18 +1,33 @@

error_reference = {
"expense_report":
{
"expense_report": {
'category_reference_error': {'regex': r"An error occured in a upsert request: Invalid category reference key \d+ for entity \d+", 'keys': ['expense_category', 'employee']},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'category_reference_error': {'regex': r"An error occured in a upsert request: Invalid category reference key \d+ for entity \d+", 'keys': ['expense_category', 'employee']},
'category_reference_error': {
'regex': r"An error occured in a upsert request: Invalid category reference key \d+ for entity \d+",
'keys': ['expense_category', 'employee']
},

@NileshPant1999 can we format all errors like this, makes them more readable

@NileshPant1999 NileshPant1999 temporarily deployed to CI Environment June 1, 2023 14:18 — with GitHub Actions Inactive
@github-actions
Copy link

github-actions bot commented Jun 1, 2023

Coverage

Coverage Report
FileStmtsMissCoverMissing
netsuitesdk
   __init__.py40100% 
   connection.py700100% 
netsuitesdk/api
   __init__.py00100% 
   accounts.py60100% 
   adv_inter_company_journal_entries.py70100% 
   base.py90990%26–33, 43–44, 56, 85, 103, 121–122
   classifications.py60100% 
   currencies.py100100% 
   custom_record_types.py110100% 
   custom_records.py170100% 
   customers.py210100% 
   departments.py60100% 
   employees.py340100% 
   expense_categories.py60100% 
   expense_reports.py58297%38, 46
   files.py230100% 
   folders.py170100% 
   items.py120100% 
   journal_entries.py410100% 
   locations.py60100% 
   price_level.py60100% 
   projects.py60100% 
   subsidiaries.py60100% 
   tax_groups.py60100% 
   tax_items.py60100% 
   vendor_bills.py680100% 
   vendor_payments.py46198%41
   vendors.py210100% 
netsuitesdk/errors
   __init__.py00100% 
   errors.py20100% 
   helpers.py14193%21
   parser.py28486%17–18, 25–26
netsuitesdk/internal
   __init__.py00100% 
   client.py3127775%75, 114–115, 133–134, 147, 154–155, 162–163, 166–188, 210, 217–225, 245–248, 280, 285–291, 323, 326–329, 353, 355, 358–359, 380, 415–416, 421, 467–471, 485–486, 546–555, 604, 608, 620–621
   constants.py40100% 
   exceptions.py16381%24–26
   netsuite_types.py20100% 
   utils.py40490%34, 52, 63, 65
TOTAL102810190% 

Tests Skipped Failures Errors Time
105 11 💤 0 ❌ 0 🔥 3m 38s ⏱️

@NileshPant1999 NileshPant1999 temporarily deployed to CI Environment June 1, 2023 17:47 — with GitHub Actions Inactive
@github-actions
Copy link

github-actions bot commented Jun 1, 2023

Coverage

Coverage Report
FileStmtsMissCoverMissing
netsuitesdk
   __init__.py40100% 
   connection.py700100% 
netsuitesdk/api
   __init__.py00100% 
   accounts.py60100% 
   adv_inter_company_journal_entries.py70100% 
   base.py90990%26–33, 43–44, 56, 85, 103, 121–122
   classifications.py60100% 
   currencies.py100100% 
   custom_record_types.py110100% 
   custom_records.py170100% 
   customers.py210100% 
   departments.py60100% 
   employees.py340100% 
   expense_categories.py60100% 
   expense_reports.py58297%38, 46
   files.py230100% 
   folders.py170100% 
   items.py120100% 
   journal_entries.py410100% 
   locations.py60100% 
   price_level.py60100% 
   projects.py60100% 
   subsidiaries.py60100% 
   tax_groups.py60100% 
   tax_items.py60100% 
   vendor_bills.py680100% 
   vendor_payments.py46198%41
   vendors.py210100% 
netsuitesdk/errors
   __init__.py00100% 
   errors.py20100% 
   helpers.py14193%21
   parser.py28486%17–18, 25–26
netsuitesdk/internal
   __init__.py00100% 
   client.py3127775%75, 114–115, 133–134, 147, 154–155, 162–163, 166–188, 210, 217–225, 245–248, 280, 285–291, 323, 326–329, 353, 355, 358–359, 380, 415–416, 421, 467–471, 485–486, 546–555, 604, 608, 620–621
   constants.py40100% 
   exceptions.py16381%24–26
   netsuite_types.py20100% 
   utils.py40490%34, 52, 63, 65
TOTAL102810190% 

Tests Skipped Failures Errors Time
102 11 💤 0 ❌ 0 🔥 3m 58s ⏱️

@NileshPant1999 NileshPant1999 merged commit b7228e6 into master Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants