MAF Favourites Alerts
I believe only WLUK uses FavouriteAlerts in MAF (favourites/actions/alerts) but I wondered a couple of things: In ManageFavouriteSearchAction, there is a method checkForRecentResults that makes sure the search being saved (either as an alert or an RSS feed) actually returns results. It does this by creating a 'clone' of the SearchState, appending a prism-clipdate to the query and running the search. However it then creates a SearchResultState from the SearchResult and sets it on the 'cloned' search. This has the effect of actually attaching it the original SearchState. My questions are: 1. Why do we need to create (and, more importantly, set) the SearchResultState since we can get the document count from the SearchResult? 2. Perhaps more importantly, is anyone aware that the clone() method on SearchState doesn't clone the SearchResultStates, but sets them to be the original result states? Finally, does anyone else use the favourites/actions/alerts classes?
Tagged:
0
Answers
-
I can only answer your last question. My undestanding is that only WLUK use this. And also this code was deprecated. New Apps were asked to not use this.1
-
The rationale behind why we have checkForRecentResults() was as a 'solution' that fails to address the problem of users creating searches via a list of Subject Areas that have no current results
. For normal alerts we do not have to worry however for RSS feeds we provide an RSS icon that links to an RSS Xml file of results. If there are no results there is no RSS XML and users get a 404 Not Found error. Enter the half-baked if (ALERT_TYPE_RSS.equals(alertType)) { checkForRecentResults(request, model); } which runs the search with the date restriction moved 3 months back in the past. Even if there aren't any we still let users create them. OK so it reduces the number of 404s. Now the problem happens infrequently so Support folks have forgotten why the problem occurs, testers still report it as a bug and the company wastes more time and money. At the time we developed the original MAF based on WLUK we did suggest to the WLUK product owner that we should create a 'boilerplate' file detailing the search terms which would be FTPed to the RSS landing strip just as quickly as a list of old results. Like most solutions proposed by Application Developers it was kicked into the long grass of 'maybe sometime in the future'. Like the ******** WLUK breadcrumb it remains unchanged over 3 years latter quietly exuding a bad smell. Unlike the WLUK breadcrumb that costs them an additional 2 app servers and bites them on the bum whenever they want new functionality e.g UI & Search this particular piece of ordure hasn't raised it's ugly head till now. > does anyone else use the favourites/actions/alerts classes? Don't get me started on that inspired piece of WLUK functionality. You might as well have mentioned PAS path branding if you wanted to wind me up LOL! AFAIK only some of the childern of WLUK use this. Bring on the censorious emails....1
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛