-
Notifications
You must be signed in to change notification settings - Fork 22
feat: metadata import (updated for v14) #80
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
Open
batonac
wants to merge
30
commits into
ParsimonyGit:main-v14
Choose a base branch
from
Avunu:metadataimport-v14
base: main-v14
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 10 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
2da58f2
Port metadata import to v14.
batonac 586eded
Port metadata import to v14.
batonac 6604ea1
Co-authored-by: Kevin Shenk <kevin@avu.nu>
batonac 41318a0
Cleanup Code
batonac 56406e6
Reformat tab size.
batonac 0cf39cb
Make requested changes to pull request.
batonac 58dc49b
Remove Create/Update Custom Fields Button, validate custom field not …
batonac 70c1220
Adjust new JS for custom field validation before delete per deepsourc…
batonac e5f9a8e
Fix bug so that unedited new custom fields can be deleted.
batonac 9565db8
Fix bug on deleting empty custom fields.
batonac 9a2dd8c
fix: format files
8b19d54
fix: add tab breaks
1b55e54
remove mandatory field
batonac 6683a8b
Merge pull request #1 from Alchez/metadataimport-v14
batonac 9c6e7d8
drop section break custom field option
batonac 0886ddf
refactor: address updating
batonac 0fd20a0
refactor: remove amazon_customer
batonac 21bf1cb
refactor: create or update address
batonac 95bf7c1
feat: add or update address
batonac d37d759
feat: order status
batonac 95ccf23
fix: cancelation procedure
batonac 2be2927
feat: update code
batonac de90070
fix: missing customer email handling
batonac 911073b
feat: add custom check fields
batonac b816277
feat: cancel the order explicitly
batonac 6173167
fix: fix the customer matching code
batonac 5ef2506
fix: type annotations
batonac 7fb2c80
chore: type annotations
batonac 9e07d85
chore: pylance issues
batonac 7a312ac
feat: enhance logging in order processing and validation
batonac File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Empty file.
120 changes: 120 additions & 0 deletions
120
...tion_integration/doctype/shipstation_item_custom_field/shipstation_item_custom_field.json
This file contains hidden or 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,120 @@ | ||
| { | ||
| "actions": [], | ||
| "creation": "2023-03-22 09:59:42.179486", | ||
| "default_view": "List", | ||
| "doctype": "DocType", | ||
| "editable_grid": 1, | ||
| "engine": "InnoDB", | ||
| "field_order": [ | ||
| "label", | ||
| "fieldtype", | ||
| "fieldname", | ||
| "length", | ||
| "mandatory", | ||
| "hidden", | ||
| "read_only", | ||
| "reqd", | ||
| "column_break_oh9el", | ||
| "options", | ||
| "default", | ||
| "fetch_from", | ||
| "fetch_if_empty" | ||
| ], | ||
| "fields": [ | ||
| { | ||
| "bold": 1, | ||
| "fieldname": "label", | ||
| "fieldtype": "Data", | ||
| "in_list_view": 1, | ||
| "label": "Label", | ||
| "reqd": 1 | ||
| }, | ||
| { | ||
| "default": "0", | ||
| "fieldname": "mandatory", | ||
| "fieldtype": "Check", | ||
| "in_list_view": 1, | ||
| "label": "Mandatory" | ||
| }, | ||
| { | ||
| "default": "0", | ||
| "fieldname": "hidden", | ||
| "fieldtype": "Check", | ||
| "in_list_view": 1, | ||
| "label": "Hidden" | ||
| }, | ||
| { | ||
| "default": "0", | ||
| "fieldname": "read_only", | ||
| "fieldtype": "Check", | ||
| "in_list_view": 1, | ||
| "label": "Read Only" | ||
| }, | ||
| { | ||
| "fieldname": "options", | ||
| "fieldtype": "Small Text", | ||
| "label": "Options" | ||
| }, | ||
| { | ||
| "fieldname": "column_break_oh9el", | ||
| "fieldtype": "Column Break" | ||
| }, | ||
| { | ||
| "fieldname": "default", | ||
| "fieldtype": "Small Text", | ||
| "label": "Default" | ||
| }, | ||
| { | ||
| "fieldname": "fetch_from", | ||
| "fieldtype": "Small Text", | ||
| "label": "Fetch From" | ||
| }, | ||
| { | ||
| "default": "0", | ||
| "fieldname": "fetch_if_empty", | ||
| "fieldtype": "Check", | ||
| "label": "Fetch If Empty" | ||
| }, | ||
| { | ||
| "bold": 1, | ||
| "default": "Data", | ||
| "fieldname": "fieldtype", | ||
| "fieldtype": "Select", | ||
| "in_list_view": 1, | ||
| "label": "Type", | ||
| "options": "\nCheck\nData\nLink\nSection Break\nSelect\nSmall Text\nText", | ||
| "reqd": 1 | ||
| }, | ||
| { | ||
| "bold": 1, | ||
| "fieldname": "fieldname", | ||
| "fieldtype": "Data", | ||
| "in_list_view": 1, | ||
| "label": "Name", | ||
| "reqd": 1 | ||
| }, | ||
| { | ||
| "fieldname": "length", | ||
| "fieldtype": "Data", | ||
| "label": "Length" | ||
| }, | ||
| { | ||
| "default": "0", | ||
| "fieldname": "reqd", | ||
| "fieldtype": "Check", | ||
| "label": "Reqd" | ||
|
Alchez marked this conversation as resolved.
Outdated
|
||
| } | ||
| ], | ||
| "index_web_pages_for_search": 1, | ||
| "istable": 1, | ||
| "links": [], | ||
| "modified": "2023-03-28 09:05:26.518578", | ||
| "modified_by": "Administrator", | ||
| "module": "Shipstation Integration", | ||
| "name": "Shipstation Item Custom Field", | ||
| "owner": "Administrator", | ||
| "permissions": [], | ||
| "sort_field": "modified", | ||
| "sort_order": "DESC", | ||
| "states": [] | ||
| } | ||
9 changes: 9 additions & 0 deletions
9
...tation_integration/doctype/shipstation_item_custom_field/shipstation_item_custom_field.py
This file contains hidden or 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,9 @@ | ||
| # Copyright (c) 2023, Parsimony LLC and contributors | ||
| # For license information, please see license.txt | ||
|
|
||
| # import frappe | ||
| from frappe.model.document import Document | ||
|
|
||
|
|
||
| class ShipstationItemCustomField(Document): | ||
| pass |
Empty file.
45 changes: 45 additions & 0 deletions
45
...on_integration/shipstation_integration/doctype/shipstation_option/shipstation_option.json
This file contains hidden or 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,45 @@ | ||
| { | ||
| "actions": [], | ||
| "allow_rename": 1, | ||
| "creation": "2023-03-22 09:21:18.362079", | ||
| "default_view": "List", | ||
| "doctype": "DocType", | ||
| "editable_grid": 1, | ||
| "engine": "InnoDB", | ||
| "field_order": [ | ||
| "shipstation_option_name", | ||
| "column_break_lcx0j", | ||
| "item_field" | ||
| ], | ||
| "fields": [ | ||
| { | ||
| "fieldname": "item_field", | ||
| "fieldtype": "Select", | ||
| "in_list_view": 1, | ||
| "label": "Item Field" | ||
| }, | ||
| { | ||
| "fieldname": "column_break_lcx0j", | ||
| "fieldtype": "Column Break" | ||
| }, | ||
| { | ||
| "bold": 1, | ||
| "fieldname": "shipstation_option_name", | ||
| "fieldtype": "Data", | ||
| "in_list_view": 1, | ||
| "label": "Shipstation Option Name" | ||
| } | ||
| ], | ||
| "index_web_pages_for_search": 1, | ||
| "istable": 1, | ||
| "links": [], | ||
| "modified": "2023-03-28 16:46:54.820883", | ||
| "modified_by": "Administrator", | ||
| "module": "Shipstation Integration", | ||
| "name": "Shipstation Option", | ||
| "owner": "Administrator", | ||
| "permissions": [], | ||
| "sort_field": "modified", | ||
| "sort_order": "DESC", | ||
| "states": [] | ||
| } |
9 changes: 9 additions & 0 deletions
9
...tion_integration/shipstation_integration/doctype/shipstation_option/shipstation_option.py
This file contains hidden or 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,9 @@ | ||
| # Copyright (c) 2023, Parsimony LLC and contributors | ||
| # For license information, please see license.txt | ||
|
|
||
| # import frappe | ||
| from frappe.model.document import Document | ||
|
|
||
|
|
||
| class ShipstationOption(Document): | ||
| pass |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.