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

Classifier Modules and Features #137

Merged
merged 905 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
905 commits
Select commit Hold shift + click to select a range
b9831d7
added model trainer scripts
Thirunayan22 Aug 12, 2024
bf8914c
Merge pull request #180 from rootcodelabs/feat/model-training
Thirunayan22 Aug 12, 2024
6d45c04
Merge pull request #181 from rootcodelabs/dev
pamodaDilranga Aug 12, 2024
78d123f
Model trainer and inference intergration
pamodaDilranga Aug 12, 2024
c4668d5
ESCLASS-190: Add test model API's and fixed flow for outlook and jira
kalsaraM Aug 12, 2024
a1cecb0
ESCLASS-190: change API path
kalsaraM Aug 12, 2024
9ad2e1f
ESCLASS-190: validate test API
kalsaraM Aug 12, 2024
83dbc8e
Merge pull request #182 from rootcodelabs/ESCLASS-190
Thirunayan22 Aug 12, 2024
2917247
Merge pull request #184 from rootcodelabs/dev
Thirunayan22 Aug 13, 2024
a4a546e
Merge pull request #183 from rootcodelabs/classifier-132
Thirunayan22 Aug 13, 2024
fb60782
data models refactor
erangi-ar Aug 13, 2024
2922825
Merge branch 'dev' of https://github.com/rootcodelabs/classifier into…
erangi-ar Aug 13, 2024
507600d
ESCLASS-190-outlook: Outlook integration API issues fixed and change …
kalsaraM Aug 13, 2024
95a16bf
ESCLASS-190-outlook: add mail id to paylaod,it change with folder id
kalsaraM Aug 13, 2024
b8c6b51
static ip address for all containers update
pamodaDilranga Aug 13, 2024
4754c1b
Progress session for validation will be created based on the newdgId
pamodaDilranga Aug 13, 2024
0fce120
duplicate container static ip change
pamodaDilranga Aug 13, 2024
3fcecbe
Jira token verification endpoint
pamodaDilranga Aug 13, 2024
acf327f
Merge branch 'classifier-132' of https://github.com/rootcodelabs/clas…
pamodaDilranga Aug 13, 2024
f84ed2f
removing the non needed files
pamodaDilranga Aug 14, 2024
4a9acd6
ESCLASS-190-outlook: sonar issue fixed
kalsaraM Aug 14, 2024
3259178
Merge pull request #185 from rootcodelabs/ESCLASS-190-outlook
Thirunayan22 Aug 14, 2024
5291ae1
fixes
erangi-ar Aug 14, 2024
9c5a74b
Merge branch 'dev' of https://github.com/rootcodelabs/classifier into…
erangi-ar Aug 14, 2024
439cd6e
Merge pull request #186 from rootcodelabs/feat/data-models-fe
Thirunayan22 Aug 14, 2024
9cac8f5
corrected texts api int
erangi-ar Aug 14, 2024
8cac58e
resolve conflicts
erangi-ar Aug 14, 2024
589d515
conflict fix
pamodaDilranga Aug 14, 2024
1237d8b
Merge pull request #187 from rootcodelabs/dev
pamodaDilranga Aug 14, 2024
c66ff07
revert conflict fix
pamodaDilranga Aug 14, 2024
2e1c9c7
update training scripts to have new modelss
Thirunayan22 Aug 14, 2024
42180d8
Merge pull request #188 from rootcodelabs/classifier-132
Thirunayan22 Aug 14, 2024
32b8444
Merge pull request #190 from rootcodelabs/dev
Thirunayan22 Aug 14, 2024
6e1fb26
Merge pull request #189 from rootcodelabs/feat/corrected-texts
Thirunayan22 Aug 14, 2024
590bb82
outlook-refresh-subscription: add new Enpoint for cronmanager and bug…
kalsaraM Aug 14, 2024
ebe6caf
Merge pull request #191 from rootcodelabs/dev
Thirunayan22 Aug 14, 2024
74e606d
Merge pull request #192 from rootcodelabs/feat/model-training
Thirunayan22 Aug 14, 2024
3a807aa
Merge branch 'refs/heads/dev' into outlook-refresh-susbscription
kalsaraM Aug 14, 2024
1f578ed
validation sessions fixes
erangi-ar Aug 14, 2024
55195ad
Merge branch 'dev' of https://github.com/rootcodelabs/classifier into…
erangi-ar Aug 14, 2024
5116dd7
Merge pull request #194 from rootcodelabs/dev
pamodaDilranga Aug 14, 2024
6af3c4b
outlook-refresh-subscription: bug fixes in and validation status flow…
kalsaraM Aug 14, 2024
91f24ac
Merge pull request #193 from rootcodelabs/outlook-refresh-susbscription
Thirunayan22 Aug 14, 2024
b52fcc2
refactor
erangi-ar Aug 14, 2024
a79ba83
Merge pull request #195 from rootcodelabs/dev
pamodaDilranga Aug 14, 2024
cb1ee82
Session Id will be passed with the payload to dataset processor
pamodaDilranga Aug 14, 2024
05feaf0
draft corrected text export api endpoint
pamodaDilranga Aug 14, 2024
ae7622a
datamodel delete endpoint
pamodaDilranga Aug 14, 2024
a7db334
Anonymizer Streamlit app
pamodaDilranga Aug 14, 2024
0b35dc7
data enrichment streamlit app
pamodaDilranga Aug 14, 2024
f7d246c
correced texts api int
erangi-ar Aug 15, 2024
0473bdc
Merge branch 'dev' of https://github.com/rootcodelabs/classifier into…
erangi-ar Aug 15, 2024
a877bfb
fix dataset status update
pamodaDilranga Aug 15, 2024
12349c3
Merge pull request #196 from rootcodelabs/classifier-132
Thirunayan22 Aug 15, 2024
ad755c4
fixes
erangi-ar Aug 15, 2024
4b60b70
Merge branch 'dev' of https://github.com/rootcodelabs/classifier into…
erangi-ar Aug 15, 2024
5c55d31
adding pandas to anonymizer
pamodaDilranga Aug 15, 2024
6e39849
outlook-bug-fix: Liquibase changelog order and fix outlook update mai…
kalsaraM Aug 15, 2024
08dbf4e
bug fix
pamodaDilranga Aug 15, 2024
58bc5d5
Merge pull request #199 from rootcodelabs/classifier-132
pamodaDilranga Aug 15, 2024
b8dbaf0
Merge branch 'dev' of https://github.com/rootcodelabs/classifier into…
erangi-ar Aug 15, 2024
242297f
Merge pull request #200 from rootcodelabs/dev
Thirunayan22 Aug 15, 2024
d4cd87b
Merge pull request #198 from rootcodelabs/feat/data-models-fe
Thirunayan22 Aug 15, 2024
0edfd76
script , change
pamodaDilranga Aug 15, 2024
19e69cb
addeding minor updates to model training endpoints
Thirunayan22 Aug 15, 2024
3f89623
Merge branch 'feat/model-training' of https://github.com/rootcodelabs…
Thirunayan22 Aug 15, 2024
e905517
Merge pull request #201 from rootcodelabs/dev
Thirunayan22 Aug 15, 2024
0f450b0
Merge pull request #202 from rootcodelabs/feat/model-training
Thirunayan22 Aug 15, 2024
f0738df
Merge branch 'refs/heads/dev' into outlook-bug-fix
kalsaraM Aug 16, 2024
1cc1446
Merge pull request #205 from rootcodelabs/dev
pamodaDilranga Aug 16, 2024
ce9cbf5
Merge branch 'feat/data-models-fe' of https://github.com/rootcodelabs…
erangi-ar Aug 16, 2024
122cb0a
Merge pull request #204 from rootcodelabs/classifier-132
Thirunayan22 Aug 16, 2024
0a43bf2
translations added
erangi-ar Aug 16, 2024
3c0b8f1
scripts lf
erangi-ar Aug 16, 2024
ce81f26
Merge branch 'dev' of https://github.com/rootcodelabs/classifier into…
erangi-ar Aug 16, 2024
1dabf25
test inference
pamodaDilranga Aug 16, 2024
790a536
model inference updates
pamodaDilranga Aug 16, 2024
d0d3837
hirachy validation updates
pamodaDilranga Aug 16, 2024
0cf3644
version removal and new container adding
pamodaDilranga Aug 16, 2024
08d2fc4
add env in outlook consent app
erangi-ar Aug 16, 2024
3cacdab
Merge pull request #206 from rootcodelabs/feat/data-models-fe
erangi-ar Aug 16, 2024
b1bc08c
outlook-bug-fix: change jira webhook triggering flow
kalsaraM Aug 16, 2024
b9946ad
Merge pull request #208 from rootcodelabs/dev
pamodaDilranga Aug 16, 2024
aa84b40
outlook-bug-fix: change jira webhook secret read as env variables
kalsaraM Aug 16, 2024
35a902d
Merge branch 'refs/heads/dev' into outlook-bug-fix
kalsaraM Aug 16, 2024
0589e1f
outlook-bug-fix: sonar issues fixed
kalsaraM Aug 16, 2024
fa8c9f2
outlook-bug-fix: sonar issues fixed
kalsaraM Aug 16, 2024
0e122b8
file handler api bug fix
pamodaDilranga Aug 16, 2024
5a7154b
Merge pull request #203 from rootcodelabs/outlook-bug-fix
Thirunayan22 Aug 16, 2024
463ab13
Merge pull request #209 from rootcodelabs/dev
Thirunayan22 Aug 16, 2024
d0534b6
updated docker-compose.yml
Thirunayan22 Aug 16, 2024
a4803b8
updated outlook accept.yml
Thirunayan22 Aug 16, 2024
85c0213
Merge branch 'dev' of https://github.com/rootcodelabs/classifier into…
Thirunayan22 Aug 16, 2024
e58eb8a
fixed training pipeline to save and store models after training. Inte…
Thirunayan22 Aug 19, 2024
1efb14b
corrected validationRules variable from camelCase to snake_case in da…
Thirunayan22 Aug 19, 2024
aeab210
updated DSL/Liquibase/changelog/classifier-script-v9-models-metadata.…
Thirunayan22 Aug 19, 2024
a11f8fc
updated database filepath
Thirunayan22 Aug 19, 2024
5eb8b9d
Merge pull request #210 from rootcodelabs/dev
Thirunayan22 Aug 19, 2024
b115a76
completed model training, storage and status update; hot fix pending …
Thirunayan22 Aug 19, 2024
1971a52
added progress update API call bugfix
Thirunayan22 Aug 19, 2024
237b23e
new updates
pamodaDilranga Aug 20, 2024
c794e8d
Merge branch 'classifier-132' of https://github.com/rootcodelabs/clas…
pamodaDilranga Aug 20, 2024
10ccd0c
timestamp change
erangi-ar Aug 20, 2024
b225717
sonar cloud fixes
erangi-ar Aug 20, 2024
8185212
progress-bar-issue: fix progress bar issue and add create-migration s…
kalsaraM Aug 20, 2024
670f11f
no data placeholders added
erangi-ar Aug 20, 2024
8026cbf
fixes
erangi-ar Aug 20, 2024
0cf62b6
fixes
erangi-ar Aug 20, 2024
bc168b6
Merge pull request #213 from rootcodelabs/dev
Thirunayan22 Aug 20, 2024
61d67c8
Merge pull request #207 from rootcodelabs/classifier-132
Thirunayan22 Aug 20, 2024
afca3fa
Merge pull request #214 from rootcodelabs/dev
Thirunayan22 Aug 20, 2024
cba6b98
Merge pull request #211 from rootcodelabs/progress_bar_issue
Thirunayan22 Aug 20, 2024
0304387
pushed model training progress session fix
Thirunayan22 Aug 20, 2024
625ce02
Merge pull request #215 from rootcodelabs/dev
pamodaDilranga Aug 21, 2024
c156115
Jira webhook connection update
pamodaDilranga Aug 21, 2024
a9e3158
sync latest changes
erangi-ar Aug 21, 2024
0c43db8
added training results update and fixed bugs
Thirunayan22 Aug 21, 2024
53808b1
Merge pull request #216 from rootcodelabs/dev
Thirunayan22 Aug 21, 2024
7152cef
fix
erangi-ar Aug 21, 2024
f3009b6
fix
erangi-ar Aug 21, 2024
2e48d64
Jira and outlook connection completed webhook > Anonymizer > inferenc…
pamodaDilranga Aug 21, 2024
e68c61d
cron manager dataset processor and validator integration
pamodaDilranga Aug 21, 2024
a695d68
Merge branch 'classifier-132' of https://github.com/rootcodelabs/clas…
pamodaDilranga Aug 21, 2024
9a2c7fa
Merge pull request #212 from rootcodelabs/sonar-cloud-issues
Thirunayan22 Aug 21, 2024
0cb28b8
Merge pull request #218 from rootcodelabs/dev
Thirunayan22 Aug 21, 2024
d7bb4f7
Merge pull request #217 from rootcodelabs/classifier-132
Thirunayan22 Aug 21, 2024
cd8cd60
Merge pull request #219 from rootcodelabs/dev
Thirunayan22 Aug 21, 2024
fa151f1
update deploy-opensearch.sh
Thirunayan22 Aug 21, 2024
db1ae15
pinal-flows-remove: pinal data removed
kalsaraM Aug 21, 2024
63949c9
dataset processor and validator bug fix until integration is completed
pamodaDilranga Aug 21, 2024
c5b8d5b
docker compose update for the processor and validator update
pamodaDilranga Aug 21, 2024
b04b59b
Merge branch 'classifier-132' of https://github.com/rootcodelabs/clas…
pamodaDilranga Aug 21, 2024
6c5ff1e
Merge pull request #222 from rootcodelabs/dev
pamodaDilranga Aug 21, 2024
0a4abea
Merge pull request #221 from rootcodelabs/classifier-132
pamodaDilranga Aug 22, 2024
5f959e5
bug fixes
erangi-ar Aug 22, 2024
39536c0
Merge branch 'dev' of https://github.com/rootcodelabs/classifier into…
erangi-ar Aug 22, 2024
130074c
fixed outlook update and create-inference flow
Thirunayan22 Aug 22, 2024
d715321
sonar cloud fixes
erangi-ar Aug 23, 2024
3c1dcfb
Merge branch 'refs/heads/dev' into pinal-flows-remove
kalsaraM Aug 23, 2024
a2f391b
added fix in anonymizer
Thirunayan22 Aug 23, 2024
8345900
conflict fix
pamodaDilranga Aug 23, 2024
83d6789
realignment with dev
pamodaDilranga Aug 23, 2024
753fe28
bug fixes
erangi-ar Aug 23, 2024
2475758
model _ to dash change
pamodaDilranga Aug 23, 2024
34c2742
fixed outlook corrected texts pipeline
Thirunayan22 Aug 23, 2024
0ae70ec
Merge pull request #227 from rootcodelabs/conflict-fix
Thirunayan22 Aug 23, 2024
9aa8b3a
fixed conflict
Thirunayan22 Aug 23, 2024
bee13ce
Merge pull request #228 from rootcodelabs/feat/model-training
Thirunayan22 Aug 23, 2024
b360738
Merge pull request #229 from rootcodelabs/dev
Thirunayan22 Aug 23, 2024
dd29721
pushing outlook fixes
Thirunayan22 Aug 24, 2024
304cbc7
fixed issues in model replacement
Thirunayan22 Aug 25, 2024
999ef6b
created docker compose file and jira_env
Thirunayan22 Aug 25, 2024
7650dc7
updated jira-config.env
Thirunayan22 Aug 25, 2024
0ae4ee0
ignored jira_config.env
Thirunayan22 Aug 25, 2024
efc8a64
Merge pull request #232 from rootcodelabs/feat/model-training
Thirunayan22 Aug 25, 2024
99d2fa5
Merge pull request #233 from rootcodelabs/feat/model-training
Thirunayan22 Aug 25, 2024
95cb02d
updated readme.md
Thirunayan22 Aug 25, 2024
f73a656
Merge branch 'dev' of https://github.com/rootcodelabs/classifier into…
erangi-ar Aug 26, 2024
f923213
remove pinal refs
erangi-ar Aug 26, 2024
3c27af6
fixed retraining
Thirunayan22 Aug 26, 2024
5418fe7
docker compose updates for delete models
pamodaDilranga Aug 26, 2024
c26d469
model delete ruuter and cron manger updates
pamodaDilranga Aug 26, 2024
b4d578b
model delete file handler updates
pamodaDilranga Aug 26, 2024
d53b08a
dataset validator fails for None values bug fix
pamodaDilranga Aug 26, 2024
cfa34a4
updated for test inference
Thirunayan22 Aug 26, 2024
76a53de
dataset validator and processor not invoking temp bug fix
pamodaDilranga Aug 26, 2024
e149ef8
json download none and null bug fix
pamodaDilranga Aug 26, 2024
66c039d
fixed test model re-training issue
Thirunayan22 Aug 26, 2024
5b73530
Merge pull request #239 from rootcodelabs/feat/model-training
Thirunayan22 Aug 26, 2024
0c82c45
Merge pull request #240 from rootcodelabs/dev
Thirunayan22 Aug 26, 2024
1627352
Merge pull request #223 from rootcodelabs/sonar-cloud-issues
Thirunayan22 Aug 26, 2024
a8a5e1d
Merge pull request #241 from rootcodelabs/dev
Thirunayan22 Aug 26, 2024
6772b38
Re-Train-And-Last-Train-Models: Implement API's for update last train…
kalsaraM Aug 26, 2024
43c3e36
python updates for the status update for model
pamodaDilranga Aug 26, 2024
7c0d034
fixed all primary model flows except delete
Thirunayan22 Aug 26, 2024
d9c4f6c
Merge pull request #246 from rootcodelabs/dev
Thirunayan22 Aug 26, 2024
d05b1d9
Merge pull request #236 from rootcodelabs/model-delete
Thirunayan22 Aug 26, 2024
75401c2
Merge pull request #247 from rootcodelabs/dev
Thirunayan22 Aug 26, 2024
72fd634
Merge pull request #248 from rootcodelabs/dev
Thirunayan22 Aug 26, 2024
792e3c6
Merge pull request #237 from rootcodelabs/dataset-validator-fixes
Thirunayan22 Aug 26, 2024
0bbbf42
Merge pull request #249 from rootcodelabs/dev
Thirunayan22 Aug 26, 2024
3eb601d
Merge pull request #238 from rootcodelabs/data_processer_cron_integra…
Thirunayan22 Aug 26, 2024
f3b44a5
minor fixes for delete model
Thirunayan22 Aug 26, 2024
c9f37bf
Merge pull request #250 from rootcodelabs/dev
Thirunayan22 Aug 26, 2024
31ab998
Merge branch 'refs/heads/dev' into Re-Train-And-Last-Train-Models
kalsaraM Aug 27, 2024
995939d
Re-Train-And-Last-Train-Models:production model overview changes
kalsaraM Aug 27, 2024
f89bf37
bug fixes and improvements
erangi-ar Aug 27, 2024
0a2ef55
pagination issue fixed
erangi-ar Aug 27, 2024
b8120cc
Merge branch 'sonar-cloud-issues' of https://github.com/rootcodelabs/…
erangi-ar Aug 27, 2024
95c2921
Merge branch 'dev' of https://github.com/rootcodelabs/classifier into…
erangi-ar Aug 27, 2024
14501bd
sonar cloud fixes
erangi-ar Aug 27, 2024
21d03d9
sonar cloud fixes
erangi-ar Aug 27, 2024
210d63e
anonymizer verfication removal and streamlit app bug fix
pamodaDilranga Aug 27, 2024
d815e0e
est-character-issue: estonian character issue fixed
kalsaraM Aug 27, 2024
5bd6f1c
bug fixes and improvements
erangi-ar Aug 27, 2024
9e8df5e
Merge pull request #251 from rootcodelabs/sonar-cloud-issues
Thirunayan22 Aug 27, 2024
bd7f59f
Merge pull request #254 from rootcodelabs/dev
Thirunayan22 Aug 27, 2024
f6bc41b
sonar cloud fixes
erangi-ar Aug 28, 2024
3b4a9fb
enrichment url fix
pamodaDilranga Aug 28, 2024
9620525
est-character-issue: export corrected text with filters
kalsaraM Aug 28, 2024
bcd8e7b
updated inference pipeline
Thirunayan22 Aug 28, 2024
42a60ed
Merge pull request #255 from rootcodelabs/feat/model-training
pamodaDilranga Aug 28, 2024
a46af4f
fixed model deletion
Thirunayan22 Aug 28, 2024
c303781
Merge pull request #256 from rootcodelabs/feat/model-training
Thirunayan22 Aug 28, 2024
5ecdcf6
sonar cloud fixes
erangi-ar Aug 29, 2024
e4fdc2d
Merge branch 'dev' of https://github.com/rootcodelabs/classifier into…
erangi-ar Aug 29, 2024
9fc7c15
Merge pull request #257 from rootcodelabs/dev
pamodaDilranga Aug 29, 2024
e52e601
export corrected text python update
pamodaDilranga Aug 29, 2024
cc96f8a
timestamp-filter: add sort form current timestamp
kalsaraM Aug 29, 2024
45fb8b6
timestamp-filter: add sort by validations
kalsaraM Aug 29, 2024
d396fd8
Merge pull request #253 from rootcodelabs/est-charcter-issue
Thirunayan22 Aug 29, 2024
124ac42
Merge pull request #259 from rootcodelabs/dev
Thirunayan22 Aug 29, 2024
ed6eeae
bug fixes
erangi-ar Aug 29, 2024
def250a
Merge branch 'dev' of https://github.com/rootcodelabs/classifier into…
erangi-ar Aug 29, 2024
63152b1
Merge pull request #260 from rootcodelabs/dev
Thirunayan22 Aug 29, 2024
08b99f5
Merge pull request #258 from rootcodelabs/timestamp-filter
Thirunayan22 Aug 29, 2024
3cebf26
add sort by date option
erangi-ar Aug 29, 2024
5494cfe
Merge branch 'dev' of https://github.com/rootcodelabs/classifier into…
erangi-ar Aug 29, 2024
e30cd06
sort by date filter added
erangi-ar Aug 29, 2024
8d41367
bug fixes
erangi-ar Aug 30, 2024
b61d5ac
Merge pull request #261 from rootcodelabs/dev
Thirunayan22 Aug 30, 2024
b315f04
fixed and updated training pipeline
Thirunayan22 Aug 30, 2024
56b063a
Merge pull request #263 from rootcodelabs/dev
Thirunayan22 Aug 30, 2024
2092c18
Merge pull request #225 from rootcodelabs/pinal-flows-remove
Thirunayan22 Aug 30, 2024
a2a9d73
Merge pull request #264 from rootcodelabs/dev
Thirunayan22 Aug 30, 2024
711b914
fixed training flow
Thirunayan22 Aug 30, 2024
85e9054
fixes
erangi-ar Aug 30, 2024
b9bc377
Merge branch 'dev' of https://github.com/rootcodelabs/classifier into…
erangi-ar Aug 30, 2024
5e3a4ad
fixes
erangi-ar Aug 30, 2024
6a2d8b0
fixes
erangi-ar Aug 30, 2024
0a5dc10
fixes
erangi-ar Aug 30, 2024
30ebcec
Merge pull request #266 from rootcodelabs/sonar-cloud-issues
Thirunayan22 Aug 30, 2024
7b43050
Merge pull request #267 from rootcodelabs/dev
Thirunayan22 Aug 30, 2024
b316ed2
training sessions fix
erangi-ar Aug 30, 2024
2edf7b0
Merge pull request #268 from rootcodelabs/sonar-cloud-issues
Thirunayan22 Aug 30, 2024
b2fe948
Merge pull request #269 from rootcodelabs/dev
Thirunayan22 Aug 30, 2024
54daafc
training sessions fix
erangi-ar Aug 30, 2024
d46b29e
Merge pull request #270 from rootcodelabs/dev
Thirunayan22 Aug 30, 2024
e478d44
Merge branch 'dev' into Re-Train-And-Last-Train-Models
Thirunayan22 Aug 30, 2024
dec366c
Merge pull request #245 from rootcodelabs/Re-Train-And-Last-Train-Models
Thirunayan22 Aug 30, 2024
fee786e
Merge pull request #272 from rootcodelabs/dev
Thirunayan22 Aug 30, 2024
aabb312
fixed issues training
Thirunayan22 Aug 30, 2024
c913fa7
Merge branch 'feat/model-training' of https://github.com/rootcodelabs…
Thirunayan22 Aug 30, 2024
6e967a4
cleaned code
Thirunayan22 Aug 30, 2024
5e61d3c
pushing changes
Thirunayan22 Aug 30, 2024
561ff85
Merge pull request #273 from rootcodelabs/feat/model-training
Thirunayan22 Aug 30, 2024
813fe9e
Merge pull request #274 from rootcodelabs/dev
Thirunayan22 Aug 30, 2024
1200344
Merge pull request #252 from rootcodelabs/anonymizer-streamlit
Thirunayan22 Aug 30, 2024
439dfec
Merge pull request #276 from rootcodelabs/dev
Thirunayan22 Aug 30, 2024
9b5efbb
Update README.md
Thirunayan22 Aug 30, 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
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .github/workflows/README.md

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: SonarCloud Code Quality Analysis

on:
push:
branches:
- dev
- stage
- main
pull_request:
branches:
- dev
- stage
- main

jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Needed to authenticate with SonarCloud
with:

args:

-Dsonar.projectKey=${{ secrets.SONAR_PROJECT_KEY }}
-Dsonar.organization=${{ secrets.SONAR_ORGANIZATION }}
20 changes: 19 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -395,4 +395,22 @@ FodyWeavers.xsd
*.msp

# JetBrains Rider
*.sln.iml
*.sln.iml

/tim-db
/data

.env
.sonarlint
.vscode
.DS_Store
DSL/Liquibase/data/update_refresh_token.sql
model_trainer/results
protected_configs/

./config.env
./constants.ini

config.env
constants.ini
jira_config.env
5 changes: 5 additions & 0 deletions DSL/CronManager/DSL/data_model.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
model_trainer:
trigger: off
type: exec
command: "../app/scripts/python_train_script_starter.sh"
allowedEnvs: ['cookie', 'modelId', 'newModelId','updateType','previousDeploymentEnv']
4 changes: 4 additions & 0 deletions DSL/CronManager/DSL/data_model_progress_session.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
delete_completed_sessions:
trigger: "0 0 0 * * ?"
type: exec
command: "../app/scripts/delete_completed_data_model_progress_sessions.sh"
5 changes: 5 additions & 0 deletions DSL/CronManager/DSL/data_validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
data_validation:
trigger: off
type: exec
command: "../app/scripts/data_validator_exec.sh"
allowedEnvs: ["cookie","dgId", "newDgId","updateType","savedFilePath","patchPayload"]
5 changes: 5 additions & 0 deletions DSL/CronManager/DSL/datamodel_processing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
datamodel_deletion:
trigger: off
type: exec
command: "../app/scripts/datamodel_deletion_exec.sh"
allowedEnvs: ["cookie","modelId"]
5 changes: 5 additions & 0 deletions DSL/CronManager/DSL/dataset_deletion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dataset_deletion:
trigger: off
type: exec
command: "../app/scripts/dataset_deletion_exec.sh"
allowedEnvs: ["cookie","dgId"]
5 changes: 5 additions & 0 deletions DSL/CronManager/DSL/dataset_processor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dataset_processor:
trigger: off
type: exec
command: "../app/scripts/data_processor_exec.sh"
allowedEnvs: ["cookie","dgId", "newDgId","updateType","savedFilePath","patchPayload", "sessionId"]
4 changes: 4 additions & 0 deletions DSL/CronManager/DSL/dataset_progress_session.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
delete_completed_sessions:
trigger: "0 0 0 * * ?"
type: exec
command: "../app/scripts/delete_completed_dataset_progress_sessions.sh"
9 changes: 9 additions & 0 deletions DSL/CronManager/DSL/outlook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
token_refresh:
trigger: "0 0 0 ? * 7#1"
type: exec
command: "../app/scripts/outlook_refresh_token.sh"

subscription_refresh:
trigger: "0 0 0 * * ?"
type: exec
command: "../app/scripts/outlook_subscription_refresh.sh"
7 changes: 7 additions & 0 deletions DSL/CronManager/config/config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[DSL]

CLASSIFIER_RESQL=http://resql:8082
OUTLOOK_CLIENT_ID=value
OUTLOOK_SECRET_KEY=value
OUTLOOK_SCOPE=User.Read Mail.ReadWrite MailboxSettings.ReadWrite offline_access
INIT_DATESET_PROCESSOR_API=http://dataset-processor:8001/init-dataset-process
47 changes: 47 additions & 0 deletions DSL/CronManager/script/data_processor_exec.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/bin/bash

echo "Started Shell Script to process"
# Ensure required environment variables are set
if [ -z "$dgId" ] || [ -z "$newDgId" ] || [ -z "$cookie" ] || [ -z "$updateType" ] || [ -z "$savedFilePath" ] || [ -z "$patchPayload" ] || [ -z "$sessionId" ]; then
echo "One or more environment variables are missing."
echo "Please set dgId, newDgId, cookie, updateType, savedFilePath, patchPayload, and sessionId."
exit 1
fi

# Construct the payload using here document
payload=$(cat <<EOF
{
"dgId": "$dgId",
"newDgId": "$newDgId",
"updateType": "$updateType",
"savedFilePath": "$savedFilePath",
"patchPayload": "$patchPayload",
"cookie": "$cookie",
"sessionId": "$sessionId"
}
EOF
)

# Set the forward URL
forward_url="http://dataset-processor:8001/init-dataset-process"

# Send the request
response=$(curl -s -w "\nHTTP_STATUS_CODE:%{http_code}" -X POST "$forward_url" \
-H "Content-Type: application/json" \
-H "Cookie: $cookie" \
-d "$payload")

# Extract the HTTP status code from the response
http_status=$(echo "$response" | grep "HTTP_STATUS_CODE" | awk -F: '{print $2}' | tr -d '[:space:]')

# Extract the body from the response
http_body=$(echo "$response" | grep -v "HTTP_STATUS_CODE")

# Check if the request was successful
if [ "$http_status" -ge 200 ] && [ "$http_status" -lt 300 ]; then
echo "Request successful."
echo "Response: $http_body"
else
echo "Request failed with status code $http_status."
echo "Response: $http_body"
exit
47 changes: 47 additions & 0 deletions DSL/CronManager/script/data_validator_exec.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/bin/bash

echo "Started Shell Script to validator"
# Ensure required environment variables are set
if [ -z "$dgId" ] || [ -z "$newDgId" ] || [ -z "$cookie" ] || [ -z "$updateType" ] || [ -z "$savedFilePath" ] || [ -z "$patchPayload" ]; then
echo "One or more environment variables are missing."
echo "Please set dgId, newDgId, cookie, updateType, savedFilePath, and patchPayload."
exit 1
fi

# Construct the payload using here document
payload=$(cat <<EOF
{
"dgId": "$dgId",
"newDgId": "$newDgId",
"updateType": "$updateType",
"savedFilePath": "$savedFilePath",
"patchPayload": "$patchPayload",
"cookie": "$cookie"
}
EOF
)

# Set the forward URL
forward_url="http://dataset-processor:8001/datasetgroup/update/validation/status"

# Send the request
response=$(curl -s -w "\nHTTP_STATUS_CODE:%{http_code}" -X POST "$forward_url" \
-H "Content-Type: application/json" \
-H "Cookie: $cookie" \
-d "$payload")

# Extract the HTTP status code from the response
http_status=$(echo "$response" | grep "HTTP_STATUS_CODE" | awk -F: '{print $2}' | tr -d '[:space:]')

# Extract the body from the response
http_body=$(echo "$response" | grep -v "HTTP_STATUS_CODE")

# Check if the request was successful
if [ "$http_status" -ge 200 ] && [ "$http_status" -lt 300 ]; then
echo "Request successful."
echo "Response: $http_body"
else
echo "Request failed with status code $http_status."
echo "Response: $http_body"
exit 1
fi
67 changes: 67 additions & 0 deletions DSL/CronManager/script/datamodel_deletion_exec.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#!/bin/bash
echo "Started Shell Script to delete models"
# Ensure required environment variables are set
if [ -z "$modelId" ] || [ -z "$cookie" ]; then
echo "One or more environment variables are missing."
echo "Please set modelId and cookie."
exit 1
fi

# Set the API URL to get metadata based on the modelId
api_url="http://ruuter-private:8088/classifier/datamodel/metadata?modelId=$modelId"

echo $api_url
# Send the request to the API and capture the output
api_response=$(curl -s -H "Cookie: $cookie" -X GET "$api_url")

echo $api_response

# Check if the API response is valid
if [ -z "$api_response" ]; then
echo "API request failed to get the model metadata."
exit 1
fi

deployment_env=$(echo $api_response | jq -r '.response.data[0].deploymentEnv')

echo "API RESPONSE"
echo $api_response
echo "DEPLOYMENT ENV"
echo $deployment_env

# Construct the payload using here document
payload=$(cat <<EOF
{
"modelId": "$modelId",
"cookie": "$cookie",
"deploymentEnv": "$deployment_env"
}
EOF
)

echo $payload

# Set the forward URL
forward_url="http://file-handler:8000/datamodel/model/delete"

# Send the request
response=$(curl -s -w "\nHTTP_STATUS_CODE:%{http_code}" -X POST "$forward_url" \
-H "Content-Type: application/json" \
-H "Cookie: $cookie" \
-d "$payload")

# Extract the HTTP status code from the response
http_status=$(echo "$response" | grep "HTTP_STATUS_CODE" | awk -F: '{print $2}' | tr -d '[:space:]')

# Extract the body from the response
http_body=$(echo "$response" | grep -v "HTTP_STATUS_CODE")

# Check if the request was successful
if [ "$http_status" -ge 200 ] && [ "$http_status" -lt 300 ]; then
echo "Request successful."
echo "Response: $http_body"
else
echo "Request failed with status code $http_status."
echo "Response: $http_body"
exit 1
fi
42 changes: 42 additions & 0 deletions DSL/CronManager/script/dataset_deletion_exec.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash
echo "Started Shell Script to delete"
# Ensure required environment variables are set
if [ -z "$dgId" ] || [ -z "$cookie" ]; then
echo "One or more environment variables are missing."
echo "Please set dgId, newDgId, cookie, updateType, savedFilePath, and patchPayload."
exit 1
fi

# Construct the payload using here document
payload=$(cat <<EOF
{
"dgId": "$dgId",
"cookie": "$cookie"
}
EOF
)

# Set the forward URL
forward_url="http://file-handler:8000/datasetgroup/data/delete"

# Send the request
response=$(curl -s -w "\nHTTP_STATUS_CODE:%{http_code}" -X POST "$forward_url" \
-H "Content-Type: application/json" \
-H "Cookie: $cookie" \
-d "$payload")

# Extract the HTTP status code from the response
http_status=$(echo "$response" | grep "HTTP_STATUS_CODE" | awk -F: '{print $2}' | tr -d '[:space:]')

# Extract the body from the response
http_body=$(echo "$response" | grep -v "HTTP_STATUS_CODE")

# Check if the request was successful
if [ "$http_status" -ge 200 ] && [ "$http_status" -lt 300 ]; then
echo "Request successful."
echo "Response: $http_body"
else
echo "Request failed with status code $http_status."
echo "Response: $http_body"
exit 1
fi
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/bin/bash

cd "$(dirname "$0")"

source ../config/config.ini

script_name=$(basename $0)
pwd

echo $(date -u +"%Y-%m-%d %H:%M:%S.%3NZ") - $script_name started

delete_dataset_progress_sessions() {
delete_response=$(curl -s -X POST -H "Content-Type: application/json" "http://resql:8082/delete-completed-data-model-progress-sessions")

echo "Response from delete request: $delete_response"

session_ids=$(echo "$delete_response" | grep -oP '"id":\K\d+' | tr '\n' ' ' | sed 's/ $//') # Remove trailing space

echo "Session IDs: $session_ids"

if [ -n "$session_ids" ]; then
delete_from_opensearch "$session_ids"
else
echo "No session IDs were returned in the response."
fi
}

delete_from_opensearch() {
local session_ids="$1"

delete_query="{\"query\": {\"terms\": {\"sessionId\": ["
for id in $session_ids; do
delete_query+="\"$id\","
done
delete_query=$(echo "$delete_query" | sed 's/,$//') # Remove trailing comma
delete_query+="]}}}"

echo "delete query: $delete_query"

opensearch_response=$(curl -s -X POST -H "Content-Type: application/json" -d "$delete_query" "http://opensearch-node:9200/data_model_progress_sessions/_delete_by_query")

echo "Response from OpenSearch delete request: $opensearch_response"
}

delete_dataset_progress_sessions

echo $(date -u +"%Y-%m-%d %H:%M:%S.%3NZ") - $script_name finished
Loading