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

V4 azure #151

Open
wants to merge 53 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
22373e2
feat: add @azure/cosmos v3.17.3
ian-lemon Aug 2, 2023
e21ac6a
feat: add aws credential
ian-lemon Aug 2, 2023
45d223f
feat: add test code for CosmosStorageService
ian-lemon Aug 2, 2023
eb05aa4
feat: add CosmosStorageService interface
ian-lemon Aug 2, 2023
d3c94c5
feat: add cosmos service
ian-lemon Aug 3, 2023
abfedc2
chore : implement read method
ian-lemon Aug 3, 2023
2f6e14b
feat: implement read and save
ian-lemon Aug 4, 2023
f723bf6
feat: implement update and delete
ian-lemon Aug 7, 2023
44abfa9
feat: implement increment and null handling
ian-lemon Aug 8, 2023
8a9f401
chore: modify test code and update method
ian-lemon Aug 8, 2023
ddef0e6
chore: implement CRUD json data with no S/N type
ian-lemon Aug 9, 2023
1c5f593
feat: implement initial test code
ian-lemon Aug 10, 2023
98d36f7
refactor: initial test code
ian-lemon Aug 11, 2023
cc204d8
refactor: modify saveItem
ian-lemon Aug 16, 2023
55c16ec
chore: remove _ts, _etag, key_list, value_list
ian-lemon Aug 17, 2023
fd5237f
feat: implement initial cosmos query service code
ian-lemon Aug 17, 2023
953714c
chore: modify query result to use items and count
ian-lemon Aug 18, 2023
3f2138f
refactor: enhance query builder with conditions handling
ian-lemon Aug 18, 2023
d9f7fbd
refactor: enhance type safety with CosmosQueryFilter
ian-lemon Aug 18, 2023
8bf4f8e
fix: ensure atomicity of increments using ETag
ian-lemon Aug 21, 2023
28b32a8
feat: implement pagination for CosmosQueryService
ian-lemon Aug 21, 2023
ccc2367
docs: create cosmosDB.md
ian-lemon Aug 22, 2023
e40c922
feat: implement initial azure functions handler
ian-lemon Aug 23, 2023
487b45e
chore: modify request headers and url
ian-lemon Aug 24, 2023
5bc63c1
feat: implement initial functions trigger
ian-lemon Aug 25, 2023
f8145e1
feat: migrate ade-az-backend-api to lemon core v4-azure
ian-lemon Nov 17, 2023
d8735e6
chore: modify package.json
ian-lemon Nov 17, 2023
0cac693
chore: delete @azure/identity
ian-lemon Nov 17, 2023
abe3cde
chore: delete @microsoft/microsoft-graph-client
ian-lemon Nov 17, 2023
2417464
chore: modify npm packages
ian-lemon Nov 20, 2023
d6173a6
refactor: modify to enable decryption using only encrypted strings
ian-lemon Nov 21, 2023
82405c1
refactor: implement environment variable key vault decryption
ian-lemon Nov 21, 2023
dbd1011
chore: add namespace
ian-lemon Nov 21, 2023
43ecaa6
chore: remove slack data
ian-lemon Nov 21, 2023
0d97b25
feat: add AZ_BLOB_NAME
ian-lemon Nov 21, 2023
7dc3c21
feat: add blob namespace
ian-lemon Nov 21, 2023
6c1d207
feat: implement error check condition in key vault
ian-lemon Nov 21, 2023
13d5c2d
chore: remove decrypted environment variable
ian-lemon Nov 22, 2023
ca66994
chore: modify environment name
ian-lemon Nov 22, 2023
f3619e1
feat: separate service azure and aws in doReportError
ian-lemon Nov 23, 2023
fcfddaf
chore: modify cosmos endpoint
ian-lemon Nov 29, 2023
df31f31
chore: move @types packages to devDependancies
ian-lemon Nov 30, 2023
96e4c09
chore: modify test code
ian-lemon Dec 7, 2023
d94e8f2
feat: seperate azure and aws report logic
ian-lemon Dec 11, 2023
6da710c
chore: lint and published
steve-lemon Dec 11, 2023
0660b74
build: add cors setting
ian-lemon Dec 20, 2023
e71f03f
chore: modify headers for cors
ian-lemon Dec 22, 2023
f394c53
chore: modify version
ian-lemon Dec 22, 2023
f776c8f
chore: implement lint
ian-lemon Dec 22, 2023
e74de07
fix: solve issue with payload id value when updating in cosmos
ian-lemon Jan 2, 2024
8123d42
chore: modify version
ian-lemon Jan 2, 2024
5661207
fix: solve Cannot read properties of undefined (reading 'id') when cr…
ian-lemon Jan 2, 2024
bdf409c
feat: implement re-update when meet 412 Precondition Failed
ian-lemon Jan 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions data/dummy-cosmos-query-data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# dummy data for ticketing internal test!
data:
- ID: C01
type: bank_account
name: 신우열
contact: 01010102020
bank: KB국민
balance: 9327200

- ID: C02
type: bank_account
name: 신수빈
contact: 01022446868
bank: NH농협
balance: 875000
note: 미성년자

- ID: C03
type: bank_account
name: 권리다
contact:
bank: 씨티
balance: 2307800

- ID: C04
type: bank_account
name: 채원조
contact: 01024002400
bank: SC제일
balance: 300000

- ID: C05
type: bank_account
name: 오서찬
contact: 0112468000
bank: KEB하나
balance: 279500

- ID: C06
type: bank_account
name: 정한새
contact: 01098765432
bank: 우리
balance: 1288600

- ID: C07
type: bank_account
name: 정가희
contact:
bank: NH농협
balance: 5501000

- ID: C08
type: bank_account
name: 김승진
contact: 01012345678
bank: IBK기업
balance: 22720300
note: 기업 계좌

- ID: C09
type: bank_account
name: 주나라
contact: 01010001000
bank: 우리
balance: 8653800

- ID: C10
type: bank_account
name: 이은비
contact: 01090009999
bank: KB국민
balance: 927700

- ID: C11
type: bank_account
name: 봉기석
contact: 01082828282
bank: IBK기업
balance: 42800000

- ID: C12
type: bank_account
name: 홍진희
contact:
bank: KEB하나
balance: 1746200
13 changes: 13 additions & 0 deletions data/dummy-data copy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# dummy data for ticketing internal test!
data:
- _id: TT:test:A00000
id: A00000
type: test

- _id: TT:test:A00001
id: A00001
type: test
name: Hong
slot: 0
last: 0
balance: 1200
9 changes: 9 additions & 0 deletions data/dummy-table.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# dummy data for ticketing internal test!
data:
- id: T0
type: test
name: lemon

- id: T1
type: test
name: Hong
50 changes: 50 additions & 0 deletions data/samples/functions-handler/context-web.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"invocationId": "e18a67ba-41e9-45c3-a29f-f2abc3570d15",
"bindingDefinitions": [
{
"name": "req",
"type": "httpTrigger",
"direction": "in"
},
{
"name": "res",
"type": "http",
"direction": "out"
}
],
"req": {
"method": "GET",
"url": "https://localhost:7071/api/hello/a_123_test",
"originalUrl": "https://localhost:7071/api/hello/a_123_test",
"headers": {
"accept": "*/*",
"accept-encoding": "gzip, deflate, br",
"cache-control": "no-cache",
"content-length": "0",
"host": "localhost:7071",
"max-forwards": "10",
"user-agent": "PostmanRuntime/7.32.3",
"postman-token": "05ed956c-8490-4f78-828a-c6db18701cf6",
"x-arr-log-id": "97f7de4d-77c2-4c20-87ef-96f61ff64ebb",
"client-ip": "54.86.50.139:61536",
"disguised-host": "localhost:7071",
"x-site-deployment-id": "sls-korc-dev-azure-categories",
"was-default-hostname": "localhost:7071",
"x-forwarded-proto": "https",
"x-appservice-proto": "https",
"x-arr-ssl": "2048|256|CN=Microsoft Azure TLS Issuing CA 01, O=Microsoft Corporation, C=US|CN=*.azurewebsites.net, O=Microsoft Corporation, L=Redmond, S=WA, C=US",
"x-forwarded-tlsversion": "1.2",
"x-forwarded-for": "54.86.50.139:61536",
"x-original-url": "/api/hello/a_123_test",
"x-waws-unencoded-url": "/api/hello/a_123_test"
},
"query": {},
"params": {
"id": "a_123_test"
}
},
"res": {
"headers": {},
"cookies": []
}
}
12 changes: 12 additions & 0 deletions data/test-load.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
config:
target: 'https://artillery.io'
phases:
- duration: 60
arrivalRate: 20
defaults:
headers:
x-my-service-auth: '987401838271002188298567'
scenarios:
- flow:
- get:
url: "/docs"
Loading