-
Type:
New Feature
-
Status: Done
-
Priority:
Medium
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: CBAT Offer Letter - Fall
-
Labels:
-
Company:All Clients/Multiple Clients
DMS transaction history : Dynamic trigger generation for history table
CC : Samir Rohan J Khandave
- relates to
-
DMS-343 DMS transaction history
-
- Done
-
Description | DMS transaction history : Dynamic trigger generation for history table |
DMS transaction history : Dynamic trigger generation for history table
CC : [~samir] [~rohan.khandave] |
-
- Time Spent:
- 4h
-
Analysis for achieving the outcome
Fix Version/s | CBAT Offer Letter - Fall [ 10607 ] |
Labels | Integration-CBAT |
Sprint | DMS - Fall Sprint 8 [ 167 ] |
-
- Time Spent:
- 8h
-
Analysis and script creation
Issues resolving - secure-file-priv
Status | To Do [ 10000 ] | In Progress [ 3 ] |
Attachment | Create_Trigger_and_HistoryTable_MYSQL.sql [ 114302 ] |
Assignee | Rushikesh Dattatray Bane [ rushikesh.bane ] | Sonali Farakate [ sonali.farakate ] |
Resolution | Done [ 10000 ] | |
Status | In Progress [ 3 ] | Done [ 10001 ] |
Remaining Estimate | 0h [ 0 ] | |
Time Spent | 4h [ 14400 ] | |
Worklog Id | 190972 [ 190972 ] |
Time Spent | 4h [ 14400 ] | 12h [ 43200 ] |
Worklog Id | 190974 [ 190974 ] |
-
- Time Spent:
- 4h
-
Customization and changes - Script refining
Time Spent | 12h [ 43200 ] | 16h [ 57600 ] |
Worklog Id | 190975 [ 190975 ] |
-
- Time Spent:
- 6h
-
Trigger generation script modifications
Resolution | Done [ 10000 ] | |
Status | Done [ 10001 ] | In Progress [ 3 ] |
Attachment | HistoryTableConsiderations.xls [ 114529 ] |
-
- Time Spent:
- 6h
-
Trigger generation
Check-ins
Discussion with Rohan and Ramya regarding tables
Time Spent | 16h [ 57600 ] | 22h [ 79200 ] |
Worklog Id | 191572 [ 191572 ] |
Time Spent | 22h [ 79200 ] | 28h [ 100800 ] |
Worklog Id | 191573 [ 191573 ] |
Resolution | Done [ 10000 ] | |
Status | In Progress [ 3 ] | Done [ 10001 ] |
Status | Done [ 10001 ] | Code Review [ 11801 ] |
Assignee | Sonali Farakate [ sonali.farakate ] | Samir [ samir ] |
Status | Code Review [ 11801 ] | In QA Testing [ 11901 ] |
Assignee | Samir [ samir ] | Priya Dhamande [ priya.dhamande ] |
Sprint | DMS - Fall Sprint 8 [ 167 ] | DMS - Fall Sprint 8, DMS - Gap Fall & Win Sprint 1 [ 167, 173 ] |
Sprint | DMS - Fall Sprint 8, DMS - Gap Fall & Win Sprint 1 [ 167, 173 ] | DMS - Fall Sprint 8, DMS - Gap Fall & Win Sprint 1, DMS - Gap Fall & Win Sprint 2 [ 167, 173, 174 ] |
Status | In QA Testing [ 11901 ] | In QA Testing [ 11901 ] |
Sprint | DMS - Fall Sprint 8, DMS - Gap Fall & Win Sprint 1, DMS - Gap Fall & Win Sprint 2 [ 167, 173, 174 ] | DMS - Fall Sprint 8, DMS - Gap Fall & Win Sprint 1, DMS - Gap Fall & Win Sprint 2, DMS - Gap Fall & Win Sprint 3 [ 167, 173, 174, 177 ] |
Sprint | DMS - Fall Sprint 8, DMS - Gap Fall & Win Sprint 1, DMS - Gap Fall & Win Sprint 2, DMS - Gap Fall & Win Sprint 3 [ 167, 173, 174, 177 ] | DMS - Fall Sprint 8, DMS - Gap Fall & Win Sprint 1, DMS - Gap Fall & Win Sprint 2, DMS - Gap Fall & Win Sprint 3, DMS - Gap Fall & Win Sprint 4 [ 167, 173, 174, 177, 179 ] |
Status | In QA Testing [ 11901 ] | Done [ 10001 ] |
Transition | Time In Source Status | Execution Times |
---|
|
6d 20h 13m | 1 |
|
1d 18h 42m | 1 |
|
8h 37m | 2 |
|
2s | 1 |
|
3d 19h 25m | 1 |
|
28d 22h 4m | 1 |
|
19d 3h 11m | 1 |
Hi Sonali Farakate,
The script for creating the History table along with triggers is completed.
I have attached the script in this Jira. Also, there are inline comments for using that query.
Create_Trigger_and_HistoryTable_MYSQL.sql
-------------------------------------------------------------------------------------------------
Naming Conventions :
For eg :
Main Table - Communication
For this below will be the outcome from the script :
History table - Communication_History
Triggers Name - trg_Communication_insert, trg_Communication_update, trg_Communication_delete
-------------------------------------------------------------------------------------------------
Below are some changes that I have done and impediments that I'm facing :
Changes Server Level :
Disable - secure-file-priv option - As we are writing out queries into a file and not creating directly, this feature needs to be disabled. I have disabled it for local server and will disable for rest of environments as required.
Impediments :
Queries are written into a file: As of now, we cannot have the drop and exists statements in a dynamic query as it is not a feature in MYSQL.
We have to change the path for writing out the queries in the file which will give us all the statements. If we want to pass the path as variable and parameter to SP, the query needs to be a prepared statement which will take time with analysis.
We can have this in the further scope of development. Please review the script and let me know if any queries.
Regards,
Rushikesh
CC - Rohan J Khandave Samir Satya