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

refactor: resource bounded context #650

Merged
merged 137 commits into from
Dec 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
8488382
wip: add domain models for resource bounded context
sbchaos Oct 3, 2022
dcdbc10
refactor: add handle and service for resources
sbchaos Oct 7, 2022
abf2ad0
refactor: add validate for resources
sbchaos Oct 9, 2022
48d671d
refactor: add converts for resource
sbchaos Oct 9, 2022
2ddf0f1
refactor: update resource api
sbchaos Oct 10, 2022
1cf3fff
Merge branch 'main' into feature/resource_bounded_context
sbchaos Oct 10, 2022
424bed4
refactor: add test for resource handler
sbchaos Oct 10, 2022
ad01ca9
test: add test for metadata and dataset
sbchaos Oct 10, 2022
548c0db
test: add test for resource models
sbchaos Oct 11, 2022
cbdbdcf
test: add test for resource
sbchaos Oct 11, 2022
f03f0c1
refactor: add resource test and fix lint issues
sbchaos Oct 11, 2022
bfc2970
feat: add resource service
irainia Oct 13, 2022
fd40fdc
refactor: rename methods in resource repository for better clarity
irainia Oct 13, 2022
e0c38f8
feat: add batch update on resource service
irainia Oct 13, 2022
f339118
refactor: simplify interface being used by service and update status
irainia Oct 14, 2022
50f434c
refactor: aedd extra config to resources
sbchaos Oct 15, 2022
3b6dfe3
refactor: add resource manager
sbchaos Oct 15, 2022
a34de3d
refactor: add bigquery handler for dataset, view and ext_table
sbchaos Oct 15, 2022
d6b93ec
refactor: define all methods on pointer receiver
sbchaos Oct 16, 2022
84fcd8b
feat: add resource replacement migration
irainia Oct 17, 2022
10bdbc2
feat: add function to convert string to status
irainia Oct 17, 2022
0b6a2dc
feat: add resource repository
irainia Oct 17, 2022
9c072b5
refactor: add table apis
sbchaos Oct 17, 2022
5c7262d
refactor: add bigquery store
sbchaos Oct 17, 2022
67b6a05
fix: fix tests for resources
sbchaos Oct 18, 2022
df2ff82
refactor: unit test for resource repository to be independent from ea…
irainia Oct 18, 2022
ac842fd
test: refactor resource unit test to cover more cases
irainia Oct 18, 2022
de71da5
test: refactor service unit test for better readability
irainia Oct 18, 2022
c4492e4
refactor: add exists check on resource handle
sbchaos Oct 19, 2022
fc026b5
refactor: add batch update and multi error
sbchaos Oct 19, 2022
00ed3b0
feat: add index on resource using project namd and namespace name
irainia Oct 19, 2022
6fabc07
feat: add tenant checks before creating resource
irainia Oct 19, 2022
97f5aee
refactor: finish the code for batch update
sbchaos Oct 19, 2022
46e136d
fix: old resource usage error in backup repository
irainia Oct 20, 2022
f7aef4f
fix: fix failing test
sbchaos Oct 20, 2022
3615d9a
test: update repository test to use oen parallelism
irainia Oct 20, 2022
264e5eb
refactor: rename bigquery store from BigQuery -> Bigquery
sbchaos Oct 20, 2022
dd6e45c
refactor: resource handle accepts only the resource
sbchaos Oct 20, 2022
079a567
refactor: wire the dependencies for resource handler
sbchaos Oct 20, 2022
9fdbbb0
feat: add multi-error converter
irainia Oct 20, 2022
9abee5d
fix: add multi-to error converter
irainia Oct 20, 2022
6ac0b19
refactor: update repository to allow for partial update and add unit …
irainia Oct 20, 2022
18c593e
refactor: update the check for status
sbchaos Oct 20, 2022
dd18540
test: add test for resource manager
sbchaos Oct 20, 2022
715c2ec
test: add test for resource models
sbchaos Oct 20, 2022
0937e09
fix: bug cannot find an existing secret
irainia Oct 21, 2022
fe4fe70
fix: batch update behavior to create or update based on the provided …
irainia Oct 21, 2022
e416fa6
feat: add telemetry for key resource implementations
irainia Oct 21, 2022
99a887c
fix: fix issues with batch update
sbchaos Oct 21, 2022
8f3332a
test: add test for batch
sbchaos Oct 21, 2022
c48ae07
fix: fix lint errors
sbchaos Oct 21, 2022
f526cc2
refactor: remove unused function
sbchaos Oct 21, 2022
55b2fb6
refactor: add logger wrapper for server to simplify log
irainia Oct 21, 2022
4a0ff13
feat: add process logging in resource service
irainia Oct 21, 2022
d91fea2
feat: add process logging in resource manager
irainia Oct 21, 2022
b1f98d4
fix: add log writer for resource service and handler
irainia Oct 24, 2022
e10ec36
chore: change log level from warning to error for resource deploy in …
irainia Oct 31, 2022
c360e5c
refactor: Revert "feat: add telemetry for key resource implementations"
irainia Oct 31, 2022
4b598da
refactor: add some status mutation methods for resource
irainia Oct 31, 2022
66bf55a
test: update unit test for mark status to use resource creation from …
irainia Oct 31, 2022
f8da5cd
fix: remove resource status from equality factor
irainia Oct 31, 2022
38eb782
refactor: remove log writer usage in service layer
irainia Oct 31, 2022
867d5a8
fix: allow reading error from repository when batch updating
irainia Oct 31, 2022
9caa7a6
refactor: restructure how to send response through log writer by prio…
irainia Nov 1, 2022
a35657b
refactor: add logger other than writer when writing resource status
irainia Nov 1, 2022
a5f34ae
feat: add metric for batch update on skipped, success, and failure re…
irainia Nov 1, 2022
9ae4415
fix: resource equality bug on tenant
irainia Nov 1, 2022
2dd0378
fix: bug on empty resources for store batch update
irainia Nov 1, 2022
0fa64ed
chore: Merge branch 'main' into feature/resource_bounded_context
irainia Nov 1, 2022
a03c616
fix: database migration conflict
irainia Nov 1, 2022
3f72773
fix: bug on skipped resource regardless of the status
irainia Nov 1, 2022
35003ed
feat: use complete message when encountering error during resource de…
irainia Nov 1, 2022
03f3398
lint: fix linter issue
irainia Nov 1, 2022
35129be
fix: re-order status to address additional cases
irainia Nov 3, 2022
881587c
fix: make sure the resources to be processed have success validation …
irainia Nov 3, 2022
35ee9a2
chore: Merge branch 'main' into feature/resource_bounded_context
irainia Nov 3, 2022
408b7ba
chore: Merge branch 'main' into feature/resource_bounded_context
irainia Nov 4, 2022
677469e
chore: Merge branch 'main' into feature/resource_bounded_context
irainia Nov 4, 2022
aa45bd2
fix: syntax and unit test error
irainia Nov 4, 2022
e863905
refactor: redesign resource status
irainia Nov 14, 2022
bfe9029
refactor: rename batch update to deploy based on discussion
irainia Nov 14, 2022
0f0ea9c
refactor: update resource manage to check whether resource exist in s…
irainia Nov 14, 2022
cd9520d
feat: add store existence status in resource
irainia Nov 14, 2022
6970b32
refactor: add update status on repo for resource in service
irainia Nov 14, 2022
77eb5bb
fix: add create failure and update failure status precedence for tran…
irainia Nov 14, 2022
f4bc384
refactor: re-implement service for create resource
irainia Nov 14, 2022
90aa2ed
refactor: update how status is changed through the transition for bet…
irainia Nov 15, 2022
6ad9634
refactor: modify create resource to return multi error
irainia Nov 15, 2022
1fb76e6
fix: allows status transition to the current status
irainia Nov 15, 2022
9c163df
refactor: re-implement service for update resource
irainia Nov 15, 2022
75e2a45
fix: add resource status in store
irainia Nov 15, 2022
697488b
refactor: remove state transition management to simplify
irainia Nov 15, 2022
cc3111a
fix: status bug on create and update resource
irainia Nov 15, 2022
084f316
refactor: re-implement service for deploy resources
irainia Nov 15, 2022
4c0fa25
fix: status transition for repository
irainia Nov 15, 2022
0cb92aa
feat: add existence check on resource manager
irainia Nov 15, 2022
12ed802
feat: add existence check on bigquery datastore
irainia Nov 15, 2022
f970be1
fix: syntax error caused by missed contract
irainia Nov 15, 2022
56de127
fix: linter issue in service
irainia Nov 15, 2022
16590ac
chore: Merge branch 'main' into feature/resource_bounded_context
irainia Nov 15, 2022
6e9fa9f
Revert "fix: linter issue in service"
irainia Nov 21, 2022
dfa6685
Revert "fix: syntax error caused by missed contract"
irainia Nov 21, 2022
91bda8c
Revert "feat: add existence check on bigquery datastore"
irainia Nov 21, 2022
9269521
Revert "feat: add existence check on resource manager"
irainia Nov 21, 2022
2fc5601
Revert "fix: status transition for repository"
irainia Nov 21, 2022
17d627f
Revert "refactor: re-implement service for deploy resources"
irainia Nov 21, 2022
9034061
Revert "fix: status bug on create and update resource"
irainia Nov 21, 2022
e1d7295
Revert "refactor: remove state transition management to simplify"
irainia Nov 21, 2022
40ca93e
Revert "fix: add resource status in store"
irainia Nov 21, 2022
cec7581
Revert "refactor: re-implement service for update resource"
irainia Nov 21, 2022
6a11769
Revert "fix: allows status transition to the current status"
irainia Nov 21, 2022
c44e617
Revert "refactor: modify create resource to return multi error"
irainia Nov 21, 2022
7132545
Revert "refactor: update how status is changed through the transition…
irainia Nov 21, 2022
47a7ca0
Revert "refactor: re-implement service for create resource"
irainia Nov 21, 2022
1e37a57
Revert "fix: add create failure and update failure status precedence …
irainia Nov 21, 2022
a06da8d
Revert "refactor: add update status on repo for resource in service"
irainia Nov 21, 2022
3764bd5
Revert "feat: add store existence status in resource"
irainia Nov 21, 2022
6b01942
Revert "refactor: update resource manage to check whether resource ex…
irainia Nov 21, 2022
72e117c
Revert "refactor: rename batch update to deploy based on discussion"
irainia Nov 21, 2022
d578ffa
Revert "refactor: redesign resource status"
irainia Nov 21, 2022
4484703
refactor: update available statuses based on the latest convention
irainia Nov 21, 2022
6905eab
fix: update status transition based on the latest convention
irainia Nov 21, 2022
5cee456
refactor: rename batch update to deploy based on the latest discussion
irainia Nov 21, 2022
a8e6231
refactor: re-implement resource create service based on the latest st…
irainia Nov 22, 2022
b7dcc77
fix: resource manager to adopt the latest status transition
irainia Nov 22, 2022
50215f1
fix: catch possible intermittent error during getting existing resource
irainia Nov 22, 2022
0221fef
fix: use custom not found error if encountered db not found error
irainia Nov 22, 2022
fb3c22c
fix: update resource service based on the latest state transition
irainia Nov 22, 2022
9ad8f90
fix: use float64 for proto values and not int
sbchaos Nov 22, 2022
a0f9e5f
refactor: check resource status on deploy
sbchaos Nov 25, 2022
0307d01
test: add test
sbchaos Nov 25, 2022
568137b
fix: fix lint issues
sbchaos Nov 25, 2022
7baa932
fix: fix flaky test
sbchaos Nov 29, 2022
d904ce4
rework: rework the location of resources
sbchaos Dec 2, 2022
b04994c
refactor: get urn from datastore
sbchaos Dec 2, 2022
ed5adff
refactor: update urn in store
sbchaos Dec 2, 2022
7382b68
refactor: use resources kind as string
sbchaos Dec 2, 2022
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
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ linters:
- dupl
- gofumpt
- nolintlint
- contextcheck
linters-settings:
gofumpt:
lang-version: "1.17"
Expand Down
191 changes: 0 additions & 191 deletions api/handler/v1beta1/resource.go

This file was deleted.

Loading