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
Add non-AWS configuration options #30
Merged
Merged
Conversation
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 commit contains all the changes necessary to enable us to configure RabbitMQ or Spring email in the AMA. Bumps all dependencies to 6.2.0-SNAPSHOT.
Also updates organization from DuraSpace to LYRASIS and reference urls to https
We are going to store Swift config in the .properties file, so these properties are no longer stored in the database, and therefore do not need to be configured in the management console.
Forms part of previous commit.
bbranan
requested changes
Feb 27, 2020
account-management-app/src/main/webapp/WEB-INF/applicationContext.xml
Outdated
Show resolved
Hide resolved
account-management-app/src/main/webapp/WEB-INF/jspx/root/globalproperties/index.jspx
Outdated
Show resolved
Hide resolved
account-management-app/src/main/webapp/WEB-INF/jspx/root/duracloudmill/index.jspx
Outdated
Show resolved
Hide resolved
account-management-common/src/main/java/org/duracloud/account/config/McConfig.java
Outdated
Show resolved
Hide resolved
...ement-util/src/main/java/org/duracloud/account/db/util/notification/NotificationMgrImpl.java
Outdated
Show resolved
Hide resolved
bbranan
reviewed
Feb 27, 2020
...unt-management-app/src/main/java/org/duracloud/account/app/controller/DuracloudMillForm.java
Show resolved
Hide resolved
Prevents repetition of column name.
Setting the `:` at the end of these variable allows them to be empty so that IAM can set them at runtime.
The modules in the Duracloud repo have been changed from SpringNotificationFactory to SMTPNotificationFactory to more accurately describe what they do, so we have changed the import here. We have also ensured that the application will start without any changes to the config of pre-existing installations, so email settings will default to SES unless SMTP is explicitly set.
We also remove some extraneous whitespace from the .jspx files.
fozboz
commented
Mar 6, 2020
...unt-management-app/src/main/java/org/duracloud/account/app/controller/DuracloudMillForm.java
Show resolved
Hide resolved
We now pull strings from a Constant whenever we do a string comparison.
bbranan
reviewed
Mar 9, 2020
...-management-app/src/main/java/org/duracloud/account/app/controller/GlobalPropertiesForm.java
Outdated
Show resolved
Hide resolved
...unt-management-app/src/main/java/org/duracloud/account/app/controller/DuracloudMillForm.java
Outdated
Show resolved
Hide resolved
This value is no longer necessary.
We now use Enums instead of constants to make it easier to see what the valid values for each "type" are. We have also changed any instance of auditQueueType to queueType, to reduce the number of "types". Any instance of "AWS" has been changed to the more specific AWS service in question.
Forms part of previous commit.
dbernstein
approved these changes
Mar 13, 2020
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.
Nice work.
bbranan
approved these changes
Mar 17, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What does this Pull Request do?
This PR adds additional configuration options in the AMA, so that one can configure non-AWS backend options.
When configuring Global Properties or Duracloud Mill, users now have the option to use:
Users now have the option of setting "spring" for email notifications, in which case an SMTP server is used instead of SES.
We have also included an update for the SQL schema. The schema should be updated before attempting to run the compiled WAR, even if you are not using the non-AWS config options.
Finally, we include the required update to the POM so that it uses HTTPS for Maven.
How should this be tested?
This cannot be compiled without the changes that we made to the Duracloud repo, which will be in a forthcoming PR. Ideally, this and durastore/duradmin should be tested in tandem.
Pre-requisites for testing:
rabbitmq_message_timestamp
plugin installedupdate-non-aws.sql
notification
section inconfig.properties
file with:Interested parties
@bbranan