Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4136 commits
Select commit Hold shift + click to select a range
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
3601f5c
Refactor UPS rate calculation logic
jacobshilitz Sep 4, 2024
4f26746
Fixes #667: UPS ReferenceNumber changes
mazzarito Sep 4, 2024
a48cb4e
UPS Refactor surcharge type mapping and formatting
jacobshilitz Sep 5, 2024
8858659
Update UPS rate test charges and rename surcharge codes
jacobshilitz Sep 5, 2024
38ecfcc
Remove redundant extra charge entries in UPS rate tests
jacobshilitz Sep 5, 2024
5064656
Fallback to 'receivedByName' if Fedex's 'signedByName' is missing whe…
ChrisNolan Sep 5, 2024
2248e6d
Update my tracking re estimated delivery dates to try and avoid merge…
ChrisNolan Sep 5, 2024
aedfc93
Trying to prevent merge conflicts
ChrisNolan Sep 5, 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
00443bc
Merge branch 'fedex_tracker_updates' of https://github.com/saunders-b…
ChrisNolan Sep 11, 2024
bb75e15
Merge pull request #673 from jacobshilitz/ups_surcharges_mapping
danh91 Sep 11, 2024
1cc3d92
chore: update UPS rating response schema and simplified parsing
danh91 Sep 11, 2024
b7d1af5
chore: Add tests for EU rates parsing
danh91 Sep 11, 2024
5af99fd
feat: Add field to unified class for future support of message level
danh91 Sep 11, 2024
3ae1bf9
fix: use current date for group_id to ensure all end of day manifest …
danh91 Sep 11, 2024
b87a724
chore: make ups upper case for uniform charges details
danh91 Sep 11, 2024
5d4d0fe
chore: update canada post customer_request_ids to use uniq hex code
danh91 Sep 11, 2024
39b6e0a
chore: use localhost address for default NEXT_PUBLIC_KARRIO_PUBLIC_UR…
danh91 Sep 11, 2024
497c71a
release: patcht 2024.6.4
danh91 Sep 11, 2024
f69d63c
chore: update changelog for release 2024.6.4
danh91 Sep 11, 2024
d9afa1f
Merge pull request #681 from karrioapi/patch-2024.6.4
danh91 Sep 11, 2024
36217a0
Fix shipment identifier assignment in create shipment
jacobshilitz Sep 12, 2024
a7ceb37
add healthcheck to api container
bijancot Sep 12, 2024
e81b994
update docker image to default avoid confusion
bijancot Sep 12, 2024
b9e3f5b
update docker image to default avoid confusion
bijancot Sep 12, 2024
f93251f
update docker image to default avoid confusion
bijancot Sep 12, 2024
53b98fe
Merge pull request #684 from bijancot/main
danh91 Sep 12, 2024
1c79344
release: patcht 2024.6.5
danh91 Sep 12, 2024
2a3838d
chore: update changelog for release 2024.6.5
danh91 Sep 12, 2024
f8d8d0d
Merge pull request #683 from jacobshilitz/canada-post-shipment-id-not…
danh91 Sep 12, 2024
c9d4b19
release: patcht 2024.6.6
danh91 Sep 12, 2024
80e2372
release: 2024.6.6 version freeze
danh91 Sep 12, 2024
c895703
Merge pull request #685 from karrioapi/patch-2024.6.6
danh91 Sep 12, 2024
9d122b8
hotfix: invalid group_id date string
danh91 Sep 12, 2024
99ce98c
release: hotfix-2024.6.7
danh91 Sep 12, 2024
3b26145
feat: Bootstrap easyship extension
danh91 Sep 14, 2024
8b28f8b
Correct typo "Delet" -> "Delete" and add tracking number to the dialog
ChrisNolan Sep 18, 2024
e7e8a97
If the tracker has been Delivered, include the signed_by as part of t…
ChrisNolan Sep 18, 2024
eeead1e
Show error directly (in case of no API server running for example), a…
ChrisNolan Sep 18, 2024
a92bfb1
Display available 'info' fields in the tracker preview header
ChrisNolan Sep 18, 2024
3a01862
Refactor tracking-preview and tracking-page so they don't repeat them…
ChrisNolan Sep 18, 2024
09d8fb9
Fix Fedex's SPOD (Signature Proof of Delivery) logic
ChrisNolan Sep 19, 2024
9f9a056
More effort to try and get the '404' page to actually show... ugly bu…
ChrisNolan Sep 19, 2024
5b68451
chore(deps-dev): bump rollup and @rollup/plugin-typescript
dependabot[bot] Sep 25, 2024
16e0b9d
Merge pull request #695 from karrioapi/dependabot/npm_and_yarn/packag…
danh91 Sep 25, 2024
e060b5c
feat(WIP): Booststrap TNT IT extension with raw implementations
danh91 Sep 25, 2024
ac45c97
Merge branch 'main' into karrio-2024.9
danh91 Sep 25, 2024
27ae732
feat: add direct category field to Commodity standardized model
danh91 Sep 26, 2024
d44f07b
chore: exclude WIP TNT IT extension
danh91 Sep 27, 2024
cbb57f8
feat: Consolidate easyship integration with unit tests
danh91 Sep 27, 2024
b47d1d1
fix: manifest mapper template shadow variables
danh91 Sep 27, 2024
94fa5f7
feat: update PickupRequest models to support shipment_identifiers list
danh91 Sep 27, 2024
6013b40
chore: remove remains of deprecated carrier relation filters
danh91 Sep 27, 2024
d076ea9
feat: forward shipment meta and options to pickup and trackers for co…
danh91 Sep 27, 2024
4497ee7
tests: update tests following new properties updates
danh91 Sep 27, 2024
cb9e301
fix: easyship carrier metadata and introduce helpers to load file con…
danh91 Sep 28, 2024
b13aa0d
feat: add fedex raw mapper
danh91 Sep 29, 2024
fb0e837
fix: organization GraphQL queries running on OSS build
danh91 Sep 29, 2024
d48b65b
chore(deps): update turbo
danh91 Sep 29, 2024
ba8bc61
fix: fedex_ws requests with invalid encodings
danh91 Sep 29, 2024
4ca0755
feat: append carrier_id to make daily group_id uniq per account
danh91 Sep 29, 2024
a3bc8fb
refactor: eshipper carrier and service data mapping
danh91 Sep 30, 2024
388405d
feat(WIP): Introduce shipping_date for datetime format for carrier ex…
danh91 Sep 30, 2024
1341b59
feat: Consolidate Easyship integration with live tests
danh91 Sep 30, 2024
d70733d
feat: add fallback to shipping_date from shipment_date when shipment_…
danh91 Sep 30, 2024
ba0c4a6
feat: Consolidate Eshipper carrier and service data mapping with live…
danh91 Sep 30, 2024
0f1f153
feat: introduce dhl_shipment_content to allow custom content descript…
danh91 Oct 1, 2024
b2f2555
chore(deps-dev): bump rollup and @rollup/plugin-typescript
dependabot[bot] Sep 25, 2024
32bfb0a
chore(deps): bump strawberry-graphql from 0.234.0 to 0.243.0
dependabot[bot] Sep 25, 2024
b0726d6
fix: deprecated strawberry unset submodule
danh91 Oct 1, 2024
3ad2058
Merge pull request #696 from karrioapi/dependabot/pip/strawberry-grap…
danh91 Oct 1, 2024
762ff38
release: 2024.9
danh91 Oct 1, 2024
54b710d
Merge pull request #698 from karrioapi/karrio-2024.9
danh91 Oct 1, 2024
9f47df0
minor clean-up
ChrisNolan Oct 1, 2024
fa0937d
release: 2024.9.1
danh91 Oct 1, 2024
b643747
Merge pull request #701 from karrioapi/hotfix-docker-build
danh91 Oct 1, 2024
84049ce
Typescript issues etc
ChrisNolan Oct 1, 2024
7293190
remove a bunch of unnecessary debug logging
ChrisNolan Oct 1, 2024
a648a0d
remove unnecessary logging
ChrisNolan Oct 1, 2024
dc0c442
Fallback to 'receivedByName' if Fedex's 'signedByName' is missing whe…
ChrisNolan Sep 5, 2024
223727b
Trying to prevent merge conflicts
ChrisNolan Sep 5, 2024
ca23bec
Correct typo "Delet" -> "Delete" and add tracking number to the dialog
ChrisNolan Sep 18, 2024
5a1a784
If the tracker has been Delivered, include the signed_by as part of t…
ChrisNolan Sep 18, 2024
2ea146f
Display available 'info' fields in the tracker preview header
ChrisNolan Sep 18, 2024
a8ed7cc
Refactor tracking-preview and tracking-page so they don't repeat them…
ChrisNolan Sep 18, 2024
f32c7cd
Fix Fedex's SPOD (Signature Proof of Delivery) logic
ChrisNolan Sep 19, 2024
f523562
minor clean-up
ChrisNolan Oct 1, 2024
19062e6
Typescript issues etc
ChrisNolan Oct 1, 2024
b8c9ed9
remove a bunch of unnecessary debug logging
ChrisNolan Oct 1, 2024
0331242
remove unnecessary logging
ChrisNolan Oct 1, 2024
d1dff9e
merge after rebase?
ChrisNolan Oct 2, 2024
46bb061
Merge branch 'fedex_tracker_updates' of https://github.com/saunders-b…
ChrisNolan Oct 2, 2024
14af461
address codacy issues
ChrisNolan Oct 2, 2024
e231052
refactor 'Additional Info' in TrackingHeader to be 'prettier' and col…
ChrisNolan Oct 2, 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
30 changes: 30 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
DEBUG_MODE=True
ADMIN_DASHBOARD=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+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nEspKKItV3UrRt9aMMW2igedC9U+xLA/v2Xv++kJbn28VeK0AeeXJdsbn1CsuLZfT\nKFr7RN7gueIjVxocCTZEuP3HVwQI+tcC3X1n4ehe+RJIZ7goaPWmA5JWY3Aym9Gv\nJghvI2gEQmr4VkKLCoMXqII5IeZr3Q4hO5kkhSCLktL+X81HyhIVIsh8t43JhIiw\nvGFXwQKCAQB8hL1vPAuL0K+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 config
# WORKER_IMMEDIATE_MODE=True
TRACKING_PULSE=120

## 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 }}...'
export NEXT_PUBLIC_DASHBOARD_VERSION=${{ env.tag }}
export NEXT_PUBLIC_KARRIO_VERSION="http://locahost:5002"
./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.

53 changes: 53 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# 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
- uses: actions/setup-node@v3
with:
node-version: 22.x
- name: Install
run: |
npm install -g corepack
mkdir -p ~/.volta/bin
corepack enable --install-directory ~/.volta/bin
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