-
Notifications
You must be signed in to change notification settings - Fork 37
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
Feature/microadd #418
base: master
Are you sure you want to change the base?
Feature/microadd #418
Changes from all commits
ca947a4
51010bc
f6c8c27
3612619
dd1ed9c
8589d02
1b4e21b
6728690
58507f2
bbcdf75
cf4f0ba
5ee3636
f16dc30
367d2a6
40107a0
6f4ca13
02bd320
0101f2a
20ff638
dbc5c59
d534361
a1db48e
3f0a54d
f27f3a7
1df47df
6678aca
dcd79f5
9dc943f
d13b970
7f7ac2a
74ae14d
4df5e36
ab0eca2
6d9c8de
f0e4a96
7f2a61d
5c13aef
107d027
84c93cb
6d4a002
1427391
1032ce1
0edb971
cb42681
54ef806
366c598
73c66f0
2105e4e
8dfb1a5
41db8d3
0b8ae12
8b00f17
566da4f
8aac1b7
40bf8bd
340d3a3
e506dd7
2e91ef2
4e1407b
efc5031
ed09b27
3fef336
0adbc70
f079cfd
2da9948
846cc86
eef1f7a
f4dfd0f
42d7488
364746a
ae4a71a
7336de3
f9f2208
6c6f507
e416109
19c7d3d
acfe0de
0ea9e6b
418864d
9411588
3cf998a
12bc763
2005ec6
7da67f7
17c503e
94cf53f
26914d4
c039258
7a7f9c0
a61c52b
e928ef5
20ca88f
963178f
c6fe64b
195f4f8
0050a7e
bea829e
60b78d7
e8e83ae
6eb5a7f
86fbc18
a1f7658
69a5dbb
095de6b
483777b
daa788f
e905b17
4598889
aed3f30
74130fe
76ad2e6
01f02ed
5d36398
597dfbd
6c41b7c
017261d
b3afb24
f2cf8a6
0defc66
e818c4c
321c71e
11cf088
34d8e8b
aa697e9
d438217
42c9942
97625bc
9e8c817
b9d9f9d
180d17a
111cae4
2f16624
03b0a60
c8ddda0
459d631
6a0ef43
a6981f5
2e72ed0
a5317d8
82a6f8a
206dd19
6dffeba
6005cd3
e929116
c9faf1d
3eb5a91
881bff3
32c1876
9786288
8915a28
47f8a93
7d4db16
b9afa8c
3b6c91e
bc0e1c4
2dfa191
62f44ff
08e8740
504796d
15d2291
9c450f1
5c94345
6ef6587
ed70bd0
fcaaa5c
3f36590
265be72
6612a45
d8a3678
08aa949
db0aca7
fb77760
798bdfd
f52191d
abfd784
be9d3e9
13e463e
145e877
c25fa99
a998242
f121a3f
34cbf2b
935c349
fa2eba1
1d24d68
f361fb8
c029157
9f0e7a8
dacd2ad
7f89e40
093bb2e
2113f1e
5412a67
8ee8369
f5099d3
258452d
a4ce4a3
a19a590
8aaa9e0
8fc2ed1
78caff7
6e0b3bd
ffa52f7
87a615d
887a19b
6fb1841
8f77d02
8d76be4
86928c5
6ecda07
e014dde
a2cfa1a
c2627db
0704fa4
0451705
1f6ce96
9ac322e
b6aa787
6832610
a929f3b
21740aa
a5d3263
0ce8d5d
01bc423
baa7dbe
8a4ea2e
77c7b52
0fe6d4c
1ebcebe
bb1c882
03e97ae
c398ba9
bd12136
95430a0
e7e2ff1
eb14fb4
48b2d19
88e81f5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
* @egovernments/services-pr-reviewer @narendrabandhamneni-wt-egov | ||
* @egovernments/services-pr-reviewer @kavi-egov @saiprakash-egov |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
ServiceMaps: | ||
serviceName: plan-service | ||
version: 1.0.0 | ||
mappings: | ||
- topic: save-plan | ||
configKey: INDEX | ||
indexes: | ||
- name: plan-index-v1 | ||
type: general | ||
id: $.id | ||
timeStampField: $.auditDetails.createdTime | ||
jsonPath: $.Plan | ||
customJsonMapping: | ||
indexMapping: {"Data":{}} | ||
fieldMapping: | ||
- inJsonPath: $ | ||
outJsonPath: $.Data | ||
|
||
- topic: update-plan | ||
configKey: INDEX | ||
indexes: | ||
- name: plan-index-v1 | ||
type: general | ||
id: $.id | ||
timeStampField: $.auditDetails.createdTime | ||
jsonPath: $.Plan | ||
customJsonMapping: | ||
indexMapping: { "Data": { } } | ||
fieldMapping: | ||
- inJsonPath: $ | ||
outJsonPath: $.Data | ||
|
||
- topic: bulk-update-plan | ||
configKey: INDEX | ||
indexes: | ||
- name: plan-index-v1 | ||
type: general | ||
id: $.id | ||
isBulk: true | ||
timeStampField: $.auditDetails.createdTime | ||
jsonPath: $.Plans | ||
customJsonMapping: | ||
indexMapping: { "Data": { } } | ||
fieldMapping: | ||
- inJsonPath: $ | ||
outJsonPath: $.Data | ||
Comment on lines
+33
to
+46
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Bulk update operations lack essential safeguards Based on the verification, the bulk update configurations in the indexer files do not include rate limiting or batch size controls. This could potentially lead to performance issues or resource exhaustion during bulk operations. Key locations requiring safeguards:
Recommend adding:
🔗 Analysis chainVerify bulk update operation safeguards The bulk update configuration should include:
Let me search for any rate limiting or batch size configurations. Let me try another approach to search for configuration files that might contain bulk operation controls. Let me try one more search to look for any configuration files that might contain bulk operation settings. Let me check the content of these files to see if they contain any bulk operation controls. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Search for bulk operation configurations and safeguards
rg -A 5 "bulk-update|isBulk:\s*true"
Length of output: 19796 Script: #!/bin/bash
# Search for rate limiting or batch size configurations
rg -i "batch|rate|limit|size" egov-indexer/
Length of output: 45 Script: #!/bin/bash
# Look for configuration files and search for any bulk operation controls
fd -e yml -e yaml -e json -e properties -e conf | xargs cat 2>/dev/null | grep -i "batch\|bulk\|size\|limit\|rate"
Length of output: 102511 Script: #!/bin/bash
# Search for configuration files and any bulk operation settings
fd -e yml -e yaml -e properties -e conf -e json . | xargs grep -l "bulk\|batch" 2>/dev/null
Length of output: 300 Script: #!/bin/bash
# Check content of the identified files for bulk operation controls
cat egov-indexer/Plan-service-indexer.yml egov-indexer/census-service-indexer.yml egov-indexer/project-indexer.yml egov-indexer/project-staff-indexer.yml egov-indexer/project-task-indexer.yml egov-indexer/stock-indexer.yml | grep -A 5 -B 5 "bulk"
Length of output: 2227 🧰 Tools🪛 yamllint (1.35.1)[error] 42-42: syntax error: mapping values are not allowed here (syntax) |
||
|
||
- topic: save-plan-facility | ||
configKey: INDEX | ||
indexes: | ||
- name: plan-facility-index-v1 | ||
type: general | ||
id: $.id | ||
timeStampField: $.auditDetails.createdTime | ||
jsonPath: $.PlanFacility | ||
customJsonMapping: | ||
indexMapping: { "Data": { } } | ||
fieldMapping: | ||
- inJsonPath: $ | ||
outJsonPath: $.Data | ||
|
||
- topic: update-plan-facility | ||
configKey: INDEX | ||
indexes: | ||
- name: plan-facility-index-v1 | ||
type: general | ||
id: $.id | ||
timeStampField: $.auditDetails.createdTime | ||
jsonPath: $.PlanFacility | ||
customJsonMapping: | ||
indexMapping: { "Data": { } } | ||
fieldMapping: | ||
- inJsonPath: $ | ||
outJsonPath: $.Data |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
ServiceMaps: | ||
serviceName: census-service | ||
version: 1.0.0 | ||
mappings: | ||
- topic: census-create-topic | ||
configKey: INDEX | ||
indexes: | ||
- name: census-index-v1 | ||
type: general | ||
id: $.id | ||
timeStampField: $.auditDetails.createdTime | ||
jsonPath: $.Census | ||
customJsonMapping: | ||
indexMapping: {"Data":{}} | ||
fieldMapping: | ||
- inJsonPath: $ | ||
outJsonPath: $.Data | ||
|
||
- topic: census-update-topic | ||
configKey: INDEX | ||
indexes: | ||
- name: census-index-v1 | ||
type: general | ||
id: $.id | ||
timeStampField: $.auditDetails.createdTime | ||
jsonPath: $.Census | ||
customJsonMapping: | ||
indexMapping: { "Data": { } } | ||
fieldMapping: | ||
- inJsonPath: $ | ||
outJsonPath: $.Data | ||
|
||
- topic: census-bulk-update-topic | ||
configKey: INDEX | ||
indexes: | ||
- name: census-index-v1 | ||
type: general | ||
id: $.id | ||
isBulk: true | ||
timeStampField: $.auditDetails.createdTime | ||
jsonPath: $.Census | ||
customJsonMapping: | ||
indexMapping: { "Data": { } } | ||
fieldMapping: | ||
- inJsonPath: $ | ||
outJsonPath: $.Data |
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix YAML syntax error in bulk update mapping
The
customJsonMapping
key has incorrect indentation.Apply this fix:
📝 Committable suggestion
🧰 Tools
🪛 yamllint (1.35.1)
[error] 42-42: syntax error: mapping values are not allowed here
(syntax)