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

Meta 3987: field limit increased in ElasticSearch for janusgraph vertex index. #223

Open
wants to merge 845 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
845 commits
Select commit Hold shift + click to select a range
aac3389
META-3009: Invoke onChange of all types to refresh them
NishitAtlan Jul 21, 2022
0551593
META-3009: Added delayed before signalling cache refresh
NishitAtlan Jul 22, 2022
44eb3de
META-3009: Removed un-conditional thread sleeping and instead wait fo…
NishitAtlan Jul 28, 2022
068696e
META-3009: Use cloud url to refresh type-def cache
NishitAtlan Aug 2, 2022
c33d796
META-3009: Log level and message enhancement
NishitAtlan Aug 2, 2022
2882cea
META-3009: Integrated updated response from cloud endpoint
NishitAtlan Aug 4, 2022
4dd9a14
META-3009: Consider HA flag before acquiring lock. Added health and s…
NishitAtlan Aug 10, 2022
d2c4319
META-3009: Lock in index recovery
NishitAtlan Aug 12, 2022
b8dbb2d
META-3009: Added health check of cinv before mutating types in active…
NishitAtlan Aug 13, 2022
e5d92c9
TNMK-3036 Fixed the termination condition for returning on adding mor…
fatihdogmus Aug 17, 2022
5c43205
TNMK-3036 Fixed the termination condition for returning on adding mor…
fatihdogmus Aug 18, 2022
1d1d3cf
TNMK-3036 Fixed up/down stream counts
fatihdogmus Aug 18, 2022
53517a2
TNMK-3036
fatihdogmus Aug 18, 2022
4b2e3b6
Commit by interceptor implemented
sumandas0 Aug 22, 2022
f6eca0d
META-3009: Review comments
NishitAtlan Aug 23, 2022
936105b
Merge pull request #774 from atlanhq/enhance/meta-3097-heap-usage-opt…
mehtaanshul Aug 24, 2022
0af38a7
Merge pull request #760 from atlanhq/hsexperiment_release
mehtaanshul Aug 25, 2022
aa8bacc
TNMK-3036 Fixed the query that calculates up/downstream counts. Fixed…
fatihdogmus Aug 25, 2022
ae593ce
TNMK-3036 Finished implementing has more up/downstream boolean flag. …
fatihdogmus Aug 26, 2022
357ee30
TNMK-3036 Hid the vertex counts under a request flag
fatihdogmus Aug 26, 2022
82f05b7
TNMK-3036 Instead of returning the children counts, we now return whe…
fatihdogmus Aug 26, 2022
1d62a2c
TNMK-3036 Removed redundant code block
fatihdogmus Aug 29, 2022
2d62ee2
TNMK-3036 Added validation for calculate vertex count flag
fatihdogmus Aug 29, 2022
960d8f0
TNMK-3036 Minor refactors
fatihdogmus Aug 29, 2022
fc7cc4c
META-3009: Added traceId in logging. Prevent cache-refresh in passive…
NishitAtlan Aug 29, 2022
498ec73
draft implementation
sumandas0 Aug 30, 2022
9ed6fc1
First implementation
sumandas0 Sep 1, 2022
1b0c732
META-3091 implemented pagination on classification deletion task
BurakAltas Sep 1, 2022
bd2f56f
META-3091 reverted changes of counting down
BurakAltas Sep 2, 2022
77ef356
Fixing Graph commit
sumandas0 Sep 3, 2022
8600c31
Remove redundant import
sumandas0 Sep 3, 2022
10aaf35
Optimization in propagation add
sumandas0 Sep 3, 2022
1867246
Added visibility with log
sumandas0 Sep 4, 2022
527807e
META-3054 Get entity does not return attribute of type array of struct
nikhilbonte21 Sep 5, 2022
d158f76
META-3054 GET nested struct type entity, array of entity
nikhilbonte21 Sep 5, 2022
893b6a6
META-3054 Fix: Update entity with Struct array attr values gets appended
nikhilbonte21 Sep 6, 2022
f3c17a3
Refactored the diff check
sumandas0 Sep 7, 2022
25cb44c
Update EntityGraphMapper.java
sumandas0 Sep 7, 2022
162c1f5
Made changes as requested
sumandas0 Sep 8, 2022
3f7e97a
Update EntityGraphMapper.java
sumandas0 Sep 8, 2022
e6f4a78
Update DeleteHandlerV1.java
sumandas0 Sep 8, 2022
0b5ef02
Fix/meta 3098 classification prop (#824)
BurakAltas Sep 8, 2022
fc38ddd
Long to int
sumandas0 Sep 8, 2022
7742bce
Merge pull request #829 from atlanhq/enhance/meta-3091-delete-prop
mehtaanshul Sep 12, 2022
3a25a9a
Merge branch 'master' into enhance/meta-3120
mehtaanshul Sep 12, 2022
607cf0e
Merge pull request #830 from atlanhq/enhance/meta-3120
mehtaanshul Sep 12, 2022
f494a19
Merge pull request #832 from atlanhq/master
mehtaanshul Sep 12, 2022
08f12f3
Merge pull request #726 from atlanhq/fix/META-3067-1
mehtaanshul Sep 12, 2022
460de24
Added log for visibility
sumandas0 Sep 14, 2022
8446a37
Merge pull request #845 from atlanhq/logging/meta-3138
nikhilbonte21 Sep 14, 2022
768f242
META-3143 Added the relationAttributes to getlineage request (#852)
fatihdogmus Sep 16, 2022
a692142
META-3009: Review comment for error logging
NishitAtlan Sep 16, 2022
bb2e134
META-3036 Fixed processing the deleted processes.
fatihdogmus Sep 19, 2022
3c5df84
META-3036 Fixed last processes being added before termination
fatihdogmus Sep 19, 2022
40ba292
META-3114 : Replace log4j1 with reload4j for CVE (#863)
nixon-atlan Sep 20, 2022
8415baa
Implementation of traversal optimization
sumandas0 Sep 20, 2022
7131f6b
Improvement on traversal
sumandas0 Sep 21, 2022
7a196fd
Refactored some code
sumandas0 Sep 22, 2022
a7beac0
Added itaerable refactor
sumandas0 Sep 22, 2022
346f501
META-3036
fatihdogmus Sep 22, 2022
28a7858
META-3036
fatihdogmus Sep 23, 2022
850c1d5
META-3036 Try fixing the cyclic dependency
fatihdogmus Sep 26, 2022
0ca7727
META-3036 Exclude the cyclic edge from process edges
fatihdogmus Sep 27, 2022
acd5e78
META-3036
fatihdogmus Sep 27, 2022
f372121
META-3036
fatihdogmus Sep 27, 2022
c4640e6
Merge pull request #885 from atlanhq/enhance/meta-3141
sumandas0 Sep 27, 2022
ee7bb3f
META-3153 : Instrumented metric logging for Lineage service
nixon-atlan Sep 28, 2022
22f68e8
META-3136: Enable ActiveServerFilter to prevent passive node processi…
NishitAtlan Sep 29, 2022
b2f3ab9
META-3135: Increase lock-timeout to 15 seconds to retain current HA b…
NishitAtlan Sep 29, 2022
b69b936
META-3036 Replace ID check with display ID instead of GUID
fatihdogmus Sep 27, 2022
83ab157
META-3036
fatihdogmus Sep 27, 2022
45c9967
META-3036
fatihdogmus Sep 27, 2022
45d34e5
META-3036 Fixed stream bug
fatihdogmus Sep 28, 2022
4ecfbce
META-3036 Clean-up
fatihdogmus Sep 28, 2022
c84bbca
Merge branch 'master' into fix/META-3036
fatihdogmus Sep 29, 2022
8038f6d
META-3036 Clean-up and refactor
fatihdogmus Sep 30, 2022
678fe9f
Merge pull request #801 from atlanhq/hsexperiment-logging
mehtaanshul Oct 3, 2022
c6c2509
Merge pull request #911 from atlanhq/nb/struct_type_issue
mehtaanshul Oct 6, 2022
fffc861
Added first iteration of parallelising
sumandas0 Oct 6, 2022
fba358e
META-3156 - Needs an isOverwrite=false feature in the entity bulk API…
nixon-atlan Oct 7, 2022
dd5f084
Create Dependency Review File
SJ029626 Oct 7, 2022
b986489
Fetch Vertex test
sumandas0 Oct 9, 2022
4ba41e6
Create Dependabot Manifest File
SJ029626 Oct 10, 2022
1084cca
Added parallelisation in edge deletion
sumandas0 Oct 11, 2022
bad7d71
META-3146 Support Ranger tag based evaluation with attributes (#924)
nixon-atlan Oct 12, 2022
3db9a8d
META-3159 Support removing all attributes of a BM
nikhilbonte21 Oct 12, 2022
1a77b62
Merge pull request #945 from atlanhq/META-3159-master
DillionTan Oct 13, 2022
5086366
Merge pull request #895 from atlanhq/META-3153-master
DillionTan Oct 14, 2022
95c01e7
Merge pull request #947 from atlanhq/meta-3154
sumandas0 Oct 17, 2022
bd73f98
Release management changes (#917)
samarthatlan Oct 18, 2022
176a5f1
META-3168 Lineage API: allowDeletedProcess:false returns deleted Proc…
nikhilbonte21 Oct 18, 2022
8c9e8fd
fix: atlan-2226 glossary category parent issue
mehtaanshul Oct 19, 2022
3deae2b
Merge pull request #957 from atlanhq/nb/lineageDeletedProcessFlag-master
nikhilbonte21 Oct 20, 2022
0574297
Merge pull request #960 from atlanhq/fix/atlan-2226
mehtaanshul Oct 20, 2022
54d66bd
Revert "Meta 3154 - CLASSIFICATION_ONLY_PROPAGATION_DELETE task trave…
sumandas0 Oct 21, 2022
5666f5a
Merge pull request #968 from atlanhq/revert-947-meta-3154
mehtaanshul Oct 21, 2022
910f31c
Update README.txt
mehtaanshul Oct 21, 2022
04d2003
Feat/meta 3127 retry tasks (#881)
BurakAltas Oct 26, 2022
df24a0e
Merge pull request #919 from atlanhq/dependency-review
mehtaanshul Oct 28, 2022
e3ba103
Merge pull request #923 from atlanhq/dependabot-manifest
mehtaanshul Oct 28, 2022
8f095b2
Merge branch 'master' into feat/lineage-vertical-pagination
BurakAltas Oct 28, 2022
68c4323
QAE-934, META-3152 ignored processes & self-cycles
BurakAltas Oct 28, 2022
bf8f2da
META-3168 Lineage API: allowDeletedProcess
BurakAltas Oct 28, 2022
5de9653
metrics added
BurakAltas Oct 28, 2022
1c8d3cc
META-3051 :- Remove struct type attribute when set to null
nixon-atlan Oct 31, 2022
c064f28
Merge pull request #989 from atlanhq/feat/lineage-vertical-pagination
BurakAltas Nov 1, 2022
9b99c64
META-3158 task separation implemented
BurakAltas Nov 1, 2022
98e6321
META-3158 resolve conflicts
BurakAltas Nov 2, 2022
3c2bf55
META-3158 single classification execution in deleteClassificationOnly…
BurakAltas Nov 4, 2022
81fabab
Implemented PBFS using ExecutorService
sumandas0 Nov 7, 2022
df764c5
Merge branch 'master' into meta-3154
sumandas0 Nov 7, 2022
856530c
Implemented PBFS in add and in only propagation
sumandas0 Nov 7, 2022
bec576b
Fix for Review comments
nixon-atlan Nov 7, 2022
eab2a1c
META-3158 cosmetic fixes
BurakAltas Nov 8, 2022
a9498e0
META-3158 cosmetic fixes
BurakAltas Nov 8, 2022
d229b89
META-3158 condition for not attached classifications
BurakAltas Nov 9, 2022
abf40d0
META-3086 haslineage fixed
BurakAltas Nov 9, 2022
d3dc9ad
META-3165 Add x-atlan-* headers to entity audits
nikhilbonte21 Nov 10, 2022
7c17de1
Update maven.yml
mehtaanshul Nov 10, 2022
84863b0
META-3086 haslineage fixed
BurakAltas Nov 10, 2022
64287b4
META-3086 added active edges size check
BurakAltas Nov 11, 2022
cd2000e
Added back propagated vertices for backward compatibility
sumandas0 Nov 14, 2022
4987218
META-3086 used constant string
BurakAltas Nov 14, 2022
c466654
Merge pull request #1035 from atlanhq/nb/request-headers-atlan
mehtaanshul Nov 14, 2022
2f55d16
Merge pull request #1037 from atlanhq/master
mehtaanshul Nov 14, 2022
3be17aa
Merge pull request #1013 from atlanhq/META-3051
mehtaanshul Nov 14, 2022
4547195
Merge pull request #1038 from atlanhq/master
mehtaanshul Nov 14, 2022
aab3667
Merge pull request #1036 from atlanhq/enhance/META-3158-tasks-separation
mehtaanshul Nov 14, 2022
fb86e1d
Merge branch 'master' into meta-3154
sumandas0 Nov 15, 2022
14615de
META-3086 refactored
BurakAltas Nov 15, 2022
0cff7e4
ATLAN-2367 children ignored processes fixed
BurakAltas Nov 15, 2022
6080a09
META-3086 addressed comments
BurakAltas Nov 16, 2022
0a2276b
Merge branch 'master' into fix/META-3086-haslineage
BurakAltas Nov 16, 2022
87fb58e
ATLAN-2367 null check updated
BurakAltas Nov 16, 2022
1217389
Refactoring the code to use same function
sumandas0 Nov 17, 2022
d6f6f4a
Merge pull request #1045 from atlanhq/fix/META-3086-haslineage
BurakAltas Nov 17, 2022
045cd95
Merge branch 'master' into fix/ATLAN-2367-children
BurakAltas Nov 17, 2022
3050524
Merge pull request #1052 from atlanhq/fix/ATLAN-2367-children
BurakAltas Nov 17, 2022
cae79fb
Merge branch 'master' into meta-3154
sumandas0 Nov 21, 2022
fb4d360
Added ExecutorService shutdown refactor
sumandas0 Nov 21, 2022
cfa2625
Merge pull request #1047 from atlanhq/meta-3154
sumandas0 Nov 22, 2022
1094a87
ATLAN-1996 self cycle fix
BurakAltas Nov 22, 2022
3005886
ATLAN-1996 notification fixed
BurakAltas Nov 22, 2022
1ee4f9a
meta-2570 fixed the hasMoreVertices condition for terminating graph c…
suraj5077 Nov 24, 2022
c9e78ee
ATLAN-2570 added offset fixes and refactored code
suraj5077 Nov 25, 2022
7991de5
removed redundant check
suraj5077 Nov 25, 2022
836947a
refactoring
suraj5077 Nov 28, 2022
6cad1d5
refactoring
suraj5077 Nov 28, 2022
2086762
removed redundant code
suraj5077 Nov 28, 2022
4d78d71
Merge branch 'fix/meta-2570' of https://github.com/atlanhq/atlas-meta…
suraj5077 Nov 28, 2022
8681362
ATLAN-1996 self-cycle expand fixed
BurakAltas Nov 29, 2022
4ea0515
Merge pull request #1079 from atlanhq/master
mehtaanshul Nov 29, 2022
a040e84
Merge pull request #1077 from atlanhq/fix/meta-2570
suraj5077 Nov 29, 2022
ce093cd
Fix entityDetail scrubbing
sumandas0 Nov 30, 2022
da8a40f
CodeQL - Master
SJ029626 Nov 30, 2022
b833fc0
ATLAN-1996 self-cycle expand fixed for output
BurakAltas Nov 30, 2022
6b90453
ATLAN-1996 self-cycle expand fixed for output
BurakAltas Nov 30, 2022
ac506f0
Update attribute fetching system
sumandas0 Dec 1, 2022
1532019
Code refactoring
sumandas0 Dec 1, 2022
1194b73
ATLAN-2653 checking for edge relationship status
BurakAltas Dec 1, 2022
d2dd4fb
ATLAN-2653 removed redundant variables
BurakAltas Dec 1, 2022
f1d7e40
ATLAN-2653 removed redundant variables
BurakAltas Dec 1, 2022
79cd320
ATLAN-2653 removed redundant import
BurakAltas Dec 2, 2022
f3461e1
Merge pull request #1096 from atlanhq/fix/ATLAN-2653-relationship-status
BurakAltas Dec 6, 2022
8034b40
Merge branch 'master' into fix/ATLAN-1996-self-cycle
BurakAltas Dec 6, 2022
137b101
ATLAN-1996 added perf metric
BurakAltas Dec 6, 2022
7bb505d
ATLAN-1996 revert perf metric back
BurakAltas Dec 6, 2022
30237d4
Merge pull request #1095 from atlanhq/fix/meta-3287
sumandas0 Dec 6, 2022
25b86c0
Merge pull request #1104 from atlanhq/master
mehtaanshul Dec 6, 2022
94e2bb5
ATLAN-1996 added perf metric
BurakAltas Dec 6, 2022
1d812a0
Merge remote-tracking branch 'origin/fix/ATLAN-1996-self-cycle' into …
BurakAltas Dec 6, 2022
ad93659
Merge pull request #1107 from atlanhq/fix/ATLAN-1996-self-cycle
BurakAltas Dec 7, 2022
0a6a86e
Bump path-parse in /dashboardv3/public/js/external_lib/atlas-lineage
dependabot[bot] Sep 20, 2022
13ff9d6
Bump terser in /dashboardv3/public/js/external_lib/atlas-lineage
dependabot[bot] Sep 20, 2022
ebfdb26
Bump browserslist in /dashboardv3/public/js/external_lib/atlas-lineage
dependabot[bot] Sep 20, 2022
7ac769c
Bump minimist in /dashboardv3/public/js/external_lib/atlas-lineage
dependabot[bot] Sep 20, 2022
c645a05
Bump postcss in /dashboardv3/public/js/external_lib/atlas-lineage
dependabot[bot] Sep 20, 2022
b554715
Bump glob-parent in /dashboardv3/public/js/external_lib/atlas-lineage
dependabot[bot] Sep 20, 2022
f08ac43
Bump minimatch from 3.0.4 to 3.0.8 in /dashboardv2
dependabot[bot] Nov 10, 2022
30f6465
Bump minimatch from 3.0.4 to 3.0.8 in /dashboardv3
dependabot[bot] Nov 10, 2022
3fe5ba3
Bump loader-utils in /dashboardv3/public/js/external_lib/atlas-lineage
dependabot[bot] Nov 24, 2022
cc3bf98
Bump loader-utils in /dashboardv2/public/js/external_lib/atlas-lineage
dependabot[bot] Nov 24, 2022
00ea44b
Bump qs from 6.5.2 to 6.5.3 in /dashboardv2
dependabot[bot] Dec 7, 2022
ae3d05c
Bump qs from 6.5.2 to 6.5.3 in /dashboardv3
dependabot[bot] Dec 7, 2022
b7f159a
Upgrade lodash to [email protected]
nixon-atlan Dec 12, 2022
347f1e1
Upgrade d3-color to 3.1.0
nixon-atlan Dec 12, 2022
a0fae18
Bump decode-uri-component from 0.2.0 to 0.2.2
nixon-atlan Dec 12, 2022
c666920
Implementation of edge hard delete into background task
sumandas0 Dec 13, 2022
9704420
Merge pull request #1121 from atlanhq/META-3300
DillionTan Dec 14, 2022
268da3e
Added vertex exists check and refactored the code
sumandas0 Dec 15, 2022
8cd764f
ATLAN-2271 output vertices with multiple processes bug fixed
BurakAltas Dec 18, 2022
a7127fb
Minor log change
sumandas0 Dec 20, 2022
9bf66c2
Merge pull request #1132 from atlanhq/feat/meta-3166-hard-delete-task
sumandas0 Dec 20, 2022
09c0c3b
Update codeql.yml
SJ029626 Dec 21, 2022
8fb9fa8
Update codeql.yml
SJ029626 Dec 21, 2022
8e3b57a
Enabled plugin for users
sumandas0 Dec 23, 2022
b0aa72b
Implemented deleting all asset while purging
sumandas0 Dec 26, 2022
d865b83
Remove pom.xml from git tracking
sumandas0 Dec 26, 2022
062b109
No need to remove classification from deleted entity
sumandas0 Dec 26, 2022
4314292
Merge pull request #1134 from atlanhq/fix/ATLAN-2771-dbt-processes
BurakAltas Dec 26, 2022
800094a
Delete status inverse check
sumandas0 Dec 26, 2022
1e35727
We will only skip DLETED assets in case we are not purging
sumandas0 Dec 26, 2022
8b570aa
Small fix
sumandas0 Dec 26, 2022
9b11f41
Small improvement of setting purge request
sumandas0 Dec 27, 2022
1d403dc
Refactor nameing
sumandas0 Dec 27, 2022
ddf5419
Revert purging change
sumandas0 Dec 27, 2022
d2f256f
Merge pull request #1149 from atlanhq/enhance/meta-3315
sumandas0 Dec 27, 2022
c5ad5f6
Fix: Updated task parameters to be discoverable
sumandas0 Dec 28, 2022
1d5b910
META-3915 :- Fix CodeQL - Implicit narrowing conversion in compound a…
nixon-atlan Jan 2, 2023
a721d2e
META-3283 :- Fix :- Cannot save blank description for typesdef (#1168)
nixon-atlan Jan 2, 2023
0db0354
lineage on demand added
mehtaanshul Nov 10, 2022
2f06996
added more changes to support lineageondemand
mehtaanshul Nov 10, 2022
d8d89d1
fixed: issue in lineageondemand api
mehtaanshul Nov 10, 2022
8fa8aea
lineage on demand enabled by default
BurakAltas Dec 10, 2022
88878e3
minor changes: to seperate code flow of new lineage API
mehtaanshul Jan 3, 2023
e6d25ec
ATLAS-4607: UI improvements to support Atlas Lineage fetch on-demand
Jul 26, 2022
4ca097b
Added space for diff
nixon-atlan Jan 3, 2023
a99bcf1
Merge pull request #1173 from atlanhq/feat/lineage-on-demand-api
mehtaanshul Jan 3, 2023
f31f8ae
Merge pull request #1174 from atlanhq/feat/lineage-on-demand-ui
mehtaanshul Jan 3, 2023
5b7f0c5
feat: refresh propagation implemented with checks
sumandas0 Jan 3, 2023
b450eb5
Merge branch 'master' of github.com:atlanhq/atlas-metastore into enha…
sumandas0 Jan 3, 2023
fa922c7
Merge pull request #1086 from atlanhq/codeql-master
nixon-atlan Jan 4, 2023
32a337f
fix: only make change for classification delete only prop
sumandas0 Jan 5, 2023
da061cb
fix: again adding refresh propagation back with more enhancement
sumandas0 Jan 6, 2023
bd6a197
fix : refactor code
sumandas0 Jan 6, 2023
08f45f0
fix: revert commit size
sumandas0 Jan 6, 2023
7360a6b
fix: update the task vertex property naming
sumandas0 Jan 6, 2023
c849d8b
fix: refactoring code to have better naming
sumandas0 Jan 6, 2023
1684df5
@sumandas0 fix: refactoring code to have better naming #2
sumandas0 Jan 6, 2023
ba149d8
META-3939 :- Fix CVE : Apache Cassandra vulnerable to Code Injection…
nixon-atlan Jan 9, 2023
7cd23c3
META-4031 isProcess check updated
BurakAltas Jan 9, 2023
ec68287
META-4031 graph helper rollback
BurakAltas Jan 9, 2023
34efb51
refactor: Code refactoring
sumandas0 Jan 10, 2023
5df523d
refactor : refactored few points
sumandas0 Jan 10, 2023
fdc2314
refactor: refactored few points
sumandas0 Jan 10, 2023
208e410
refactor: adding check before making ES query
sumandas0 Jan 11, 2023
f04f3b6
Merge branch 'master' of github.com:atlanhq/atlas-metastore into enha…
sumandas0 Jan 11, 2023
1965bc1
Merge pull request #1227 from atlanhq/META-3939-final
nixon-atlan Jan 11, 2023
6b086cf
Merge pull request #1218 from atlanhq/enhance/meta-3919
sumandas0 Jan 11, 2023
67011d8
META-4026 dashboard build skipped
BurakAltas Jan 11, 2023
9834eac
META-4026 skipped additional addons
BurakAltas Jan 11, 2023
cd5d55d
META-4026 skipped kafka hook descriptor on distro
BurakAltas Jan 11, 2023
ccf5f15
META-4026 added storm bridge for distro
BurakAltas Jan 11, 2023
52d6d18
META-4026 beta test
BurakAltas Jan 12, 2023
ba642dc
META-4026 beta test rollback
BurakAltas Jan 12, 2023
ddf9a3f
Merge pull request #1237 from atlanhq/fix/META-4031-isprocess
BurakAltas Jan 12, 2023
bcef3b7
Merge branch 'master' into fix/META-4026-skip-dashboard
BurakAltas Jan 12, 2023
cf3f62a
Merge pull request #1247 from atlanhq/fix/META-4026-skip-dashboard
BurakAltas Jan 12, 2023
3a810f3
revert ecr changes from master branch (#1225)
vmuskaaan Jan 13, 2023
8c6d7cd
updated field limit to 1500
Jan 16, 2023
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
  •  
  •  
  •  
100 changes: 100 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# Use `allow` to specify which dependencies to maintain

version: 2
updates:
- package-ecosystem: "npm" #npm
directory: "/"
schedule:
interval: "daily"
allow:
# Allow direct and indirect updates for all packages
- dependency-type: "all"

- package-ecosystem: "composer" #composer
directory: "/"
schedule:
interval: "daily"
allow:
# Allow direct and indirect updates for all packages
- dependency-type: "all"

- package-ecosystem: "pip" #python
directory: "/"
schedule:
interval: "daily"
allow:
# Allow direct and indirect updates for all packages
- dependency-type: "all"

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions" #github-actions
directory: "/"
schedule:
interval: "daily"
allow:
# Allow direct and indirect updates for all packages
- dependency-type: "all"

- package-ecosystem: "bundler"
directory: "/"
schedule:
interval: "daily"
allow:
# Allow direct and indirect updates for all packages
- dependency-type: "all"

- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "daily"
allow:
# Allow direct and indirect updates for all packages
- dependency-type: "all"

- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "daily"
allow:
# Allow direct updates for all packages
- dependency-type: "all"

- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "daily"
allow:
# Allow direct and indirect updates for all packages
- dependency-type: "all"

- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "daily"
allow:
# Allow direct and indirect updates for all packages
- dependency-type: "all"

- package-ecosystem: "maven"
directory: "/"
schedule:
interval: "daily"
allow:
# Allow direct and indirect updates for all packages
- dependency-type: "all"

- package-ecosystem: "pub"
directory: "/"
schedule:
interval: "daily"
allow:
# Allow direct and indirect updates for all packages
- dependency-type: "all"

- package-ecosystem: "terraform"
directory: "/"
schedule:
interval: "daily"
allow:
# Allow direct and indirect updates for all packages
- dependency-type: "all"
70 changes: 70 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
pull_request:
schedule:
- cron: '0 1 * * *'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ['java', 'python']
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
#- name: Autobuild
# uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
- name: Autobuild
run: |
echo "Run, Build Application using script"
chmod +x ./build.sh && ./build.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
12 changes: 12 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: 'Dependency Review'
on: [pull_request]
permissions:
contents: read
jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v3
- name: Dependency Review
uses: actions/dependency-review-action@v2
199 changes: 199 additions & 0 deletions .github/workflows/main-ecr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
name: Build and Push Atlas Metastore docker image to ECR(deprecated as of Jan 11, 2023)

on:
push:
branches:
- xoxo/deprecating-ecr/xoxo

permissions:
id-token: write
contents: write

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Get branch name
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: get_branch

- name: Get repository name
run: echo "REPOSITORY_NAME=`echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}' | sed -e "s/:refs//"`" >> $GITHUB_ENV
shell: bash

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/build.sh') }}
restore-keys: ${{ runner.os }}-m2

- name: Build with Maven
run: |
branch_name=${{ steps.get_branch.outputs.branch }}
if [[ $branch_name == 'main' || $branch_name == 'master' || $branch_name == 'lineageondemand' ]]
then
echo "build without dashboard"
chmod +x ./build.sh && ./build.sh build_without_dashboard
else
echo "build with dashboard"
chmod +x ./build.sh && ./build.sh
fi

- name: Get IAM Role and Region to login into ECR
id: get_ecr-details
run: |
branch_name=${{ steps.get_branch.outputs.branch }}
if [[ $branch_name == 'main' || $branch_name == 'staging' || $branch_name == 'master' ]]
then
iamRole=${{ secrets.AWS_PROD_PLATFORM_ECR_ACCESS }}
region='us-east-1'
else
iamRole=${{ secrets.AWS_DEV_PLATFORM_ECR_ACCESS }}
region='ap-south-1'
fi
echo "##[set-output name=iamRole;]$(echo ${iamRole})"
echo "##[set-output name=region;]$(echo ${region})"

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ steps.get_ecr-details.outputs.iamRole }}
aws-region: ${{ steps.get_ecr-details.outputs.region }}

- name: Check and create ECR Repo if it does not exist
uses: nick-fields/retry@v2
id: check_and_create_repo
with:
timeout_minutes: 10
max_attempts: 5
command: |
aws ecr describe-repositories --repository-names atlanhq/${{ github.event.repository.name }} || aws ecr create-repository --repository-name atlanhq/${{ github.event.repository.name }} --image-tag-mutability IMMUTABLE
while ! $(aws ecr get-repository-policy --repository-name atlanhq/${{ github.event.repository.name }})
do
aws ecr set-repository-policy --repository-name atlanhq/${{ github.event.repository.name }} --policy-text file://ecrorgcrossaccountpolicy.json
registryIdfrompolicy=$(aws ecr get-repository-policy --repository-name atlanhq/${{ github.event.repository.name }} | jq -r '.registryId')
registryIdfromfromecrrepo=$(aws ecr describe-repositories --repository-names atlanhq/${{ github.event.repository.name }} | jq -r '.repositories[0].registryId')
echo "registryIdfrompolicy : $registryIdfrompolicy and registryIdfromfromecrrepo : $registryIdfromfromecrrepo"
if [ $registryIdfrompolicy == $registryIdfromfromecrrepo ]
then
break
fi
done

- name: Get Semantic Version tag
id: semver_tag
run: |
branch_name=${{ steps.get_branch.outputs.branch }}
tag=$(git tag --sort=v:refname | grep -E "^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)-$branch_name$" | tail -1)
if [[ -z $tag ]]
then
echo "Creating a new tag series"
updated_full_tag="1.0.0-$branch_name"
new_tag=1.0.0
else
# echo "Current tag is $tag"
patch_version=$(echo $tag | cut -d '.' -f 3 | cut -d '-' -f 1)
minor_version=$(echo $tag | cut -d '.' -f 2)
major_version=$(echo $tag | cut -d '.' -f 1)
if [[ $patch_version == '999' && $minor_version == '999' ]]
then
bump_type='M'
elif [[ $patch_version == '999' && $minor_version != '999' ]]
then
bump_type='m'
else
bump_type='p'
fi
plain_tag_value=$major_version.$minor_version.$patch_version
chmod +x ./sem-ver-bump.sh
new_tag=$(./sem-ver-bump.sh -$bump_type $plain_tag_value)
updated_full_tag=$new_tag-$branch_name
# echo "Last tag is $tag, Bumping up to $updated_full_tag"
fi

commit_tag=$(git describe --tags --exact-match $GITHUB_SHA 2>/dev/null || echo "no_tag_found")
if [[ $commit_tag == "no_tag_found" ]]
then
echo "No associated tag found, tagging $GITHUB_SHA with $updated_full_tag"
git tag $updated_full_tag $GITHUB_SHA
git push --tags
echo "##[set-output name=build;]$(echo true)"
echo "##[set-output name=new_tag;]$(echo $new_tag)"
echo "Image will be tagged with $new_tag"
else
echo "$GITHUB_SHA is already tagged with $commit_tag"
IMAGE_META=$(aws ecr describe-images --repository-name=atlanhq/${{ github.event.repository.name }} --image-ids=imageTag=$commit_tag 2>/dev/null || echo "no_tag_found")
if [[ $IMAGE_META == "no_tag_found" ]]; then
echo "Image with specified tag does not exist, proceeding to build and push"
existing_tag=$(echo $commit_tag | cut -d '-' -f 1)
echo "##[set-output name=new_tag;]$(echo $existing_tag)"
echo "##[set-output name=build;]$(echo true)"
echo "Image will be tagged with $existing_tag"
else
IMAGE_TAGS="$( echo ${IMAGE_META} | jq '.imageDetails[0].imageTags[0]' -r )"
echo "Image with the specified tag exists, Skipping build"
existing_tag=$(echo $commit_tag | cut -d '-' -f 1)
echo "##[set-output name=new_tag;]$(echo $existing_tag)"
echo "##[set-output name=build;]$(echo false)"
fi
fi

- name: Keep last 10 tags and delete rest of the old tags
id: cleanup-tags
run: |
branch_name=${{ steps.get_branch.outputs.branch }}
git tag --sort=v:refname | grep -E "^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)-$branch_name" > tagsfile
cat tagsfile

vars=($(awk -F= '{print $1}' tagsfile))

Npars=${#vars[@]}
echo "Npars : $Npars"
numberOfTagsToKeep=10
if [ $Npars -gt $numberOfTagsToKeep ]

then
for ((i=0; i<$Npars - $numberOfTagsToKeep; i++)); do
echo "var $i : ${vars[$i]}"
git push --delete origin ${vars[$i]}
done
fi

- name: Login to Amazon ECR
id: login-ecr
if: steps.semver_tag.outputs.build == 'true'
uses: aws-actions/amazon-ecr-login@v1

- name: Set up Buildx
id: buildx
if: steps.semver_tag.outputs.build == 'true'
uses: docker/setup-buildx-action@v2
with:
driver-opts: image=moby/buildkit:master

- name: Build and push docker image
id: docker_build
if: steps.semver_tag.outputs.build == 'true'
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
push: true
tags: |
${{ steps.login-ecr.outputs.registry }}/atlanhq/${{ github.event.repository.name }}:${{ steps.semver_tag.outputs.new_tag }}-${{ steps.get_branch.outputs.branch }}
${{ steps.login-ecr.outputs.registry }}/atlanhq/${{ github.event.repository.name }}:${{ steps.get_branch.outputs.branch }}-${{ steps.semver_tag.outputs.new_tag }}
build-args: |
ACCESS_TOKEN_USR=$GITHUB_ACTOR
ACCESS_TOKEN_PWD=${{ secrets.my_pat }}
Loading