mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #49283
[Bug 1785985] [NEW] Remove triggers from Mahara database
Public bug reported:
I've created a forum post to discuss this:
* https://mahara.org/interaction/forum/topic.php?id=8324
Basically, my reasoning is:
1. Mahara supports two DB types - MySql and Postgres. Each DB has different syntax when it comes to creating/updating/deleting triggers. This makes it complicated to develop and maintain.
2. Mahara already has the concept of events in place. We can move the
functionality of each trigger into an event. We would then have more
control over the event. For example, don't action an event during an
upgrade.
3. Triggers make it difficult to see what is actually happening. They
are not transparent. If you weren't aware that there is a trigger on the
table, it can make it difficult to track down why something is behaving
in a certain way.
We can start slowly by removing one at a time. It doesn't have to happen all at once.
Just my thoughts.
Cheers.
** Affects: mahara
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1785985
Title:
Remove triggers from Mahara database
Status in Mahara:
New
Bug description:
I've created a forum post to discuss this:
* https://mahara.org/interaction/forum/topic.php?id=8324
Basically, my reasoning is:
1. Mahara supports two DB types - MySql and Postgres. Each DB has different syntax when it comes to creating/updating/deleting triggers. This makes it complicated to develop and maintain.
2. Mahara already has the concept of events in place. We can move the
functionality of each trigger into an event. We would then have more
control over the event. For example, don't action an event during an
upgrade.
3. Triggers make it difficult to see what is actually happening. They
are not transparent. If you weren't aware that there is a trigger on
the table, it can make it difficult to track down why something is
behaving in a certain way.
We can start slowly by removing one at a time. It doesn't have to happen all at once.
Just my thoughts.
Cheers.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1785985/+subscriptions
Follow ups
-
[Bug 1785985] Re: Remove triggers from Mahara database
From: Rebecca Blundell, 2019-10-31
-
[Bug 1785985] A change has been merged
From: Mahara Bot, 2019-10-31
-
[Bug 1785985] A change has been merged
From: Mahara Bot, 2019-10-31
-
[Bug 1785985] A patch has been submitted for review
From: Mahara Bot, 2019-10-31
-
[Bug 1785985] A patch has been submitted for review
From: Mahara Bot, 2019-10-31
-
[Bug 1785985] A change has been merged
From: Mahara Bot, 2019-10-31
-
[Bug 1785985] A patch has been submitted for review
From: Mahara Bot, 2019-10-31
-
[Bug 1785985] A change has been merged
From: Mahara Bot, 2019-10-31
-
[Bug 1785985] A patch has been submitted for review
From: Mahara Bot, 2019-10-31
-
[Bug 1785985] Re: Remove triggers from Mahara database
From: Kristina Hoeppner, 2019-10-12
-
[Bug 1785985] A change has been merged
From: Mahara Bot, 2019-10-09
-
[Bug 1785985] A change has been merged
From: Mahara Bot, 2019-10-09
-
[Bug 1785985] A change has been merged
From: Mahara Bot, 2019-10-09
-
[Bug 1785985] Re: Remove triggers from Mahara database
From: Cecilia Vela Gurovic, 2019-10-09
-
[Bug 1785985] A patch has been submitted for review
From: Mahara Bot, 2019-08-30
-
[Bug 1785985] A change has been merged
From: Mahara Bot, 2019-06-21
-
[Bug 1785985] A change has been merged
From: Mahara Bot, 2019-06-21
-
[Bug 1785985] A change has been merged
From: Mahara Bot, 2019-06-21
-
[Bug 1785985] A patch has been submitted for review
From: Mahara Bot, 2019-06-04
-
[Bug 1785985] A patch has been submitted for review
From: Mahara Bot, 2019-05-16
-
[Bug 1785985] A patch has been submitted for review
From: Mahara Bot, 2019-05-16
-
[Bug 1785985] A patch has been submitted for review
From: Mahara Bot, 2019-05-16
-
[Bug 1785985] A change has been merged
From: Mahara Bot, 2019-05-16
-
[Bug 1785985] A patch has been submitted for review
From: Mahara Bot, 2019-05-15
-
[Bug 1785985] A patch has been submitted for review
From: Mahara Bot, 2019-04-05
-
[Bug 1785985] Re: Remove triggers from Mahara database
From: Cecilia Vela Gurovic, 2019-03-28
-
[Bug 1785985] Re: Remove triggers from Mahara database
From: Kristina Hoeppner, 2019-02-23
-
[Bug 1785985] Re: Remove triggers from Mahara database
From: Russell Boyatt, 2018-12-12
-
[Bug 1785985] Re: Remove triggers from Mahara database
From: Darrin Hodges, 2018-12-12
-
[Bug 1785985] Re: Remove triggers from Mahara database
From: Kristina Hoeppner, 2018-12-11