[allura:tickets] #8323 gsoc19 - Trigger notification task per each artifact creation/modification and add tests
A common pattern that we use in tests is like this: ``` h.set_context('test', 'wiki', neighborhood='Projects') ``` And then can use `c.project` and `c.app` variables just like "normal" non-test code often does. `c.app` should be the wiki. Also since there is such small amount of data in tests by default, you can probably do `Page.query.find(...)` and not worry about what app it is part of. If not of that works and its not finding the project or wiki or page at all, maybe I was wrong about what the setup_basic_test function does in that test. You might need to make a separate test class that also has `setup_functional_test` in its `setUp`. That might be the thing that populates some sample data. --- ** [tickets:#8323] gsoc19 - Trigger notification task per each artifact creation/modification and add tests** **Status:** review **Milestone:** unreleased **Labels:** gsoc19 **Created:** Mon Aug 12, 2019 04:50 PM UTC by Shalitha Suranga **Last Updated:** Mon Aug 19, 2019 04:58 PM UTC **Owner:** Shalitha Suranga Add a test for the send_usermentions_notification task. Also.. `send_usermentions_notification` task is only called in a few places so far, but would be good to do in all the places where a new artifact is created/modified(content) (new wiki page, new ticket, new blog post, new merge request). Maybe a new ticket for all that together. --- Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/ To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
[allura:tickets] #8323 gsoc19 - Trigger notification task per each artifact creation/modification and add tests
Hi. @brondsem What is the correct way to create wiki instance . I tried `project = M.Project.query.get(shortname='test') wiki = project.app_instance('wiki')` but wiki is `None` always :/ Thanks --- ** [tickets:#8323] gsoc19 - Trigger notification task per each artifact creation/modification and add tests** **Status:** review **Milestone:** unreleased **Labels:** gsoc19 **Created:** Mon Aug 12, 2019 04:50 PM UTC by Shalitha Suranga **Last Updated:** Sun Aug 18, 2019 06:49 PM UTC **Owner:** Shalitha Suranga Add a test for the send_usermentions_notification task. Also.. `send_usermentions_notification` task is only called in a few places so far, but would be good to do in all the places where a new artifact is created/modified(content) (new wiki page, new ticket, new blog post, new merge request). Maybe a new ticket for all that together. --- Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/ To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
[allura:tickets] Re: #8324 gsoc19 - d1 - Writing documentation for user mentions feature
That looks good @shalithasuranga --- ** [tickets:#8324] gsoc19 - d1 - Writing documentation for user mentions feature** **Status:** review **Milestone:** unreleased **Labels:** gsoc19 **Created:** Sun Aug 18, 2019 02:19 AM UTC by Shalitha Suranga **Last Updated:** Mon Aug 19, 2019 03:45 PM UTC **Owner:** Shalitha Suranga - Updating in-app formatting guide with the new feature. - Updating features [page](https://forge-allura.apache.org/p/allura/wiki/Features/). - Writing a blog post about new feature in Allura blog. Eg: http://allura.apache.org/posts/2016-gsoc-16.html --- Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/ To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
[allura:tickets] #8324 gsoc19 - d1 - Writing documentation for user mentions feature
Hi.. @brondsem Added under "Threaded Discussion Forums" https://forge-allura.apache.org/p/allura/wiki/Features/ --- ** [tickets:#8324] gsoc19 - d1 - Writing documentation for user mentions feature** **Status:** review **Milestone:** unreleased **Labels:** gsoc19 **Created:** Sun Aug 18, 2019 02:19 AM UTC by Shalitha Suranga **Last Updated:** Sun Aug 18, 2019 05:43 PM UTC **Owner:** Shalitha Suranga - Updating in-app formatting guide with the new feature. - Updating features [page](https://forge-allura.apache.org/p/allura/wiki/Features/). - Writing a blog post about new feature in Allura blog. Eg: http://allura.apache.org/posts/2016-gsoc-16.html --- Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/ To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.