mt1976 / gobankingapplication-prototype Goto Github PK
View Code? Open in Web Editor NEWPɾσƚσCɳƚɾʅᏒ
PɾσƚσCɳƚɾʅᏒ
In addition to the session token I need username and incoming IP address.
When validating in wct first the token should exist, then token must no have timed out and the username and incoming IP should match those captures at login.
Separate page for reponaes
Current button links to page
Still shows how many responses
Duplicate of #23
2021/10/14 09:29:29 Servicing : "/listFundsCheck/"
2021/10/14 09:29:29 open C:\Dev\GitHub\mwt-go-devC:\demo-systems\std\systems\sal-prd\sys-3\data\CashBalance_in/: The filename, directory name, or volume label syntax is incorrect.
Create a new xml template in Siena. Txn. Templates
Create a siena_data....list file in util. Condig
Add relatated items to demo.properties in util.config
Closed by MWT - Replaced by mwt-qm-dev#18 for testing.
Simple login that checks credentials and gets a session token
Duplicate of #3
Have this section be hidden on-load and visible when the user clicks on "Show"
View Data map template xml
Closed by MWT - Replaced by mwt-qm-dev#18 for testing.
<TRANSACTIONS><TRANSACTION type="IMPORT"><TABLE name="Country" classname="com.eurobase.siena.data.country.Country"><RECORD><KEYFIELD name="Code">AFG</KEYFIELD><FIELD name="name">Afghanistan</FIELD><FIELD name="shortCode">AF</FIELD><FIELD name="EU_EEA">No</FIELD></RECORD></TABLE></TRANSACTION></TRANSACTIONS>
2021/10/14 09:28:35 URL Parameter : "sienaCountry" = "AFG"
2021/10/14 09:28:35 Using Menu : "config/menu/menu.json"
2021/10/14 09:28:35 Using Template: "html/editSienaCountry.html"
2021/10/14 09:28:40 Servicing : "/saveSienaCountry/ Save \"\""
ITEM {AFG Afghanistan AF No UPDATE}
PreparedXML <TRANSACTIONS><TRANSACTION type="IMPORT"><TABLE name="Country" classname="com.eurobase.siena.data.country.Country"><RECORD><KEYFIELD name="Code">AFG</KEYFIELD><FIELD name="name">Afghanistan</FIELD><FIELD name="shortCode">AF</FIELD><FIELD name="EU_EEA">No</FIELD></RECORD></TABLE></TRANSACTION></TRANSACTIONS>
C:\demo-systems\std\systems\sal-prd\sys-3\data\dataIn/be7036bd-01ed-4c29-841d-cee3cf4c4372.xml
2021/10/14 09:28:40 Servicing : "/saveSienaCountry/"
2021/10/14 09:28:40 Using Menu : "config/menu/menu.json"
Something like;
package main
import (
"fmt"
"time"
)
var startTime time.Time
func uptime() time.Duration {
return time.Since(startTime)
}
func init() {
startTime = time.Now()
}
func main() {
fmt.Println("started")
time.Sleep(time.Second * 1)
fmt.Printf("uptime %s\n", uptime())
time.Sleep(time.Second * 5)
fmt.Printf("uptime %s\n", uptime())
}
Set starttime during initialisation, then log it during Hearbeat & Rollover and report it on the System Diagnostics screen on demaind.
Register, job definition etc should be in the job itself.
Hold some details in session file which filters access to service catalog etc.
Bonds Data JOB is failing.
`silicon:mwt-go-dev matttownsend$ go run main.go
2021/10/14 16:30:26 ----------------------------------------------------------------------------------------------------
2021/10/14 16:30:26 Information : Initialising ...
2021/10/14 16:30:26 Initialisation: Vrooom...
2021/10/14 16:30:26 Initialisation: Connecting to application databases...
2021/10/14 16:30:26 Information : Database SRS exists Created: 2021-04-23T12:45:53.263Z
2021/10/14 16:30:26 Information : Attemping connection to eb-ldn-pc105 SRS
2021/10/14 16:30:26 Information : Connected to eb-ldn-pc105 SRS
2021/10/14 16:30:28 Information : Database RG3 exists Created: 2020-09-25T12:20:20.43Z
2021/10/14 16:30:28 Information : Attemping connection to eb-ldn-pc105 RG3
2021/10/14 16:30:28 Information : Connected to eb-ldn-pc105 RG3
2021/10/14 16:30:28 Initialisation: Connection established
2021/10/14 16:30:28 Initialisation: Vroooom Vrooooom VROOOOM! ἼD
2021/10/14 16:30:28 Success : Initialised ✓
2021/10/14 16:30:28 Information : Caching ...
2021/10/14 16:30:28 Success : Cache Refreshed ✓
2021/10/14 16:30:28 Information : Scheduling Jobs
2021/10/14 16:30:28 Scheduled Job : Monitor HeartBeat */5 * * * * "Every 5 minutes, every hour, every day"
2021/10/14 16:30:28 Scheduled Job : Monitor COB 10 1 * * * "At 01:10, every day"
2021/10/14 16:30:28 Scheduled Job : Aquirer FX Spot */10 7-19 * * 2-6 "Every 10 minutes, between 07:00 and 19:59, Monday through Friday"
2021/10/14 16:30:28 Scheduled Job : Aquirer ECB Rates 30 16 * * 2-6 "At 16:30, Monday through Friday"
2021/10/14 16:30:28 Scheduled Job : Aquirer BOE Sonia 30 10 * * 2-6 "At 10:30, Monday through Friday"
2021/10/14 16:30:28 Scheduled Job : Aquirer Fred Series 58 7-19 * * 2-6 "At 58 minutes past the hour, between 07:00 and 19:59, Monday through Friday"
2021/10/14 16:30:28 Scheduled Job : Aquirer Bonds 10 7-19 * * 2-6 "At 10 minutes past the hour, between 07:00 and 19:59, Monday through Friday"
2021/10/14 16:30:28 Scheduled Job : Aquirer Bonds Additional 15 7-19 * * 2-6 "At 15 minutes past the hour, between 07:00 and 19:59, Monday through Friday"
2021/10/14 16:30:28 Scheduled Job : Monitor Session Management */15 * * * * "Every 15 minutes, every hour, every day"
2021/10/14 16:30:28 Scheduled Job : Dispatcher Refresh 10 7-19 * * 2-6 "At 10 minutes past the hour, between 07:00 and 19:59, Monday through Friday"
2021/10/14 16:30:28 Scheduled Job : Dispatcher MARKET */10 6-21 * * 2-6 "Every 10 minutes, between 06:00 and 21:59, Monday through Friday"
2021/10/14 16:30:28 Scheduled Job : Dispatcher EONIA 35 17 * * 2-6 "At 17:35, Monday through Friday"
2021/10/14 16:30:28 Scheduled Job : Dispatcher SONIA 35 11 * * 2-6 "At 11:35, Monday through Friday"
2021/10/14 16:30:29 Scheduled Job : Dispatcher SOFR 35 17 * * 2-6 "At 17:35, Monday through Friday"
2021/10/14 16:30:29 Scheduled Job : Dispatcher ESTR 35 17 * * 2-6 "At 17:35, Monday through Friday"
2021/10/14 16:30:29 Scheduled Job : Dispatcher TONAR 35 17 * * 2-6 "At 17:35, Monday through Friday"
2021/10/14 16:30:29 Scheduled Job : Dispatcher EURIBOR 35 17 * * 2-6 "At 17:35, Monday through Friday"
2021/10/14 16:30:29 Scheduled Job : Dispatcher ECB 35 16 * * 2-6 "At 16:35, Monday through Friday"
2021/10/14 16:30:29 Scheduled Job : Dispatcher NI */30 6-21 * * 2-6 "Every 30 minutes, between 06:00 and 21:59, Monday through Friday"
2021/10/14 16:30:29 Success : Jobs Scheduled ✓
2021/10/14 16:30:29 Information : Starting Handlers
2021/10/14 16:30:29 Success : Handlers Started ✓
2021/10/14 16:30:29 ----------------------------------------------------------------------------------------------------
2021/10/14 16:30:29 Information : Application Information
2021/10/14 16:30:29 Information : Application
2021/10/14 16:30:29 Information : Name ᗰISSIOᑎ ᑕOᑎTᖇOᒪ
2021/10/14 16:30:29 Information : Host Name silicon.local
2021/10/14 16:30:29 Information : Server Release burnishedBroadcast [r1-21.04.11]
2021/10/14 16:30:29 Information : Server Date 14/10/2021
2021/10/14 16:30:29 Information : Server Mode Secondary System
2021/10/14 16:30:29 Information : Licence Unlicense
2021/10/14 16:30:29 Information : Lic URL https://unlicense.org
2021/10/14 16:30:29 Information : Application Database (MSSQL)
2021/10/14 16:30:29 Information : Server eb-ldn-pc105
2021/10/14 16:30:29 Information : Database SRS
2021/10/14 16:30:29 Information : Schema dbo
2021/10/14 16:30:29 Information : Parent Schema SRS
2021/10/14 16:30:29 Information : Siena
2021/10/14 16:30:29 Information : System LDN-PC105 SYS-3
2021/10/14 16:30:29 Information : System Date 18/09/2020
2021/10/14 16:30:29 Information : Siena Database (MSSQL)
2021/10/14 16:30:29 Information : Server eb-ldn-pc105
2021/10/14 16:30:29 Information : Database RG3
2021/10/14 16:30:29 Information : Schema SRS
2021/10/14 16:30:29 Information : Parent Schema dbo
2021/10/14 16:30:29 Information : Siena Connectivity
2021/10/14 16:30:29 Information : TXNs Delivery /data/siena/dealimport_in
2021/10/14 16:30:29 Information : TXNs Response /data/siena/dealimport_out
2021/10/14 16:30:29 Information : Static Delivery /data/siena/static_in
2021/10/14 16:30:29 Information : Static Response /data/siena/static_out
2021/10/14 16:30:29 Information : Funds Check Request /data/siena/fundsCheck_out
2021/10/14 16:30:29 Information : Funds Check Response /data/siena/fundsCheck_in
2021/10/14 16:30:29 Information : Rates & Prices Delivery /data/siena/rates_in
2021/10/14 16:30:29 Information : Sessions
2021/10/14 16:30:29 Information : Session Life 20m
2021/10/14 16:30:29 Information : READY STEADY GO!!!
2021/10/14 16:30:29 URI : http://localhost:5050
2021/10/14 16:30:29 ----------------------------------------------------------------------------------------------------
2021/10/14 16:35:00 Fingering : Server 'eb-ldn-pc105' Database 'SRS' Schema 'dbo'
2021/10/14 16:35:00 Dispatch : "RVNI" -> ""
2021/10/14 16:35:00 Fingering : Server 'eb-ldn-pc105' Database 'RG3' Schema 'SRS'
2021/10/14 16:35:00 Information : Ran Job - Monitor HeartBeat ""
2021/10/14 16:35:00 Information : Ran Job - Dispatcher NI ""
2021/10/14 16:40:00 Fingering : Server 'eb-ldn-pc105' Database 'SRS' Schema 'dbo'
2021/10/14 16:40:00 Dispatch : "RVNI" -> ""
2021/10/14 16:40:00 Fingering : Server 'eb-ldn-pc105' Database 'RG3' Schema 'SRS'
2021/10/14 16:40:00 Information : Ran Job - Dispatcher NI ""
2021/10/14 16:40:00 Information : Ran Job - Monitor HeartBeat ""
2021/10/14 16:40:32 Information : Ran Job - Aquirer FX Spot ""
2021/10/14 16:45:00 Fingering : Server 'eb-ldn-pc105' Database 'SRS' Schema 'dbo'
2021/10/14 16:45:00 Fingering : Server 'eb-ldn-pc105' Database 'RG3' Schema 'SRS'
2021/10/14 16:45:00 Information : Ran Job - Monitor Session Management ""
2021/10/14 16:45:00 Information : Ran Job - Monitor HeartBeat ""
2021/10/14 16:50:00 Fingering : Server 'eb-ldn-pc105' Database 'SRS' Schema 'dbo'
2021/10/14 16:50:00 Dispatch : "RVNI" -> ""
2021/10/14 16:50:00 Fingering : Server 'eb-ldn-pc105' Database 'RG3' Schema 'SRS'
2021/10/14 16:50:00 Information : Ran Job - Monitor HeartBeat ""
2021/10/14 16:50:00 Information : Ran Job - Dispatcher NI ""
2021/10/14 16:50:30 Information : Ran Job - Aquirer FX Spot ""
2021/10/14 16:55:00 Fingering : Server 'eb-ldn-pc105' Database 'SRS' Schema 'dbo'
2021/10/14 16:55:00 Fingering : Server 'eb-ldn-pc105' Database 'RG3' Schema 'SRS'
2021/10/14 16:55:00 Information : Ran Job - Monitor HeartBeat ""
2021/10/14 16:58:14 Information : Ran Job - Aquirer Fred Series ""
2021/10/14 17:00:00 Fingering : Server 'eb-ldn-pc105' Database 'SRS' Schema 'dbo'
2021/10/14 17:00:00 Dispatch : "RVNI" -> ""
2021/10/14 17:00:00 Dispatch : "RVNI" -> ""
2021/10/14 17:00:00 Information : Ran Job - Monitor Session Management ""
2021/10/14 17:00:00 Fingering : Server 'eb-ldn-pc105' Database 'RG3' Schema 'SRS'
2021/10/14 17:00:00 Information : Ran Job - Dispatcher NI ""
2021/10/14 17:00:00 Information : Ran Job - Dispatcher NI ""
2021/10/14 17:00:00 Information : Ran Job - Monitor HeartBeat ""
2021/10/14 17:00:35 Information : Ran Job - Aquirer FX Spot ""
2021/10/14 17:05:00 Fingering : Server 'eb-ldn-pc105' Database 'SRS' Schema 'dbo'
2021/10/14 17:05:00 Fingering : Server 'eb-ldn-pc105' Database 'RG3' Schema 'SRS'
2021/10/14 17:05:00 Information : Ran Job - Monitor HeartBeat ""
2021/10/14 17:10:00 Fingering : Server 'eb-ldn-pc105' Database 'SRS' Schema 'dbo'
2021/10/14 17:10:00 Dispatch : "RVNI" -> ""
2021/10/14 17:10:00 Information : Ran Job - Dispatcher Refresh ""
2021/10/14 17:10:00 Fingering : Server 'eb-ldn-pc105' Database 'RG3' Schema 'SRS'
2021/10/14 17:10:00 Information : Ran Job - Dispatcher NI ""
2021/10/14 17:10:00 Information : Ran Job - Monitor HeartBeat ""
2021/10/14 17:10:00 0
2021/10/14 17:10:00 1
2021/10/14 17:10:00 2
2021/10/14 17:10:00 3
panic: runtime error: index out of range [1] with length 1
goroutine 592 [running]:
github.com/mt1976/mwt-go-dev/jobs.readCSVFromUrl({0x156ca7a, 0x4d})
/Volumes/External HD/matttownsend/Development/mwt-go-dev/jobs/bonds.go:93 +0x10e5
github.com/mt1976/mwt-go-dev/jobs.RunJobLSE({0xc0000f4100, 0xc0005f0120})
/Volumes/External HD/matttownsend/Development/mwt-go-dev/jobs/bonds.go:55 +0x29
github.com/mt1976/mwt-go-dev/jobs.Start.func7()
/Volumes/External HD/matttownsend/Development/mwt-go-dev/jobs/handler.go:63 +0x25
github.com/robfig/cron/v3.FuncJob.Run(0xc0005a47d0)
/Volumes/External HD/matttownsend/go/pkg/mod/github.com/robfig/cron/[email protected]/cron.go:136 +0x1a
github.com/robfig/cron/v3.(*Cron).startJob.func1()
/Volumes/External HD/matttownsend/go/pkg/mod/github.com/robfig/cron/[email protected]/cron.go:312 +0x6a
created by github.com/robfig/cron/v3.(*Cron).startJob
/Volumes/External HD/matttownsend/go/pkg/mod/github.com/robfig/cron/[email protected]/cron.go:310 +0xb2
exit status 2`
Pluck session id from url, check it, on fail signouut.
Move config/environ buttons to a drop down menu iyesm in congid navbar item.
//// TODO: Use Longname/ISIN to get ISIN info and/or lookup a siena newSienaCounterparty
// TODO: if countarparty is not found create Firm, add to center, create counterparty (as issuer), create counterpartyimportID
// TODO: isinlookup (might need to go into the Dispatcher Job)
Need a quick RO job to update the system date.
For security
Simple. Function to edit the data map recoed in a simple text box
Closed by MWT - Replaced by mwt-qm-dev#18 for testing.
Refactor serviceCatalog.getServices to use responses.waitForResponse
Closed by MWT - Replaced by mwt-qm-dev#18 for testing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.