Two complex scenarios
Nagy Gabor <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <20210317110315.4bf1528f@Dell> |
Dear Roundup users, I am going to implement to my custom tracker two more complicated features, and I would like you ask your opinions first. 1. Search in more than one classes at the same time. Typical use case: For example, there are bug, issue and task classes in the tracker, and it is convenient to collect the list "bugs/issues/tasks assigned to me" to one page, instead of forcing the user to click 3 buttons. I am not sure what I want at this point, first I played with the renderWith method, but it leads to too much restrictions, so I think I should use the db variable and the batching capability of the web interface. However, any working examples (as a guide) would be appreciated. :) 2. I want to allow users to send emails (with some preloaded content from the roundup database). As a first try, I've created an extension to the web interface: a new 'email' action, which first sends the email (the required information is in form variables, set by an email-editor html template), and if the sending is successful then call the core EditItemAction, which adds the content of the email to the database (as an msg). Everything works as expected, but difficulties arise if I want to allow the users to upload attachments... I do not know how to handle this in my 'email' action. I can do this by druid templating (add a button "Upload attachments" to the email editor page, which commits the files to the db somewhere, and the real 'email' action can already use the uploaded files). Or this whole email sending stuff can be moved to a reactor: First commit everything to the db, and the reactor sends the email. I do not know which version is better (for example, user's browser should not timeout, while Roundup is sending email), email action seems more logical to me (first send, then if it successful, then add to the db - no database spam on unsuccessful emails), but as I see email sending is mostly done in reactors. In fact, any thoughts could be useful here. Thanks in advance, Gábor _______________________________________________ Roundup-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/roundup-users