forked from apache/atlas
-
Notifications
You must be signed in to change notification settings - Fork 10
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
DG-1924 | Add 'assetsCountToPropagate' and 'assetsCountPropagated' in task vertex. #4032
Open
abhijeet-atlan
wants to merge
15
commits into
master
Choose a base branch
from
tagpropv1master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
759f717
Added ‘assetsCountToPropagate’ and ‘assetsCountPropagated’ to the tas…
jnkrmg 65d920d
review comment fixes
abhijeet-atlan 61d58dd
fixing dry for task vertex updation
abhijeet-atlan dfddb79
fixing dry for task vertex updation
abhijeet-atlan b4ce7af
removed redundant code for 'add prop', 'text update', 'delete prop', …
abhijeet-atlan ed847c1
reverted taskregistry
abhijeet-atlan c257421
removed all repeating code for 6 prop types
abhijeet-atlan adc6ed1
more fixes based on review comments
abhijeet-atlan fdca703
refactored 'updateTaskVertexProperty'
abhijeet-atlan 164ec29
updated maven.yaml
abhijeet-atlan 4e8c6df
added docstring to explain functionality to 'updateTaskVertexProperty'
abhijeet-atlan 14db31d
changed signature and usage for 'updateTaskVertexProperty'
abhijeet-atlan 102ae40
deleted not used function 'updateTaskVertexProperty'
abhijeet-atlan 64775b4
experiment to check if everything works
abhijeet-atlan 42540a0
removed commented out code
abhijeet-atlan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jnkrmg marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ | |
import java.util.Map; | ||
|
||
import static org.apache.atlas.model.tasks.AtlasTask.Status.*; | ||
|
||
import static org.apache.atlas.repository.store.graph.v2.tasks.ClassificationPropagateTaskFactory.CLASSIFICATION_PROPAGATION_RELATIONSHIP_UPDATE; | ||
|
||
public abstract class ClassificationTask extends AbstractTask { | ||
|
@@ -97,24 +98,18 @@ public AtlasTask.Status perform() throws AtlasBaseException { | |
} | ||
|
||
RequestContext.get().setUser(userName, null); | ||
|
||
try { | ||
setStatus(IN_PROGRESS); | ||
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. nit: no need for this changes |
||
|
||
run(params); | ||
|
||
setStatus(COMPLETE); | ||
} catch (AtlasBaseException e) { | ||
LOG.error("Task: {}: Error performing task!", getTaskGuid(), e); | ||
|
||
setStatus(FAILED); | ||
|
||
throw e; | ||
} finally { | ||
RequestContext.get().endMetricRecord(metricRecorder); | ||
graph.commit(); | ||
} | ||
|
||
return getStatus(); | ||
} | ||
|
||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
remove this
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.
will do once all review is complete and we are ready to move to master