Skip to content
Open
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
4052 commits
Select commit Hold shift + click to select a range
04f8734
feat: expose return_address to GraphQL and API specs and generated cl…
danh91 Jun 5, 2024
1683a15
docs: update API docs to latest rc version
danh91 Jun 5, 2024
3d765e9
chore: update create_label component formatting
danh91 Jun 5, 2024
0e4e83d
fix: regression on FedEx shipping options parsing
danh91 Jun 6, 2024
2a4d3af
feat: Add return address to create labels forms across the dashboard
danh91 Jun 6, 2024
c1ce38b
release: 2024.6-rc5
danh91 Jun 6, 2024
70a1524
Merge pull request #603 from karrioapi/add-dashboard-support-for-retu…
danh91 Jun 6, 2024
f9e1af9
hot-fix: Redis connection invalide character issue
danh91 Jun 7, 2024
955a791
feat: Add standardized flag for all supported carriers
danh91 Jun 8, 2024
4247f7a
fix: UPS saturday delivery option flag mapping
danh91 Jun 8, 2024
2a87dd7
fix: FedEx variableOptions fallback value to None
danh91 Jun 8, 2024
3b80d17
release: 2024.6-rc7
danh91 Jun 8, 2024
de2415d
docs: Update API specs and generated API docs
danh91 Jun 8, 2024
3aabc20
Merge pull request #604 from karrioapi/fix-saturday-delivery
danh91 Jun 8, 2024
0703bd2
fix: silly carrier_id check for shipment cancellation
danh91 Jun 13, 2024
229b2b3
docs: update release version
danh91 Jun 13, 2024
d78ff44
release: 2024.6-rc8
danh91 Jun 13, 2024
c868a87
Merge pull request #605 from karrioapi/fix-cancel-carrier-id
danh91 Jun 13, 2024
577f06a
chore(deps): bump braces and gulp in /packages/karriojs
dependabot[bot] Jun 15, 2024
5068687
Merge pull request #606 from karrioapi/dependabot/npm_and_yarn/packag…
danh91 Jun 15, 2024
d0571fb
chore(deps): bump urllib3 from 2.2.1 to 2.2.2
dependabot[bot] Jun 17, 2024
ae886ca
Merge pull request #607 from karrioapi/dependabot/pip/urllib3-2.2.2
danh91 Jun 19, 2024
4c93190
chore: bootstrap DHL Express - MyDHL API extension
danh91 Jun 1, 2024
7665ad2
chore: collect mydhl API schema data
danh91 Jun 1, 2024
0bf0811
chore: generate API schema types for mydhl extension
danh91 Jun 1, 2024
a00417e
feat: set up MyDHL API connection settings
danh91 Jun 1, 2024
735ab70
feat: set up mydhl extension tests fixtures
danh91 Jun 1, 2024
9e498c0
feat: set up MyDHL API request endpoint in Karrio proxy
danh91 Jun 2, 2024
f13932d
feat: add git status
danh91 Jun 2, 2024
4a390a2
feat: Add missing trade document upload feature
danh91 Jun 2, 2024
6edb933
chore(deps): bump djangorestframework from 3.14.0 to 3.15.2
dependabot[bot] Jun 26, 2024
7b3f18e
feat(WIP): raw mappers implementation
danh91 Jun 27, 2024
a657e3a
Merge pull request #610 from karrioapi/dependabot/pip/djangorestframe…
danh91 Jun 27, 2024
ff3ee1a
chore(deps): bump certifi from 2024.2.2 to 2024.7.4
dependabot[bot] Jul 6, 2024
20e7efe
Merge pull request #611 from karrioapi/dependabot/pip/certifi-2024.7.4
danh91 Jul 8, 2024
a0bb081
chore(deps): bump django from 4.2.11 to 4.2.14
dependabot[bot] Jul 10, 2024
216e738
Merge pull request #615 from karrioapi/dependabot/pip/django-4.2.14
danh91 Jul 11, 2024
4fd6af8
chore(deps): bump sentry-sdk from 1.40.5 to 2.8.0
dependabot[bot] Jul 18, 2024
8aa6136
fix: strawberry-graphql breaking version
danh91 Jul 19, 2024
7fe83d5
Merge pull request #618 from karrioapi/dependabot/pip/sentry-sdk-2.8.0
danh91 Jul 19, 2024
21607f0
feat(WIP): implement eshipper data mappers
danh91 Jul 8, 2024
f31dd87
feat: consolidate eshipper new API integration with unit tests
danh91 Jul 14, 2024
e36a754
chore: remove deprecated eshipper_xml extension
danh91 Jul 14, 2024
32bb857
feat: setup models and update API specs for new eshipper integration
danh91 Jul 14, 2024
eb61135
chore: upgrade turbo to latest
danh91 Jul 14, 2024
b58af6c
fix: missing typing for new to_query_string helper
danh91 Jul 14, 2024
0f27577
chore: update turbopack
danh91 Jul 18, 2024
7f53234
feat: Add support for FedEx POD fetching
danh91 Jul 18, 2024
b3bf75b
Add Cancel Api messages output
jacobshilitz Jul 16, 2024
a7562cb
disabling muck data for test as it works even with real data in test …
jacobshilitz Jul 16, 2024
edd9f35
Fix Fedex for multi shipments
jacobshilitz Jul 16, 2024
2eb4dd7
FIx parsing of fedex taxes
jacobshilitz Jul 16, 2024
c94c516
Fix rates in fedex shipment should show the preferred currency rate
jacobshilitz Jul 16, 2024
1efaeeb
feat: Consolidate Fedex REST API multi-piece single request and rate …
danh91 Jul 18, 2024
f5b8931
proxy parameter for lib.request
Jul 1, 2024
8c30dbf
chore: clean up FedEx REST sandbox preset request data
danh91 Jul 18, 2024
b27517c
chore: Disable ADMIN_DASHBOARD flag by default for now
danh91 Jul 18, 2024
8046d47
fix: connection resolver issue with None settings
danh91 Jul 18, 2024
5b4ff49
feat: consolidate eshipper and fedex integration updates with live tests
danh91 Jul 18, 2024
d12f7a4
fix: broken custom document generation missing related_object params
danh91 Jul 19, 2024
7e22320
feat: introduce insured_by_default flag to automatically apply full p…
danh91 Jul 19, 2024
262d3c5
feat: add support for links rendering on metadata url values
danh91 Jul 19, 2024
cdd7a3e
feat: standardize tracking event time format with AM/PM
danh91 Jul 19, 2024
e2c3c49
feat: add missing graphql module update for insured_by_default
danh91 Jul 19, 2024
fc15e3c
release: 2024.6-rc9
danh91 Jul 19, 2024
a797ea2
docs: update docs for 2024.6-rc9
danh91 Jul 19, 2024
bea6d56
Merge pull request #612 from karrioapi/patch-2024.6-rc9
danh91 Jul 19, 2024
b4afeb1
chore: add debug log to tenant resolver
danh91 Jul 19, 2024
7a0cb9a
debug: additional logs
danh91 Jul 19, 2024
8c693af
fix: environment variables management
danh91 Jul 20, 2024
a163c1b
fix: dashboard doccker build and environment mapping post nextjs depr…
danh91 Jul 20, 2024
a5ebf0b
release: 2024.6-rc10
danh91 Jul 20, 2024
cc8c4ea
Merge pull request #619 from karrioapi/hot-fix-next-env
danh91 Jul 20, 2024
f26d935
feat: cherry-pick haypost integration
danh91 Jul 21, 2024
5f6e3ae
chore: update turbo monorepo management tool
danh91 Jul 21, 2024
174377d
Merge pull request #621 from karrioapi/haypost-merge
danh91 Jul 21, 2024
48c487d
release: 2024.6-rc12
danh91 Jul 22, 2024
4170745
hot-fix: dashboard deployment configs
danh91 Jul 22, 2024
6e002c0
release: 2024.6-rc13
danh91 Jul 22, 2024
044f588
hotfix: dashboard env issue and docker deployment default config
danh91 Jul 23, 2024
b83e0f3
docs: Add docs for karrio dashboard configuration
danh91 Jul 23, 2024
a91ed01
fix: docker-compose.yml dashboard image
danh91 Jul 23, 2024
55063aa
patch: dashboard URL usages
danh91 Jul 23, 2024
b0944bb
build: locally and separate URL references in the dashboard
danh91 Jul 23, 2024
4060f84
release: 2024.6-rc16
danh91 Jul 23, 2024
0ce2833
release: 2024.6-rc17
danh91 Jul 23, 2024
b553aac
release: 2024.6-rc18
danh91 Jul 23, 2024
0adb6b6
hotfix: dashboard KARRIO API env var references
danh91 Jul 23, 2024
cd3949b
hotfix: dashboard KARRIO API env var references
danh91 Jul 23, 2024
52ac0c9
release: 2024.6-rc20
danh91 Jul 23, 2024
46c55d4
Merge pull request #624 from karrioapi/hotfix-dashboard-env
danh91 Jul 23, 2024
5d076ba
chore: set secret key assignment to the right docker compose service
danh91 Jul 25, 2024
b8dca42
fix: latest requirements version freeze
danh91 Jul 25, 2024
d45dda9
feat: add pakage description to parcel forms and fix authenticated re…
danh91 Jul 25, 2024
d06a2c2
release: 2024.6-rc21
danh91 Jul 25, 2024
8687982
chore: update UPS shipment request data mapping tests
danh91 Jul 25, 2024
34e1764
Merge pull request #626 from karrioapi/patch-2024.6-rc21
danh91 Jul 25, 2024
a58c99e
chore: version freeze for release 2024.6-rc21
danh91 Jul 25, 2024
43ecc7d
Merge pull request #600 from karrioapi/mydhl-integration
danh91 Jul 27, 2024
34bb866
chore: rewrite providers migration for eshipper to rename and modify …
danh91 Jul 27, 2024
f1a8975
chore: disable mydhl WIP integration tests
danh91 Jul 27, 2024
4b7d0f1
chore: remove legacy USPS extensions
danh91 Jul 27, 2024
1adae20
feat: update extension template tracking event time parsing
danh91 Jul 27, 2024
67fcde0
feat: Introduce new USPS REST API integration for Domestic services
danh91 Jul 27, 2024
18f9980
feat: Introduce new USPS REST API integration for International services
danh91 Jul 27, 2024
f04c696
feat: update USPS extensions models and settings migrations
danh91 Jul 27, 2024
de93bef
consolidate: usps and usps_international integrations with unit tests
danh91 Jul 28, 2024
6aa67f6
fix: typing issues
danh91 Jul 28, 2024
c6e8801
feat(WIP): minor progress on mydhl API data mapping integration (defe…
danh91 Jul 29, 2024
2641744
feat: Handle defaulting size units to lb/in for UPS US rates and ship…
danh91 Jul 29, 2024
5d35adc
fix: #628
danh91 Jul 29, 2024
90e1837
release: 2024.6-rc22
danh91 Jul 29, 2024
1a818c7
Merge pull request #627 from karrioapi/integration-spree-2024.6
danh91 Jul 29, 2024
0693fc2
chore: freeze requirements versions
danh91 Jul 29, 2024
201a2e3
fix: migration history rewrite issue
danh91 Jul 29, 2024
3cbaedb
release: 2024.6-rc23
danh91 Jul 29, 2024
627be3d
docs: VM requirements for docker install
danh91 Jul 29, 2024
837b423
feat(refactor): Introducing a REST API for carrier connection management
danh91 Jun 8, 2024
6f22f43
chore(deps): bump django from 4.2.14 to 4.2.15
dependabot[bot] Aug 7, 2024
7d64836
Standardize "QC" to "PQ" for stateOrProvinceCode in FedEx
jacobshilitz Aug 7, 2024
4d2a07b
Disable "note" alert types as previously done in fedex_ws
jacobshilitz Aug 7, 2024
691149a
Merge pull request #636 from karrioapi/dependabot/pip/django-4.2.15
danh91 Aug 8, 2024
0873707
refactor(WIP): Carrier Connection API with migration patches
danh91 Aug 6, 2024
b68dc75
upgrade: turbo monorepo manager
danh91 Aug 9, 2024
27baf16
fix: broken types and tests
danh91 Aug 9, 2024
736b126
inclulded signedByName in info: signed_by
ChrisNolan Aug 9, 2024
0c7e10e
fedex tracking origin and destination postal codes
ChrisNolan Aug 9, 2024
b88fe12
feat: upgrade django admin carrier connection management to support n…
danh91 Aug 10, 2024
24ad2bb
docs: carrier integration guidelines to remove dashboard steps since …
danh91 Aug 11, 2024
e66dde8
release: 2024.6-rc24
danh91 Aug 11, 2024
5051a48
Merge pull request #632 from karrioapi/carrier-connection-api
danh91 Aug 11, 2024
012ec49
Merge pull request #638 from jacobshilitz/fedex-disable-notes
danh91 Aug 11, 2024
fa073d9
Merge pull request #639 from saunders-book-co/fedex-signed_by
danh91 Aug 11, 2024
85aceae
Merge pull request #637 from jacobshilitz/fedex-quebec-special-service
danh91 Aug 11, 2024
95a0f5b
fix: clean up fedex mapping Quebec with state_code PQ
danh91 Aug 11, 2024
0343ba4
feat: introduce SAPIENT carrier HUB API
danh91 Aug 1, 2024
e7b0e39
feat: consolidate sapient integration with unit tests
danh91 Aug 12, 2024
4283901
refactor: remove unecessary sapient database model
danh91 Aug 12, 2024
c284001
Merge pull request #642 from karrioapi/sapient-integration
danh91 Aug 12, 2024
0d1309d
feat: update API specs and docs for sapient integration
danh91 Aug 12, 2024
d7071c1
fix: issue with parcel label data
danh91 Aug 12, 2024
c1ae6cb
fix: Invalid eshipper packaging Unit
danh91 Aug 12, 2024
3688e4e
Merge pull request #641 from karrioapi/patch-2024.6-rc24
danh91 Aug 12, 2024
a22d1d7
release: 2024.6-rc24 version freeze
danh91 Aug 12, 2024
ca2b318
release: 2024.6-rc25 hotfix
danh91 Aug 12, 2024
04c8239
release: 2024.6-rc25 version freeze
danh91 Aug 12, 2024
b80e52c
fix: graphql carrier test_mode state
danh91 Aug 12, 2024
7996d23
patch(2024.6-rc26): cleanup remaining usage of deprated dedicated car…
danh91 Aug 12, 2024
825d618
Update package dimension handling and unit conversions
jacobshilitz Aug 12, 2024
23fa248
Ensure case-insensitive weight unit comparison
jacobshilitz Aug 12, 2024
d3a72a3
fix: migrating race condition separating carrier data restoration int…
danh91 Aug 13, 2024
a1b5e7b
release: 2024.6-rc26 version freeze
danh91 Aug 13, 2024
4aa438d
chore: update generated js sdk and docs
danh91 Aug 13, 2024
df615b7
feat: Consolidate SAPIENT integratin with live tests
danh91 Aug 18, 2024
5dff373
Merge pull request #644 from jacobshilitz/fix_eshipper_units
danh91 Aug 18, 2024
4fa62c3
update: tests for eshipper integrer parsing
danh91 Aug 18, 2024
d164049
release: 2024.6-rc27
danh91 Aug 18, 2024
f765ec7
Merge pull request #646 from karrioapi/patch-2024.6-rc27
danh91 Aug 18, 2024
bf777f1
release: 2024.6-rc27 version freeze
danh91 Aug 18, 2024
1fc8303
hotfix: add fallback values to SAPIENT shipment request
danh91 Aug 19, 2024
679ba53
release: 2024.6-rc28
danh91 Aug 19, 2024
cc8163e
hotfix: sapient unit tests
danh91 Aug 19, 2024
fa34c6c
feat: add full scope requirements for usps* oauth2 tokens
danh91 Aug 19, 2024
a1cd379
Fix eShipper server URL for production mode
jacobshilitz Aug 19, 2024
a0ed6cf
Convert label type to uppercase during shipment creation
jacobshilitz Aug 19, 2024
2030e58
feat: add karrio.lib to document template context
danh91 Aug 20, 2024
21bb072
Merge pull request #647 from jacobshilitz/eshipper-prod-url
danh91 Aug 20, 2024
2ba42dc
release: 2024.6-rc29
danh91 Aug 20, 2024
76e8c6f
Merge pull request #648 from karrioapi/patch-2024.6-rc29
danh91 Aug 20, 2024
db5e59a
release: 2024.6-rc29 version freeze
danh91 Aug 20, 2024
6889a82
refactor: carrier proxies to only be generated for django admin and p…
danh91 Aug 20, 2024
71de4b7
feat: handle fedex max contact and company name
danh91 Aug 22, 2024
3ff9167
fix: connection data parsing when saving tracing records
danh91 Aug 22, 2024
3ef15ca
chore: fix generic carrier configration parsing
danh91 Aug 22, 2024
58f37b1
fix: eshipper carrier data parsing for both rating and shipping respo…
danh91 Aug 22, 2024
f7c1be3
fix: invalid language and lang field default state assignment
danh91 Aug 22, 2024
5a40c51
chore: improve enum typing for lang and language configs for connecto…
danh91 Aug 22, 2024
e333436
chore: debug and consolidate eshipper shipment cancellation with live…
danh91 Aug 22, 2024
e44f2c9
release: 2024.6-rc30
danh91 Aug 22, 2024
e5dd697
chore: fix docs generation and docusaurus dependencies
danh91 Aug 22, 2024
f558a00
debug: Github workflow node version
danh91 Aug 22, 2024
9597f2f
Fix FedEx multi shipment creating multiple of packages
jacobshilitz Aug 22, 2024
330a6b9
Fix: set shipping date to current if it is in the past
jacobshilitz Aug 22, 2024
45cec97
debug: Github workflow node env
danh91 Aug 22, 2024
ac76dfb
Merge pull request #653 from karrioapi/debug-dashboard-build
danh91 Aug 22, 2024
2039e5d
feat: add support for fedex scan events multi-datetime formats
danh91 Aug 23, 2024
fcd9e88
Merge pull request #649 from jacobshilitz/fix-fedex-bugs
danh91 Aug 23, 2024
00513b8
Merge pull request #652 from jacobshilitz/fix-eshipper-rivo-not-showing
danh91 Aug 23, 2024
0d73add
feat: handle shipment_date update when passed upstream instead of per…
danh91 Aug 23, 2024
9046613
release: 2024.6-rc31
danh91 Aug 23, 2024
b160713
release: 2024.6-rc31 version freeze
danh91 Aug 23, 2024
353cbe0
Merge pull request #655 from karrioapi/patch-2024.6-rc31
danh91 Aug 23, 2024
9f13a81
chore: introduce script
danh91 Aug 24, 2024
9d8121b
chore: fix turbo and dashboard build requirements
danh91 Aug 24, 2024
7fb2a4a
chore: apply latest release version updates
danh91 Aug 26, 2024
660e397
fix: sapient shipment cancellation response parsing
danh91 Aug 27, 2024
a9f6bc4
release: 2024.6-rc32
danh91 Aug 27, 2024
1440c21
Eshipper fix cancel shipment request, and adding special cancel error…
jacobshilitz Aug 28, 2024
6a61300
hotfix: computed package.value_amount and weight calculation
danh91 Aug 29, 2024
88e227c
Merge pull request #661 from jacobshilitz/eshipper-cancel
danh91 Aug 29, 2024
ea3e2a2
fix: eshipper datetime requirement for ship date and update tests for…
danh91 Aug 29, 2024
fcfe6ca
release: 2024.6-rc33
danh91 Aug 29, 2024
83040c1
fix: tracker filter to return tracker if already existant
danh91 Aug 29, 2024
b4a32b8
fix: fedex tracking estimated delivery date reponse parsing
danh91 Aug 29, 2024
96b641d
fix: migration defaulting to hardcoded eshipper for carrier_name
danh91 Aug 29, 2024
50e089f
release: 2024.6-rc33 version freeze
danh91 Aug 29, 2024
42e9b42
Merge pull request #662 from karrioapi/patch-2024.6-rc33
danh91 Aug 29, 2024
ca29012
hotfix: handle max description size for sapient description of goods …
danh91 Aug 29, 2024
33c286b
release: 2024.6-rc34
danh91 Aug 29, 2024
06e378d
feat: apply utc timezone to sapient integration
danh91 Aug 30, 2024
536fc03
chore: handle eshipper credential transfer from username|password to …
danh91 Aug 30, 2024
a2a5fd7
release: 2024.6-rc35
danh91 Aug 30, 2024
b97e968
feat: Add GraphQL queries and typings for apps
danh91 Mar 25, 2024
7e8be11
feat: Introduce apps pages and fix Apps GraphQL Queries and Mutations
danh91 Mar 27, 2024
3bb2dd0
fix: dashboard build
danh91 Aug 23, 2024
aa58943
chore: deprecate apps module from OSS build
danh91 Aug 24, 2024
482a557
chore: make optional on sheet and ensure carrier connection proxies …
danh91 Aug 24, 2024
2c89231
refactor: karrio dashboard app extracting non-routing code and depend…
danh91 Aug 24, 2024
ee60265
refactor: dashboard from page router to app router
danh91 Aug 24, 2024
8b91cc4
upgrade: multi-tenant navigation
danh91 Aug 31, 2024
4d09b99
chore: update README and fix docker dashboard build
danh91 Sep 1, 2024
2ac43a3
release: 2024.6
danh91 Sep 1, 2024
df9a232
chore: introduce CHANGELOG.md
danh91 Sep 1, 2024
8642f88
Merge pull request #656 from karrioapi/apps-foundation
danh91 Sep 1, 2024
e055266
chore: update changelog
danh91 Sep 2, 2024
2696dfb
fix: multi-tenant deployment routing for dashboard
danh91 Sep 2, 2024
f1a1213
chore: Add missing country code for general enum
danh91 Sep 2, 2024
662428e
chore: add dashboard version during deployment
danh91 Sep 2, 2024
f7f3eed
release: patch-2024.6.1
danh91 Sep 2, 2024
6d8a81b
chore(deps): bump cryptography from 43.0.0 to 43.0.1
dependabot[bot] Sep 4, 2024
0b4c7d1
Merge pull request #669 from karrioapi/dependabot/pip/cryptography-43…
danh91 Sep 4, 2024
4f26746
Fixes #667: UPS ReferenceNumber changes
mazzarito Sep 4, 2024
004f8bb
Merge pull request #674 from mazzarito/matt/upstream-issue-#667
danh91 Sep 5, 2024
86b4774
chore: update tests for UPS references mapping
danh91 Sep 5, 2024
9181f2e
release: patcht 2024.6.2
danh91 Sep 5, 2024
ed34efd
chore: update CHANGELOG
danh91 Sep 5, 2024
08c4b5d
Merge pull request #677 from karrioapi/patch-2024.6.2
danh91 Sep 5, 2024
1356e4a
feat: Bootstrap SEKO Logistics extension
danh91 Sep 3, 2024
08db560
feat: initial SEKO integration with unit tests
danh91 Sep 4, 2024
903b606
feat: live test seko integration
danh91 Sep 5, 2024
8cfe4e3
fix: route formatting accross the dashboard
danh91 Sep 6, 2024
293d115
feat: Introduce computed next business datetime and apply it to sapie…
danh91 Sep 6, 2024
6a3c10e
release: patch-2024.6.3
danh91 Sep 6, 2024
1afa947
update: CHANGELOG
danh91 Sep 6, 2024
5b235d9
Merge pull request #670 from karrioapi/seko-logistics-integration
danh91 Sep 6, 2024
6333eef
fix: mappers
backendArchitect Sep 10, 2024
78ea89c
update schemas and other data
backendArchitect Sep 10, 2024
0659066
add migrations
backendArchitect Sep 10, 2024
19ef8b5
Merge branch 'main' into feat/add-ninjaVan-carrier-integration
backendArchitect Sep 10, 2024
481f340
Add Ninja Van carrier integration
backendArchitect Sep 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
11 changes: 11 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# .coveragerc to control coverage.py
[run]
branch = True
omit =
*/sdk/extensions/dicom/*

[report]
include =
*/sdk/core/*
*/sdk/extensions/*
*/sdk/vendors/*
51 changes: 51 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# https://editorconfig.org/

root = true

[*]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
charset = utf-8

# Docstrings and comments use max_line_length = 79
[*.py]
max_line_length = 119

# Use 2 spaces for the HTML files
[*.html]
indent_size = 2

# The JSON files contain newlines inconsistently
[*.json]
indent_size = 2
insert_final_newline = ignore

[**.{ts,json,js,tsx}]
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2

# Minified JavaScript files shouldn't be changed
[**.min.js]
indent_style = ignore
insert_final_newline = ignore

# Makefiles always use tabs for indentation
[Makefile]
indent_style = tab

# Batch files use tabs for indentation
[*.bat]
indent_style = tab

[docs/**.txt]
max_line_length = 79

[*.yml]
indent_size = 2
26 changes: 26 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
DEBUG_MODE=True
ALLOWED_HOSTS=*
DATABASE_NAME=db.sqlite3
# DATABASE_ENGINE=postgresql
# DATABASE_USERNAME=postgres
# DATABASE_PASSWORD=postgres
# DATABASE_NAME=db
DETACHED_WORKER=True
ALLOW_SIGNUP=True
WORK_DIR=.karrio
ADMIN_EMAIL=admin@example.com
ADMIN_PASSWORD=demo
SECRET_KEY="n*s-ex6@ex_r1i%bk=3jd)p+lsick5bi*90!mbk7rc3iy_op1r"
OIDC_RSA_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\nMIIJKQIBAAKCAgEA92+93Tyg6UvetkT0Li+RtjjeQX7mHMzvOL+HllDTfXAeh9GB\nlrgGrFR5ZTjtrmWiG3ditK3JoJGrVY4B0lFRi7d3nl8gPDR03bALEIfrB0TtiYGB\nTQ92sGBKmlRKAmAhTVXeWK+l5wdj7w8Lcoso3rpLFYSllcoJwDQ5qeP/wzJd0iYr\nyZpasx1huQZcOd/yP7Cvb9LAH8Nwqgk4WCbxHcmUVjUm1A5rNJYKCKM5uC6JvMGb\nm2mR/81SoPgU4qaW/v+L5chJoxnl7vWazKSjWcn2HkZIGshPFqpQpobIZhngC5/A\nXlXntf5CpYcauWPT3qvNJZxxJUPzziwyYFknxE72iURCSBNn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+0OePe8+ajcd8yRld2Oq40ZpMdgmzWj1s5Ctg1nwzH\n946EiX+fI/zfmDmVenySt3QqFXLFhR+TYJFSd3Q8WU2LlKtzsaiOV9H2LyuFDBu2\nlp0spsnrS0hAYw45zrgHtpU6wVpZpzNqxwMK7tv7nJ2fMyS+wPQt5uPHvrCXrxL7\nrFJMMCcN0JsoPsYzsshopQJKuFh2J8PzhOXlhJmj1OMmZfHQey4OsRRW+ZlqhYc0\nR6p0ZkjA+T9/aUeoOLWiuQkBKiwsXwMIM0B3krdDko5bx2PnobS7j+cDJk9qiKsF\nS1YVrA9Pq+gZ49OS9p2Gux/VO9tyzk43AoIBAQCxl3RcyaE0JWVByVhaA4Ej+zr4\nlD4UcJsjxPkW5a2k8d3xa63IDBU2yehZNGwQmmc1Y/DoQNMiO+Zagj4gawUWZRcf\nO6YSEHNhPzKMLIxFxpAXYTEcdpwgQ+eWrLP5EvAT2qyqC9Y1CnY6lyT8tLuZkrxv\nGc41na1aSr0FF2EIEzcDgxYWDSvfx2G/k23t7qIcLxYcyFhyvIyCN0JrtvcBB7zy\nALTL9QubmLGZaN+igOfDImdvDVO/BV4GV74OiGFJu1pAStiNmkmlK2J+wI9n3iHT\n3/1coqkpWG7gBcA/Exhh4oDjoaKEE00nPJ1m5Q0a65eb4kG4n2bx116hdZb4\n-----END RSA PRIVATE KEY-----"
WORKER_IMMEDIATE_MODE=True

## Email auth
# EMAIL_PORT=1025
# EMAIL_USE_TLS=false
# EMAIL_HOST=maildev
# EMAIL_HOST_USER=admin@example.com

## Redis config
# REDIS_HOST=localhost
# REDIS_PORT=6379
# REDIS_PASSWORD=redis
5 changes: 5 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# These are supported funding model platforms

github: [karrioapi]
polar: karrioapi
custom: ['https://docs.karrio.io/insiders']
84 changes: 84 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: karrio-build

on:
push:
branches: [ "main" ]

jobs:
changes:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.changes.outputs.version }}
steps:
- uses: actions/checkout@v3

- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
version:
- 'apps/api/karrio/server/VERSION'

server-build:

needs: changes
if: ${{ needs.changes.outputs.version == 'true' }}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write

steps:
- uses: actions/checkout@v3

- id: get_tag
run: |
cat ./apps/api/karrio/server/VERSION
echo "tag=$(cat ./apps/api/karrio/server/VERSION)" >> "$GITHUB_ENV"

- name: Build karrio server image
run: |
echo 'Building karrio server:${{ env.tag }}...'
./bin/build-server-image-from-source ${{ env.tag }}

- name: Push karrio server image
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}

echo 'Pushing karrio server:${{ env.tag }}...'
docker push karrio/server:${{ env.tag }}
docker tag karrio/server:${{ env.tag }} karrio/server:latest-rc
docker push karrio/server:latest-rc

dashboard-build:

needs: changes
if: ${{ needs.changes.outputs.version == 'true' }}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write

steps:
- uses: actions/checkout@v3

- id: get_tag
run: |
cat ./apps/api/karrio/server/VERSION
echo "tag=$(cat ./apps/api/karrio/server/VERSION)" >> "$GITHUB_ENV"

- name: Build karrio dashboard image
run: |
echo 'Building karrio dashboard:${{ env.tag }}...'
./bin/build-dashboard-image ${{ env.tag }}

- name: Push karrio dashboard image
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}

echo 'Pushing karrio dashboard:${{ env.tag }}...'
docker push karrio/dashboard:${{ env.tag }}
docker tag karrio/dashboard:${{ env.tag }} karrio/dashboard:latest-rc
docker push karrio/dashboard:latest-rc
45 changes: 0 additions & 45 deletions .github/workflows/pythonpackage.yml

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: karrio-tests

on: [push]

jobs:
sdk-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.12"]

steps:
- uses: actions/checkout@v2
- name: Run Tests
run: |
./bin/setup-sdk-env &&
./bin/run-sdk-typecheck &&
./bin/run-sdk-tests

server-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.12"]

steps:
- uses: actions/checkout@v2
- name: Run Tests
run: |
./bin/setup-server-env &&
./bin/migrate &&
./bin/run-server-tests

dashbaord-ci:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install
run: |
npm install
- name: Test Build
run: |
npm run build -w apps/dashboard
44 changes: 24 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
Expand All @@ -40,14 +38,12 @@ pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

Expand All @@ -59,7 +55,6 @@ coverage.xml
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
Expand All @@ -77,20 +72,9 @@ target/
# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# celery beat schedule file
celerybeat-schedule

Expand Down Expand Up @@ -118,10 +102,30 @@ venv.bak/

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/
# misc
*.DS_Store
*.pem

# node
node_modules

# turbo
.turbo

# vercel
.vercel

# karrio stuff:
!apps/dashboard/src/lib
!packages/lib

.bash_history

.idea/
staticfiles/*
apps/api/karrio/server/staticfiles/*

.karrio/
packages/karriojs/api/generated
!docker/.env
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto-install-peers = true
18 changes: 18 additions & 0 deletions .postman/api
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
id = d037504d-3941-4465-afdc-f297ec531e95

[relations]

[relations.collections]
rootDirectory = postman/collections
files[] = {"id":"25615403-a5323baf-bc0b-406d-bd75-74766f43fe4d","path":"Karrio API.json","metaData":{}}

[relations.collections.metaData]

[relations.apiDefinition]
rootDirectory = postman/schemas
files[] = {"path":"openapi.yml","metaData":{}}

[relations.apiDefinition.metaData]
type = openapi:3
rootFiles[] = openapi.yml
Loading