Skip to content

4425 add on success method to commands#5987

Merged
kcondon merged 39 commits intodevelopfrom
4425-add-onSuccess-method-to-commands
Aug 2, 2019
Merged

4425 add on success method to commands#5987
kcondon merged 39 commits intodevelopfrom
4425-add-onSuccess-method-to-commands

Conversation

@sekmiller
Copy link
Contributor

@sekmiller sekmiller commented Jul 2, 2019

New Contributors

Welcome! New contributors should at least glance at CONTRIBUTING.md, especially the section on pull requests where we encourage you to reach out to other developers before you start coding. Also, please note that we measure code coverage and prefer you write unit tests. Pull requests can still be reviewed without tests or completion of the checklist outlined below. Thanks!

Related Issues

Pull Request Checklist

  • Unit [tests][x] completed
  • Integration [tests][x]: completed
  • Deployment requirements: [x] None
  • Documentation completed
  • Merged latest from "develop" [branch][x] and resolved conflicts

sekmiller added 30 commits May 1, 2019 10:45
@coveralls
Copy link

coveralls commented Jul 11, 2019

Coverage Status

Coverage decreased (-0.06%) to 19.502% when pulling c117f2d on 4425-add-onSuccess-method-to-commands into 9f946f9 on develop.

@michbarsinai
Copy link
Member

All in all looking good, and seems like the code is handling errors that it didn't handle before. Some questions:

  • EJBDataverseEngine:255 - I'm not sure I was able to follow the full logic here... is this always true on the last non-inner command executed in a command sequence?
  • EjbDataverseEngineInner - This class needs 1-2 lines of JavaDoc, takes time to understand why it's there.
  • Index.java:228-234 - Similar lines appear in many places in the code. Maybe could be consolidated into a single method. OR - we might need an onFailure handler as well.
  • Command:46 - the onSuccess methods needs some JavaDoc, Command is a class new developer refer to a lot.
  • DeleteDataverseLinkingDataverseCommand:56 - new code does not re-index editedDV. Is that intentional?

This PR improves on the current design. I think it needs a bit more documentation since it's the core of the code, and people will be reading it.

# Conflicts:
#	src/main/java/edu/harvard/iq/dataverse/search/IndexServiceBean.java
@djbrooke djbrooke assigned sekmiller and unassigned landreev and scolapasta Jul 23, 2019
@sekmiller sekmiller removed their assignment Jul 24, 2019
getContext().beginCommandSequence();
}
getContext().addCommand(aCommand);
//This list of commands is hel by the outermost commands context
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sekmiller typo ("hel")?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"held". thanks

@djbrooke djbrooke assigned landreev and scolapasta and unassigned landreev Jul 24, 2019
@scolapasta scolapasta removed their assignment Jul 31, 2019
@kcondon kcondon self-assigned this Aug 1, 2019
@kcondon kcondon merged commit dffb5f6 into develop Aug 2, 2019
@kcondon kcondon deleted the 4425-add-onSuccess-method-to-commands branch August 2, 2019 16:30
This was referenced Aug 6, 2019
@djbrooke djbrooke added this to the 4.16 milestone Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Command Engine: Move indexing and other actions into "onSuccess" method

8 participants