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

Pivotal ID # 172817960: Resubmit Notification #243

Merged
merged 14 commits into from
Jul 21, 2020

Conversation

jhoanmanuelms
Copy link
Contributor

https://www.pivotaltracker.com/story/show/172817960

  • Changes in the architecture to use queues instead of events for notifications
  • Get the extended submission from the service using the URL in the queue message
  • Add logic to load different templates based on the submission version
  • Create/update the RT ticket depending on its existence

Delivers # 172817960

Changes in the architecture to use queues instead of events for notifications
- Get the extended submission from the service instead of passing down the elements in the event
- Add logic to load different templates based on the submission version
- Create/update the RT ticket depending on its existence
@jhoanmanuelms jhoanmanuelms requested a review from Juan-EBI July 15, 2020 10:03
@jhoanmanuelms jhoanmanuelms self-assigned this Jul 15, 2020
@jhoanmanuelms jhoanmanuelms marked this pull request as ready for review July 17, 2020 11:59
Copy link
Contributor

@Juan-EBI Juan-EBI left a comment

Choose a reason for hiding this comment

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

LGTM, please review minor comment


private fun templateContent(submission: ExtSubmission): String {
val template = when (submission.version) {
1 -> SUCCESSFUL_SUBMISSION_TEMPLATE
Copy link
Contributor

Choose a reason for hiding this comment

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

this looks like let escape some of the business knowledge of ext submission, maybe we should add extended property isNew or is aReSubmission.

Still not sure this is a 100% good recomendation so ignore if you do not agree.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This would require some other changes in several other places making this PR even bigger. I think we could do this in a separate PR.

@jhoanmanuelms jhoanmanuelms merged commit 86059db into master Jul 21, 2020
@jhoanmanuelms jhoanmanuelms deleted the feature/pivotal-172817960-notifications-queue branch July 21, 2020 10:45
jhoanmanuelms added a commit that referenced this pull request Dec 10, 2020
* Pivotal ID # 173457302: RelPath Calculation (#244)
* Pivotal ID # 173750220: Author TSV Serialization (#245)
* Pivotal ID # 172817960: Resubmit Notification (#243)
* Pivotal ID # 174054535: Disable superUser in request
* Pivotal #Id: 174076301: Update pmc api  (#248)
* pivotal #Id 174127719: Transaction lock (#250)
* Pivotal ID # 171230259: Draft creation time outs for big submissions (#251)
* Pivotal ID # 172817960: Resubmit Notfication (#253)
* Pivotal #ID 174275642: Submission loading strategy (#254)
* Pivotal ID # 172817960: Resubmit Notfication (#255)
* Pivotal #ID: 173457302 : fixed relpath calculation (#246)
* Pivotal ID # 174316468: Project Refresh AccNo Template Validation (#257)
* Pivotal #ID: 169837866: Async File Processing (#256)
* Pivotal ID # 169837866: Async File Processing (#259)
* Pivotal ID # 169837866: Async File Processing (#261)
* Pivotal ID # 174275207: Test Using The Persistence Layer (#262)
* Pivotal ID # 174275207: Test Using The Persistence Layer
* Pivotal ID # 173919045: Restrict Execute Permissions On HTTP Uploaded Files (#265)
* Pivotal ID # 174621725: Wrong Notifications UI URL (#266)
* Pivotal-174697743: Delete draft missing transaction
* Pivotal ID # 174801815: Permissions For Deleted Submissions (#270)
* Pivotal ID # 174801815: Permissions For Deleted Submissions
* Pivotal ID # 174801815: Permissions For Deleted Submissions
* Pivotal ID # 172671360: Warn Users About Upcoming Releases (#268)
* Pivotal ID # 172671360: Warn Users About Upcoming Releases
* Pivotal ID # 173783625: Partial Updates Timestamp (#269)
* Pivotal #ID : 174922363: Add support for previous submission files source
* Pivotal #ID 173908844: Add ext file fields attributes (#260)
* Pivotal ID # 173817309: FIRE Client (#272)
* Pivotal #ID: 174746920: Include status fetching submissions (#275)
* Pivotal #ID 174947046: ExtSubmission list api (#273)
* Pivotal ID # 171026062: FTP Hard Links (#276)
* Pivotal ID #171026062: Submission files MD5 Generation (#274)
* Pivotal #Id: Re-submit a submission with rooPath (#279)
* Pivotal #Id: 174274579: User eager groups (#280)
* Pivotal ID # 172671360: Warn Users About Upcoming Public Release (#282)
* Pivotal ID # 175359447: Async Concurrent Processing Submission (#281)
* Pivotal #ID 175632448: Extra persistence layer interfaces to avoid dependencies on SQL classes (#283)
* Pivotal #ID 175632448: Extra persistence layer interfaces to avoid dependencies on SQL classes
* Pivotal ID # 175359447: Async Concurrent Processing Submission (#285)
* Pivotal ID # 175359447: Async Concurrent Processing Submission [HotFix] (#288)
* Pivotal ID: 175632448: Extra persistence layer interfaces to avoid dependencies on SQL classes  (#289)
* Pivotal #ID 175632448: Extra persistence layer interfaces to avoid dependencies on SQL classes
* Pivotal ID # 175266840: Manual Set AccNo Sequence (#287)
* Pivotal ID # 175266840: Manual Set AccNo Sequence
* Pivotal ID: 175632448: Extra persistence layer interfaces to avoid dependencies on SQL classes (#290)
* Pivotal #ID 175632448: Extra persistence layer interfaces to avoid dependencies on SQL classes
* Pivotal ID # 175266840: Manual Set AccNo Sequence [HotFix] (#291)
* Pivotal ID # 172671360: Warn Users About Upcoming Public Release  (#278)
* Pivotal ID # 172671360: Warn Users About Upcoming Public Release
* Pivotal ID # 175101522: File Path Field (#294)
* Pivotal: ID: 175839554 : include user tag as part of extended submission tags (#296)
* Pivotal #ID: 175825508: Store submission request - async processing
* Pivotal-175839554: Include user tag as part of extended submission tags
* Pivotal # 175163839: Submission Operations Refactor (#297)
* Pivotal # 175163839: Submission Operations Refactor
* Pivotal #Id: 175926073: Simplify accNoService (#298)
* Pivotal ID # 175163839: Stats Refactor (#299)
* Pivotal ID # 175780531: Ext Submission Submitter Validation (#300)
* Temp FTP Resource (#277)
* Pivotal ID # 172671360: Warn Users About Upcoming Public Release (#304)
* Pivotal ID # 175632448: Regular User Resubmission (#306)

Co-authored-by: Juan <jcamilorada@ebi.ac.uk>
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.

2 participants